build_gtk1() { HERE=`pwd` NAME=gtk1 VER=1.2.10 BUILDDEPS="compiletc.tcz Xorg-7.6-dev.tcz" #DEPS= . ./glib1-sc.inc if [ ! -f gtk+-1.2.10.tar.gz ]; then wget http://ftp.gnome.org/pub/gnome/sources/gtk+/1.2/gtk+-1.2.10.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" tar xvf gtk+-1.2.10.tar.gz || exit 1 cd gtk+-1.2.10|| exit 1 patch -p0 < ../gtk1-aclocal-fixes.patch || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/gtk1 }