build_emelfm() { 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 emelfm_0.9.2.orig.tar.gz || exit 1 cd emelfm-0.9.2.orig || exit 1 make PREFIX="$PKGPATH" BIN_DIR="$PKGPATH"/localbin || exit 1 make PREFIX="$PKGPATH" BIN_DIR="$PKGPATH"/localbin install || exit 1 cd "$HERE" touch "$TMPDIR"/emelfm }