Split tangents are now red and merged tangents are yellow.
[synfig.git] / synfig-studio / 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-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"
17 BUILDDIR=macosxbuild
18
19 ARCH_FLAGS=""
20 #ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
21 ARCH_FLAGS="$ARCH_FLAGS -arch i386"
22
23 CC="gcc $ARCH_FLAGS"
24 CXX="g++ $ARCH_FLAGS"
25
26 CPP="gcc -E"
27 CXXCPP="g++ -E"
28
29
30 [ -e configure ] || autoreconf --force --install || exit 1
31
32 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
33
34 mkdir $BUILDDIR
35
36 cd $BUILDDIR
37
38 set -x
39
40 ../configure $OPTIONS LDFLAGS="$LDFLAGS" CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" || exit 1
41
42 make -j2
43 make install-strip
44 #make package
45
46 #make installer
47
48