Source

woocode / sa-auto / src / freetype.sh

Full commit
#!/bin/sh

. ./set_app_env.sh;

CFLAGS=`pkg-config glib-2.0 --cflags`
LDFLAGS=

L_CFLAGS=`pkg-config glib-2.0 --cflags`
L_LDFLAGS=`pkg-config glib-2.0 --libs --static`
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 $FREETYPE
rm -rf $APP_LIB/freetype

tar zxvf $FREETYPE.tar.gz

cd $FREETYPE

./configure --prefix=$APP_LIB/$FREETYPE   \
            --enable-fast-install=no      \
            --with-old-mac-fonts=no       \
            --with-fsspec=no              \
            --with-fsref=no               \
            --with-quickdraw-toolbox=no   \
            --with-quickdraw-carbon=no    \
            --with-ats=no

make $MAKEOPT &&

make install

ln -s $APP_LIB/$FREETYPE $APP_LIB/freetype