1. yang xiaoyong
  2. woocode

Source

woocode / sa-auto / src / jpeg.sh

#!/bin/sh

. ./set_app_env.sh;

L_CFLAGS="-fPIC";
L_LDFLAGS="";


CFLAGS=" $G_CFLAGS $L_CFLAGS";export CFLAGS;
CPPFLAGS=" $G_CPPFLAGS $L_CPPFLAGS";export CPPFLAGS;
LDFLAGS=" $G_LDFLAGS $L_LDFLAGS";export LDFLAGS;

rm -rf $JPEG
rm -rf $APP_LIB/jpeg

tar zxvf $JPEG.tar.gz

cd $JPEG

ln -s /usr/bin/libtool libtool

mkdir -p $APP_LIB/$JPEG/include
mkdir -p $APP_LIB/$JPEG/lib
mkdir -p $APP_LIB/$JPEG/man/man1
mkdir -p $APP_LIB/$JPEG/bin

./configure --prefix=$APP_LIB/$JPEG --enable-shared --enable-static

make $MAKEOPT &&
make install

ln -s $APP_LIB/$JPEG $APP_LIB/jpeg