Comment out the trackmenu, it isn't used and the strings are annoying to translators
[synfig.git] / synfig-core / trunk / macosxbuild.sh
1 #!/bin/sh
2
3 #OPTIONS="--disable-optimization --enable-debug"
4
5 PREFIX=/Users/darco/Projects/Voria/synfig-build
6
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"
19
20 ARCH_FLAGS=""
21 #ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
22 ARCH_FLAGS="$ARCH_FLAGS -arch i386"
23
24 LDFLAGS="-L$PREFIX/lib"
25 CFLAGS="-I$PREFIX/include"
26 CXXFLAGS="-I$PREFIX/include"
27
28 CC="gcc $LDFLAGS $CFLAGS $ARCH_FLAGS"
29 CXX="g++ $LDFLAGS $CFLAGS $ARCH_FLAGS"
30 CPP="gcc -E"
31 CXXCPP="g++ -E"
32
33 #distcc --version && {
34 #       CC=distcc
35 #       CXX="distcc g++"
36 #}
37
38
39 BUILDDIR=macosxbuild
40
41 [ -e configure ] || ./bootstrap || exit 1
42
43 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
44
45 mkdir $BUILDDIR
46
47 cd $BUILDDIR
48
49 echo ../configure $OPTIONS CC=\"$CC\" CXX=\"$CXX\" CPP=\"$CPP\" CXXCPP=\"$CXXCPP\" LDFLAGS=\"$LDFLAGS\" CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\"
50
51 ../configure $OPTIONS CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" MACOS_DEPLOYMENT_TARGET=10.4 || exit 1
52
53 make -j2
54 make install-strip
55
56 #make package $MAKEFLAGS
57
58 #make installer
59
60