2006-05-03 00:36:17 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-04-12 22:13:41 -04:00
|
|
|
# you need to change this if you run from outside this dir.
|
2006-05-03 00:36:17 -04:00
|
|
|
if [ "$WXROOT" = "" ]; then
|
2008-03-30 14:30:48 -04:00
|
|
|
scriptDir="$(cd $(dirname $0);pwd)"
|
|
|
|
WXROOT=$scriptDir/../../..
|
2006-05-03 00:36:17 -04:00
|
|
|
fi
|
|
|
|
|
|
|
|
. $WXROOT/distrib/scripts/includes/configure_build.inc
|
|
|
|
|
|
|
|
. $WXROOT/distrib/scripts/mac/mac_options.inc
|
|
|
|
|
|
|
|
# most of this script is shared with other Mac-based and other
|
|
|
|
# configure-based build scripts, which is why this looks a little empty.
|
|
|
|
|
|
|
|
if [ "$UNIVERSAL" = "1" ]; then
|
2008-03-30 14:30:48 -04:00
|
|
|
OTHER_OPTS="$OTHER_OPTS --enable-universal_binary --with-libjpeg=builtin --with-libpng=builtin"
|
2006-05-03 00:36:17 -04:00
|
|
|
fi
|
|
|
|
|
2008-03-30 14:30:48 -04:00
|
|
|
mkdir -p builds
|
|
|
|
cd builds
|
2006-05-03 00:36:17 -04:00
|
|
|
do_build
|
|
|
|
|
|
|
|
make prefix=$INSTALLDIR install
|
|
|
|
|
2008-03-30 14:30:48 -04:00
|
|
|
if [ "$WXPYTHON" == "1" ]; then
|
|
|
|
make -C contrib/src/gizmos prefix=$INSTALLDIR install
|
|
|
|
make -C contrib/src/stc prefix=$INSTALLDIR install
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $OLDDIR
|