$TOOLS/Python$PY_VERSION/python `cygpath -d $WXWIN/wxPython/distrib/make_installer_inno4.py` $UNICODE_FLAG
elif [ "$OSTYPE" = "darwin" ]; then
+ OSX_VERSION=`sw_vers -productVersion`
+ echo "OS X Version: ${OSX_VERSION:0:4}"
cd $WXWIN/wxPython
if [ ! -d dist ]; then
mkdir dist
fi
# re-generate SWIG files
+ RESWIG=
if [ $reswig = yes ]; then
- $WXWIN/wxPython/b $PY_VERSION t
+ RESWIG=reswig
fi
PY_DOT_VER=2.3
UNICODE_OPT=unicode
fi
+ # On Tiger, build Universal.
+ UNIV_OPT=
+ if [ ${OSX_VERSION:0:4} = "10.4" ]; then
+ UNIV_OPT="universal"
+ fi
+
#sudo $WXWIN/wxPython/distrib/makedocs
$WXWIN/wxPython/distrib/makedemo
export TARBALLDIR=$WXWIN/wxPython/dist
+ echo "distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT $RESWIG"
- distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT
+ distrib/mac/wxPythonOSX/build $PY_DOT_VER panther inplace $UNICODE_OPT $RESWIG $UNIV_OPT
else
echo "OSTYPE $OSTYPE not yet supported by this build script."
fi
echo " skiptar Don't unpack the tarball"
echo " inplace Don't use the tarball, build from the CVS tree instead"
echo " (The Docs and Demo tarballs are still required for a full build.)"
+ echo " reswig Regenerate SWIG wrappers"
+ echo " universal Generate Universal wxWidgets binary (requires Universal Python "
+ echo " to general Universal wxPython)."
echo " unicode Make a unicode build"
echo " skipconfig Don't run configure"
echo " skipbuild Don't build wxWidgets or wxPython"
skipclean=no
inplace=no
unicode=no
+reswig=no
+universal=no
for flag in $*; do
case ${flag} in
skipconfig) skipconfig=yes; skiptar=yes ;;
skipbuild) skipbuild=yes; skipconfig=yes; skiptar=yes ;;
skipinstall) skipinstall=yes ;;
- skipdmg) skipdmg=yes ;;
+ skipdmg) skipdmg=yes ;;
skipclean) skipclean=yes ;;
inplace) inplace=yes; skiptar=yes ;;
unicode) unicode=yes ;;
-
+ reswig) reswig=yes ;;
+ universal) universal=yes ;;
*) echo "Unknown flag \"${flag}\""
usage
exit 1
PREFIX=/usr/local/lib/wxPython-$CHARTYPE-$VERSION
BINPREFIX=/usr/local/bin
+SWIGBIN=/opt/swig/bin/swig
WXROOT=`dirname $PWD`
PROGDIR="`dirname \"$0\"`"
TMPDIR=$PWD/_build_dmg
OTHER_CFG_OPTS=--enable-mediactrl
fi
+UNIVOPT=
+if [ $universal = yes ]; then
+ UNIVOPT=--enable-universal_binary
+fi
# Configure wxWidgets
if [ $skipconfig != yes ]; then
$WXDIR/configure \
--enable-precomp=no \
--enable-optimise \
--disable-debugreport \
- $UNICODEOPT $OTHER_CFG_OPTS
+ --disable-precompiled-headers \
+ $UNICODEOPT $UNIVOPT $OTHER_CFG_OPTS
fi
make $MAKEJOBS -C contrib/src/gizmos
make $MAKEJOBS -C contrib/src/stc
+SWIGIT=0
+if [ $reswig = yes ]; then
+ SWIGIT=1
+fi
+
# Build wxPython
cd $WXROOT/wxPython
$PYTHON setup.py \
EP_ADD_OPTS=1 \
WX_CONFIG="$WXBLD/wx-config --inplace" \
BUILD_BASE=$WXBLD/wxPython \
+ SWIG=$SWIGBIN \
+ USE_SWIG=$SWIGIT \
build
fi