Fix 2502818: Noise when refresh an imported image layer.
[synfig.git] / synfig-core / trunk / macosxbuild.sh
blob702ce31474595b9f5a2a3cd821b81665b230aad3
1 #!/bin/sh
3 #OPTIONS="--disable-optimization --enable-debug"
5 PREFIX=/Users/darco/Projects/Voria/synfig-build
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"
19 ARCH_FLAGS=""
20 #ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
21 ARCH_FLAGS="$ARCH_FLAGS -arch i386"
23 LDFLAGS="-L$PREFIX/lib"
24 CFLAGS="-I$PREFIX/include"
25 CXXFLAGS="-I$PREFIX/include"
27 CC="gcc $LDFLAGS $CFLAGS $ARCH_FLAGS"
28 CXX="g++ $LDFLAGS $CFLAGS $ARCH_FLAGS"
29 CPP="gcc -E"
30 CXXCPP="g++ -E"
32 #distcc --version && {
33 # CC=distcc
34 # CXX="distcc g++"
38 BUILDDIR=macosxbuild
40 [ -e configure ] || ( libtoolize --ltdl --copy --force && autoreconf --force --install ) || exit 1
42 [ -d $BUILDDIR ] && rm -fr $BUILDDIR
44 mkdir $BUILDDIR
46 cd $BUILDDIR
48 echo ../configure $OPTIONS CC=\"$CC\" CXX=\"$CXX\" CPP=\"$CPP\" CXXCPP=\"$CXXCPP\" LDFLAGS=\"$LDFLAGS\" CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\"
50 ../configure $OPTIONS CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" MACOS_DEPLOYMENT_TARGET=10.4 || exit 1
52 make -j2
53 make install-strip
55 #make package $MAKEFLAGS
57 #make installer