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
/X11R
6/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"
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"
32 #distcc --version && {
40 [ -e configure
] ||
( libtoolize
--ltdl --copy --force && autoreconf
--force --install ) ||
exit 1
42 [ -d $BUILDDIR ] && rm -fr $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
55 #make package $MAKEFLAGS