~armagetronad-dev/armagetronad/macosx-libs

« back to all changes in this revision

Viewing changes to ftgl/build-ftgl.sh

  • Committer: Daniel Lee Harple
  • Date: 2009-01-25 15:51:12 UTC
  • Revision ID: leeharple@gmail.com-20090125155112-yhaf0opbbd3o55u6
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
3
# build-ftgl.sh -- build a static universal ftgl library
 
4
 
5
# Usage: ./build-ftgl.sh <ftgl-src-dir>
 
6
 
7
 
 
8
source ../build-lib.sh
 
9
 
 
10
FTGL_DIR=`expandPath $1`
 
11
FREETYPE_DIR=`expandPath ../freetype/build/universal`
 
12
 
 
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.
 
15
buildFTGL() {
 
16
    ${FTGL_DIR}/configure \
 
17
        --disable-dependency-tracking \
 
18
        --with-ft-exec-prefix=${FREETYPE_DIR} \
 
19
        --without-x \
 
20
        --prefix=`pwd`
 
21
    make install
 
22
}
 
23
 
 
24
# Returns the path of a libftgl.a file from a basedir
 
25
libFile() {
 
26
    echo -n "${1}/lib/libftgl.a"
 
27
}
 
28
 
 
29
buildArchs $BUILD_PPC $BUILD_i386 buildFTGL
 
30
lipoFiles $RESULT_DIR/lib/libftgl.a $(libFile $BUILD_PPC) $(libFile $BUILD_i386)
 
31
 
 
32
# Copy headers
 
33
cp -R $BUILD_i386/include $RESULT_DIR