Source

woocode / sa-auto / src / grapicsmagick.sh

#!/bin/sh

. ./set_app_env.sh;

L_CFLAGS="-fPIC -I$APP_LIB/jpeg/include -I$APP_LIB/libpng/include -I$APP_LIB/tiff/include  -I$APP_LIB/zlib/include"
L_LDFLAGS="-L$APP_LIB/jpeg/lib -L$APP_LIB/libpng/lib -L$APP_LIB/tiff/lib -L$APP_LIB/zlib/lib"
L_CPPFLAGS=""

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

rm -rf $GRAPICSMAGICK
rm -rf $APP_LIB/GraphicsMagick

tar zxvf $GRAPICSMAGICK.tar.gz

cd $GRAPICSMAGICK

./configure --prefix=$APP_LIB/$GRAPICSMAGICK    \
            --disable-openmp                    \
            --without-perl                      \
            --without-x                         \
            --with-magick-plus-plus=no;

make $MAKEOPT &&
make install

ln -s $APP_LIB/$GRAPICSMAGICK $APP_LIB/GraphicsMagick