build_tcl-tk() { HERE=`pwd` NAME=tcl-tk VER=8.5.11 BUILDDEPS="compiletc.tcz Xorg-7.6-dev.tcz" #DEPS= if [ ! -f tcl8.5.11-src.tar.gz ]; then wget http://prdownloads.sourceforge.net/tcl/tcl8.5.11-src.tar.gz || exit 1 fi if [ ! -f tk8.5.11-src.tar.gz ]; then wget http://prdownloads.sourceforge.net/tcl/tk8.5.11-src.tar.gz || exit 1 fi 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:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib" if [ ! -f "$TMPDIR"/tcl ]; then tar xvf tcl8.5.11-src.tar.gz || exit 1 cd tcl8.5.11/unix || exit 1 ./configure --prefix=/usr/local --enable-threads --disable-shared || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/tcl fi cd "$HERE" tar xvf tk8.5.11-src.tar.gz || exit 1 cd tk8.5.11/unix || exit 1 ./configure --prefix=/usr/local --with-tcl=/usr/lib --enable-threads --with-x --disable-shared || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/tcl-tk }