X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d23c9b7d9977707bfe9d83d1b30cb5147126b3c..1441bb60dfea9ba90ddf991535ab4fe59211b6ba:/distrib/scripts/mac/macbuild diff --git a/distrib/scripts/mac/macbuild b/distrib/scripts/mac/macbuild index 91d32cf02c..ede1414a74 100755 --- a/distrib/scripts/mac/macbuild +++ b/distrib/scripts/mac/macbuild @@ -1,8 +1,9 @@ #!/bin/sh -# you need to change this if you run from outside this dir. +# you need to change this if you run from outside this dir. if [ "$WXROOT" = "" ]; then - WXROOT=../../.. + scriptDir="$(cd $(dirname $0);pwd)" + WXROOT=$scriptDir/../../.. fi . $WXROOT/distrib/scripts/includes/configure_build.inc @@ -13,17 +14,18 @@ fi # configure-based build scripts, which is why this looks a little empty. if [ "$UNIVERSAL" = "1" ]; then - OTHER_OPTS="--enable-universal_binary " + OTHER_OPTS="$OTHER_OPTS --enable-universal_binary --with-libjpeg=builtin --with-libpng=builtin" fi +mkdir -p builds +cd builds do_build make prefix=$INSTALLDIR install if [ "$WXPYTHON" == "1" ]; then - make -C contrib/src/animate prefix=$INSTALLDIR install - make -C contrib/src/gizmos prefix=$INSTALLDIR install - make -C contrib/src/stc prefix=$INSTALLDIR install -fi + make -C contrib/src/gizmos prefix=$INSTALLDIR install + make -C contrib/src/stc prefix=$INSTALLDIR install +fi cd $OLDDIR \ No newline at end of file