3 #PREFIX=/Applications/SynfigStudio.app/Contents/synfig
4 PREFIX=/Users/darco/Projects/Voria/synfig-build
5 #OPTIONS="--disable-optimization --enable-debug"
6 export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
7 export MACOSX_DEPLOYMENT_TARGET=10.4
8 OPTIONS="--prefix=$PREFIX"
9 OPTIONS="$OPTIONS --enable-optimization=2"
10 #OPTIONS="$OPTIONS --enable-optimization=3 --enable-g5opt"
11 #OPTIONS="$OPTIONS --disable-optimization"
12 OPTIONS="$OPTIONS --disable-debug"
13 OPTIONS="$OPTIONS --disable-dependency-tracking"
14 #OPTIONS="$OPTIONS --enable-debug"
15 #export LDFLAGS='-undefined dynamic-lookup'
16 LDFLAGS="-prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load -undefined dynamic_lookup"
20 #ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
21 ARCH_FLAGS="$ARCH_FLAGS -arch i386"
30 [ -e configure ] || autoreconf --force --install || exit 1
32 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
40 ../configure $OPTIONS LDFLAGS="$LDFLAGS" CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" || exit 1