build_tuxnes() { HERE=`pwd` BUILDDEPS="compiletc.tcz Xorg-7.6-lib.tcz Xorg-7.6-dev.tcz gettext.tcz intltool.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/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib:$LD_LIBRARY_PATH" tar xvf tuxnes-0.75.tar.gz || exit 1 cd tuxnes-0.75 || exit 1 patch -p0 -i ../tuxnes-0.75-configure.in.patch || exit 1 patch -p0 -i ../tuxnes-0.75-exec-stack.patch || exit 1 patch -p0 -i ../tuxnes-0.75-gcc43.patch || exit 1 patch -p0 -i ../tuxnes-0.75-include.patch || exit 1 patch -p0 -i ../tuxnes-0.75-xshm.patch || exit 1 patch -p1 -i ../tuxnes-0.75-gcc34.patch || exit 1 ./configure --prefix="$PKGPATH" --with-x --sysconfdir="$PKGPATH"/etc --localstatedir=/var || exit 1 make || exit 1 make install || exit 1 #mkdir -p "$PKGPATH"/share/applications || exit 1 #mkdir -p "$PKGPATH"/share/pixmaps || exit 1 #cp -a ../tuxnes.desktop "$PKGPATH"/share/applications || exit 1 #cp -a ../tuxnes.png "$PKGPATH"/share/pixmaps/ || exit 1 cd "$HERE" touch "$TMPDIR"/tuxnes }