build_gtk-gnutella-gtk1(){ HERE=`pwd` . ./libxml2-sc.inc || exit 1 #BUILDDEPS="compiletc.tcz Xorg-7.6-lib.tcz Xorg-7.6-dev.tcz gettext.tcz" 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" export LD_LIBRARY_PATH="$PKGPATH/lib" if [ ! -f "$TMPDIR"/libxml2 ]; then build_libxml2 "$PKGPATH" || exit 1 fi 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 tar xvf gtk-gnutella-0.98.2.tar.bz2 || exit 1 cd gtk-gnutella-0.98.2 || exit 1 patch -p0 < ../gtk-gnutella-build.sh.binpath.patch || exit 1 ./build.sh --prefix="$PKGPATH" --gtk1 || exit 1 make install || exit 1 touch "$TMPDIR"/gtk-gnutella-gtk1 }