Typo: 'ontop' -> 'on top'.
[synfig.git] / synfig-studio / trunk / macosxbuild.sh
1 #!/bin/sh
2
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"
18 BUILDDIR=macosxbuild
19
20 ARCH_FLAGS=""
21 #ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
22 ARCH_FLAGS="$ARCH_FLAGS -arch i386"
23
24 CC="gcc $ARCH_FLAGS"
25 CXX="g++ $ARCH_FLAGS"
26
27 CPP="gcc -E"
28 CXXCPP="g++ -E"
29
30
31 [ -e configure ] || ./bootstrap || exit 1
32
33 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
34
35 mkdir $BUILDDIR
36
37 cd $BUILDDIR
38
39 set -x
40
41 ../configure $OPTIONS LDFLAGS="$LDFLAGS" CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" || exit 1
42
43 make -j2
44 make install-strip
45 #make package
46
47 #make installer
48
49