#!/bin/sh # Built on TCL v1.4 # Required extensions: # compiletc # advcomp # cramfs-utils # atk # atk-devs # cairo # cairo-devs # gtk2 # gtk2-devs # pango # pango-devs # SDL # SDL-devs # graphics-libs-1 # graphics-libs-1-devs # pixman # pixman-devs # Xorg-7.4 # Xorg-7.4-devs # glib2 # glib2-devs # fontconfig # fontconfig-devs # expat2 # expat2-devs # openssl-0.9.8h export CFLAGS="-march=i486 -mtune=i686 -Os -pipe" export CXXFLAGS=$CFLAGS" -fno-exceptions -fno-rtti" export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig tar -zxf Mupen64Plus-1-5-src.tar.gz cd Mupen64Plus-1-5-src make all # There is a problem with Mupen install not finding pkgconfig correctly if not in /usr/lib/pkgconfig cp /usr/local/lib/pkgconfig/* /usr/lib/pkgconfig touch mark echo "i: /usr/local/share/mupen64plus/icons/mupen64plus-large.png" > /usr/local/tce.icons/mupen64plus echo "t: mupen64+" >> /usr/local/tce.icons/mupen64plus echo "c: mupen64plus" >> /usr/local/tce.icons/mupen64plus echo "" > /usr/local/tce.menu/mupen64plus echo '/usr/local/bin/mupen64plus' >> /usr/local/tce.menu/mupen64plus echo "" >> /usr/local/tce.menu/mupen64plus sudo make install find /usr/local/ -newer mark -not -type d > filelist cat filelist | grep -v -e man/ > filelist tar -czf mupen64plus.tce -T filelist advdef -z4 mupen64plus.tce md5sum mupen64plus.tce > mupen64plus.tce.md5.txt TCZDIR=`mktemp -d tcz.XXXXXX` cd $TCZDIR tar zxf ../mupen64plus.tce cd .. mkfs.cramfs $TCZDIR mupen64plus.tcz md5sum mupen64plus.tcz > mupen64plus.tcz.md5.txt rm -rf $TCZDIR $ZISODIR rm -rf Mupen64Plus-1-5-src mark filelist