Release of etl 0.04.12 version. *****
[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-optimization=2"
10 OPTIONS="$OPTIONS --enable-optimization=3"
11 #OPTIONS="$OPTIONS --enable-g5opt"
12 #OPTIONS="$OPTIONS --disable-optimization"
13 OPTIONS="$OPTIONS --disable-debug"
14 #OPTIONS="$OPTIONS --with-vimage"
15 OPTIONS="$OPTIONS --without-openexr"
16 OPTIONS="$OPTIONS --disable-dependency-tracking"
17 #OPTIONS="$OPTIONS --enable-universal"
18
19 ARCH_FLAGS=""
20 #ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
21 ARCH_FLAGS="$ARCH_FLAGS -arch i386"
22
23 LDFLAGS="-L$PREFIX/lib"
24 CFLAGS="-I$PREFIX/include"
25 CXXFLAGS="-I$PREFIX/include"
26
27 CC="gcc $LDFLAGS $CFLAGS $ARCH_FLAGS"
28 CXX="g++ $LDFLAGS $CFLAGS $ARCH_FLAGS"
29 CPP="gcc -E"
30 CXXCPP="g++ -E"
31
32 #distcc --version && {
33 #       CC=distcc
34 #       CXX="distcc g++"
35 #}
36
37
38 BUILDDIR=macosxbuild
39
40 [ -e configure ] || ( libtoolize --ltdl --copy --force && autoreconf --force --install ) || exit 1
41
42 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
43
44 mkdir $BUILDDIR
45
46 cd $BUILDDIR
47
48 echo ../configure $OPTIONS CC=\"$CC\" CXX=\"$CXX\" CPP=\"$CPP\" CXXCPP=\"$CXXCPP\" LDFLAGS=\"$LDFLAGS\" CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\"
49
50 ../configure $OPTIONS CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" MACOS_DEPLOYMENT_TARGET=10.4 || exit 1
51
52 make -j2
53 make install-strip
54
55 #make package $MAKEFLAGS
56
57 #make installer
58
59