build_gentoo-gtk1() { HERE=`pwd` VER="4.2.0" BUILDDEPS="compiletc.tcz docbook_xsl.tcz automake.tcz libxml2-bin.tcz libxslt.tcz libtool.tcz libtool-dev.tcz gettext.tcz Xorg-7.6-dev.tcz Xorg-7.6-lib.tcz" #DEPS= 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"/glib ]; then tar xvf glib-1.2.10.tar.bz2 || exit 1 cd glib-1.2.10 || exit 1 patch -p1 < ../glib1.2_1.2.10-17.diff || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/glib cd .. fi if [ ! -f "$TMPDIR"/gtk ]; then tar xvf gtk+-1.2.10.tar.bz2 || exit 1 cd gtk+-1.2.10 || exit 1 patch -p1 < ../gtk+1.2_1.2.10-18.diff || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/gtk cd .. fi if [ ! -f "$TMPDIR"/gentoo-gtk1 ]; then tar xvf gentoo-0.11.57.tar.gz || exit 1 cd gentoo-0.11.57 || exit 1 chmod +x install-sh ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/gentoo-gtk1 fi }