]>
Commit | Line | Data |
---|---|---|
3d23c9b7 KO |
1 | #!/bin/sh |
2 | ||
9d1eeb0b | 3 | # you need to change this if you run from outside this dir. |
3d23c9b7 | 4 | if [ "$WXROOT" = "" ]; then |
cc669f24 KO |
5 | scriptDir="$(cd $(dirname $0);pwd)" |
6 | WXROOT=$scriptDir/../../.. | |
3d23c9b7 KO |
7 | fi |
8 | ||
9 | . $WXROOT/distrib/scripts/includes/configure_build.inc | |
10 | ||
11 | . $WXROOT/distrib/scripts/mac/mac_options.inc | |
12 | ||
13 | # most of this script is shared with other Mac-based and other | |
14 | # configure-based build scripts, which is why this looks a little empty. | |
15 | ||
16 | if [ "$UNIVERSAL" = "1" ]; then | |
cc669f24 | 17 | OTHER_OPTS="$OTHER_OPTS --enable-universal_binary --with-libjpeg=builtin --with-libpng=builtin" |
3d23c9b7 KO |
18 | fi |
19 | ||
cc669f24 KO |
20 | mkdir -p builds |
21 | cd builds | |
3d23c9b7 KO |
22 | do_build |
23 | ||
24 | make prefix=$INSTALLDIR install | |
25 | ||
cc669f24 KO |
26 | if [ "$WXPYTHON" == "1" ]; then |
27 | make -C contrib/src/gizmos prefix=$INSTALLDIR install | |
28 | make -C contrib/src/stc prefix=$INSTALLDIR install | |
29 | fi | |
30 | ||
31 | cd $OLDDIR |