3
# build-ftgl.sh -- build a static universal ftgl library
5
# Usage: ./build-ftgl.sh <ftgl-src-dir>
10
FTGL_DIR=`expandPath $1`
11
FREETYPE_DIR=`expandPath ../freetype/build/universal`
13
# Note: FTGL 2.1.3-rc5's configure check for a minimum freetype version is
14
# bugged. Just disable the check in the configure script until it is fixed.
16
${FTGL_DIR}/configure \
17
--disable-dependency-tracking \
18
--with-ft-exec-prefix=${FREETYPE_DIR} \
24
# Returns the path of a libftgl.a file from a basedir
26
echo -n "${1}/lib/libftgl.a"
29
buildArchs $BUILD_PPC $BUILD_i386 buildFTGL
30
lipoFiles $RESULT_DIR/lib/libftgl.a $(libFile $BUILD_PPC) $(libFile $BUILD_i386)
33
cp -R $BUILD_i386/include $RESULT_DIR