Fix bugs in previous commit that caused FTBFS in synfig and ETL FTBFS with older...
[synfig.git] / synfig-studio / tags / synfigstudio_0_61_04 / synfig-studio / macosxbuild.sh
1 #!/bin/sh
2
3 #OPTIONS="--disable-optimization --enable-debug"
4 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
5 export MACOSX_DEPLOYMENT_TARGET=10.4
6 OPTIONS=""
7 #OPTIONS="$OPTIONS --enable-timelimit=120"
8 OPTIONS="$OPTIONS --enable-optimization=2"
9 #OPTIONS="$OPTIONS --enable-optimization=3 --enable-g5opt"
10 #OPTIONS="$OPTIONS --disable-optimization"
11 OPTIONS="$OPTIONS --disable-debug"
12 #OPTIONS="$OPTIONS --enable-debug"
13 #export LDFLAGS='-undefined dynamic-lookup'
14 LDFLAGS="-prebind -prebind_all_twolevel_modules -twolevel_namespace -bind_at_load -undefined dynamic_lookup"
15 BUILDDIR=macosxbuild
16
17 [ -e configure ] || ./bootstrap || exit 1
18
19 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
20
21 mkdir $BUILDDIR
22
23 cd $BUILDDIR
24
25 set -x
26
27 ../configure $OPTIONS LDFLAGS="$LDFLAGS" || exit 1
28
29 make -j2
30 make package
31
32 #make installer
33
34