2006-05-03 00:36:17 -04:00
|
|
|
|
|
|
|
if [ "$INSTALLDIR" = "" ]; then
|
|
|
|
INSTALLDIR=$BUILDDIR/install
|
|
|
|
mkdir -p $INSTALLDIR
|
|
|
|
fi
|
|
|
|
|
2007-04-12 22:13:41 -04:00
|
|
|
# wxPython needs this option so that it can build extensions that store the
|
2006-05-03 00:36:17 -04:00
|
|
|
# right install_name (e.g. /usr/local/lib) even if the files aren't actually
|
|
|
|
# in /usr/local/lib at the time they're being linked against
|
2007-04-12 22:13:41 -04:00
|
|
|
# we do this by setting the "official" prefix at build time, and later
|
2006-05-03 00:36:17 -04:00
|
|
|
if [ "$BUILDPREFIX" = "" ]; then
|
|
|
|
BUILDPREFIX=$INSTALLDIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
DEBUG_OPTS="--enable-debug"
|
|
|
|
|
|
|
|
UNICODE_OPTS="--enable-unicode"
|
|
|
|
|
|
|
|
ANSI_OPTS="--enable-ansi"
|
|
|
|
|
|
|
|
WXPYTHON_OPTS="--enable-monolithic \
|
|
|
|
--with-opengl \
|
|
|
|
--enable-sound \
|
2006-07-05 14:39:03 -04:00
|
|
|
--enable-mediactrl \
|
2006-05-03 00:36:17 -04:00
|
|
|
--enable-display \
|
|
|
|
--enable-geometry \
|
|
|
|
--enable-debug_flag \
|
|
|
|
--enable-optimise \
|
|
|
|
--disable-debugreport "
|
2007-04-12 22:13:41 -04:00
|
|
|
|
|
|
|
|
2006-05-03 00:36:17 -04:00
|
|
|
do_build(){
|
|
|
|
OPTS=""
|
|
|
|
if [ "$WXPYTHON" == "1" ]; then
|
|
|
|
OPTS="$WXPYTHON_OPTS"
|
|
|
|
fi
|
2007-04-12 22:13:41 -04:00
|
|
|
|
2006-05-03 00:36:17 -04:00
|
|
|
if [ "$DEBUG" == "1" ]; then
|
|
|
|
OPTS="$OPTS $DEBUG_OPTS "
|
|
|
|
fi
|
2007-04-12 22:13:41 -04:00
|
|
|
|
2006-05-03 00:36:17 -04:00
|
|
|
if [ "$UNICODE" == "1" ]; then
|
|
|
|
OPTS="$OPTS $UNICODE_OPTS "
|
|
|
|
fi
|
2007-04-12 22:13:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
2006-05-03 00:36:17 -04:00
|
|
|
if [ "$STATIC" == "1" ]; then
|
|
|
|
OPTS="$OPTS --enable-static"
|
|
|
|
fi
|
2007-04-12 22:13:41 -04:00
|
|
|
|
2006-05-03 00:36:17 -04:00
|
|
|
OPTS="$OPTS $OTHER_OPTS"
|
2007-04-12 22:13:41 -04:00
|
|
|
|
2006-05-03 00:36:17 -04:00
|
|
|
$WXROOT/configure --prefix=$BUILDPREFIX $OPTS
|
|
|
|
make
|
2007-04-12 22:13:41 -04:00
|
|
|
}
|