build_perl5() { . ./bzip2-sc.inc || exit 1 . ./db-sc.inc || exit 1 . ./gawk-sc.inc || exit 1 . ./gdbm-sc.inc || exit 1 HERE=`pwd` BUILDDEPS="python.tcz compiletc.tcz gettext.tcz" TCEDIR=/etc/sysconfig/tcedir 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/localbin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/bzip2 ]; then build_bzip2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/db ]; then build_db "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gawk ]; then build_gawk "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gdbm ]; then build_gdbm "$PKGPATH" || exit 1 fi tar xvf perl-5.16.0.tar.gz cd perl-5.16.0 sh Configure -des -Uusesl -Dprefix="$PKGPATH" \ -Dvendorprefix="$PKGPATH" \ -Dpager="/usr/bin/less -isR" \ -Duseshrplib make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/perl5 }