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-timelimit=120"
10 OPTIONS="$OPTIONS --enable-optimization=2"
11 #OPTIONS="$OPTIONS --enable-optimization=3 --enable-g5opt"
12 #OPTIONS="$OPTIONS --disable-optimization"
13 OPTIONS="$OPTIONS --disable-debug"
14 OPTIONS="$OPTIONS --disable-dependency-tracking"
15 #OPTIONS="$OPTIONS --enable-debug"
16 #export LDFLAGS='-undefined dynamic-lookup'
17 LDFLAGS="-prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load -undefined dynamic_lookup"
21 #ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
22 ARCH_FLAGS="$ARCH_FLAGS -arch i386"
31 [ -e configure ] || ./bootstrap || exit 1
33 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
41 ../configure $OPTIONS LDFLAGS="$LDFLAGS" CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" || exit 1