build_python-3.2() { . ./bzip2-sc.inc || exit 1 . ./expat-sc.inc || exit 1 . ./fontconfig-sc.inc || exit 1 . ./openssl-sc.inc || exit 1 . ./sqlite3-sc.inc || exit 1 . ./tcl-tk-sc.inc || exit 1 HERE=`pwd` NAME=python-3.2 VER=3.2 BUILDDEPS="compiletc.tcz perl5.tcz autoconf.tcz automake.tcz" for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib" export LD_RUN_PATH="$PKGPATH/lib" if [ ! -f "$TMPDIR"/bzip2 ]; then build_bzip2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/expat ]; then build_expat "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/fontconfig ]; then build_fontconfig "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/openssl ]; then build_openssl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/sqlite3 ]; then build_sqlite3 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/tcl-tk ]; then build_tcl-tk "$PKGPATH" || exit 1 fi rm -f /usr/local/lib/libdb*.so tar xvf Python-3.2.2.tar.xz || exit 1 cd Python-3.2.2 || exit 1 sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py || exit 1 ./configure --prefix="$PKGPATH" --enable-shared || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/python-3.2 cd "$HERE" }