build_gqview1() { HERE=`pwd` BUILDDEPS="compiletc.tcz gettext.tcz texinfo.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" 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 cd .. 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 cd .. tar xvf gdk-pixbuf-0.22.0.tar.gz || exit 1 cd gdk-pixbuf-0.22.0 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 cd .. tar xvf gqview-1.2.2.tar.gz || exit 1 cd gqview-1.2.2 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/gqview1 }