projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename the menu entry for editing a waypoint back to "Edit" now that the 'E' shortcut...
[synfig.git]
/
synfig-core
/
trunk
/
macosxbuild.sh
diff --git
a/synfig-core/trunk/macosxbuild.sh
b/synfig-core/trunk/macosxbuild.sh
index
d9f7c1b
..
702ce31
100755
(executable)
--- a/
synfig-core/trunk/macosxbuild.sh
+++ b/
synfig-core/trunk/macosxbuild.sh
@@
-1,18
+1,33
@@
#!/bin/sh
#OPTIONS="--disable-optimization --enable-debug"
#!/bin/sh
#OPTIONS="--disable-optimization --enable-debug"
-export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
-OPTIONS=""
-#OPTIONS="$OPTIONS --enable-timelimit=120"
+
+PREFIX=/Users/darco/Projects/Voria/synfig-build
+
+export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R6/lib/pkgconfig
+OPTIONS="--prefix=$PREFIX"
#OPTIONS="$OPTIONS --enable-optimization=2"
#OPTIONS="$OPTIONS --enable-optimization=2"
-OPTIONS="$OPTIONS --enable-optimization=3 --enable-g5opt"
+OPTIONS="$OPTIONS --enable-optimization=3"
+#OPTIONS="$OPTIONS --enable-g5opt"
#OPTIONS="$OPTIONS --disable-optimization"
OPTIONS="$OPTIONS --disable-debug"
#OPTIONS="$OPTIONS --with-vimage"
OPTIONS="$OPTIONS --without-openexr"
#OPTIONS="$OPTIONS --disable-optimization"
OPTIONS="$OPTIONS --disable-debug"
#OPTIONS="$OPTIONS --with-vimage"
OPTIONS="$OPTIONS --without-openexr"
+OPTIONS="$OPTIONS --disable-dependency-tracking"
+#OPTIONS="$OPTIONS --enable-universal"
+
+ARCH_FLAGS=""
+#ARCH_FLAGS="$ARCH_FLAGS -arch ppc"
+ARCH_FLAGS="$ARCH_FLAGS -arch i386"
-CC=gcc
-CXX=g++
+LDFLAGS="-L$PREFIX/lib"
+CFLAGS="-I$PREFIX/include"
+CXXFLAGS="-I$PREFIX/include"
+
+CC="gcc $LDFLAGS $CFLAGS $ARCH_FLAGS"
+CXX="g++ $LDFLAGS $CFLAGS $ARCH_FLAGS"
+CPP="gcc -E"
+CXXCPP="g++ -E"
#distcc --version && {
# CC=distcc
#distcc --version && {
# CC=distcc
@@
-22,7
+37,7
@@
CXX=g++
BUILDDIR=macosxbuild
BUILDDIR=macosxbuild
-[ -e configure ] ||
./bootstrap
|| exit 1
+[ -e configure ] ||
( libtoolize --ltdl --copy --force && autoreconf --force --install )
|| exit 1
[ -d $BUILDDIR ] && rm -fr $BUILDDIR
[ -d $BUILDDIR ] && rm -fr $BUILDDIR
@@
-30,11
+45,14
@@
mkdir $BUILDDIR
cd $BUILDDIR
cd $BUILDDIR
-echo ../configure $OPTIONS CC="$CC" CXX="$CXX"
+echo ../configure $OPTIONS CC=\"$CC\" CXX=\"$CXX\" CPP=\"$CPP\" CXXCPP=\"$CXXCPP\" LDFLAGS=\"$LDFLAGS\" CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\"
+
+../configure $OPTIONS CC="$CC" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" MACOS_DEPLOYMENT_TARGET=10.4 || exit 1
-../configure $OPTIONS CC="$CC" CXX="$CXX" MACOS_DEPLOYMENT_TARGET=10.4 || exit 1
+make -j2
+make install-strip
-make package $MAKEFLAGS
+
#
make package $MAKEFLAGS
#make installer
#make installer