3 #OPTIONS="--disable-optimization --enable-debug"
5 PREFIX=/Users/darco/Projects/Voria/synfig-build
7 export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
8 OPTIONS="--prefix=$PREFIX"
9 #OPTIONS="$OPTIONS --enable-timelimit=120"
10 #OPTIONS="$OPTIONS --enable-optimization=2"
11 OPTIONS="$OPTIONS --enable-optimization=3"
12 #OPTIONS="$OPTIONS --enable-g5opt"
13 #OPTIONS="$OPTIONS --disable-optimization"
14 OPTIONS="$OPTIONS --disable-debug"
15 #OPTIONS="$OPTIONS --with-vimage"
16 OPTIONS="$OPTIONS --without-openexr"
17 OPTIONS="$OPTIONS --disable-dependency-tracking"
18 #OPTIONS="$OPTIONS --enable-universal"
21 #ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
22 ARCH_FLAGS="$ARCH_FLAGS -arch i386"
24 LDFLAGS="-L$PREFIX/lib"
25 CFLAGS="-I$PREFIX/include"
26 CXXFLAGS="-I$PREFIX/include"
28 CC="gcc $LDFLAGS $CFLAGS $ARCH_FLAGS"
29 CXX="g++ $LDFLAGS $CFLAGS $ARCH_FLAGS"
33 #distcc --version && {
41 [ -e configure ] || ./bootstrap || exit 1
43 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
49 echo ../configure $OPTIONS CC=\"$CC\" CXX=\"$CXX\" CPP=\"$CPP\" CXXCPP=\"$CXXCPP\" LDFLAGS=\"$LDFLAGS\" CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\"
51 ../configure $OPTIONS CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" MACOS_DEPLOYMENT_TARGET=10.4 || exit 1
56 #make package $MAKEFLAGS