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