# vim: set syn=sh: # Packager: Phill Watkins pkgname=mupen64plus pkgver=1.99.4 pkgrel=2pw #arch=noarch source=\ ( "http://mupen64plus.googlecode.com/files/mupen64plus-bundle-src-$pkgver.tar.gz" "http://mupen64plus.googlecode.com/files/mupen64plus-extraplugins-src-$pkgver.tar.gz" "http://www.libsdl.org/release/SDL-1.2.14.tar.gz" "controllers.ini.gz" ) sourcetemplate=http://people.salixos.org/pwatk/packages/13.37/games/$pkgname docs=("font-license" "gpl-license" "lgpl-license") url=http://code.google.com/p/mupen64plus/ options=('nosrcpack') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "mupen64plus (N64 emulator)" "Mupen64Plus is a cross-platform plugin-based N64 emulator which is" "capable of accurately playing many games. Included are four MIPS R4300" "CPU emulators, with dynamic recompilers for 32-bit x86 and 64-bit" "amd64 systems, and necessary plugins for audio, graphical rendering" "(RDP), signal co-processor (RSP), and input. There is 1 included" "OpenGL video plugin, called RiceVideo." "" "Note: Includes extra plugins maintained by wahrhaft and the SDL" "testjoystick utility for configuring your joystick/gamepad." ) build() { set -e cd $startdir/src/mupen64plus-bundle-src-$pkgver/source cp -a $startdir/src/mupen64plus-extraplugins-src-$pkgver/* . # extra controllers cat $startdir/src/controllers.ini >> mupen64plus-input-sdl/data/InputAutoCfg.ini for plugin in \ core \ ui-console \ audio-sdl \ input-sdl \ rsp-hle \ video-rice \ rsp-z64 \ video-arachnoid \ video-glide64 \ video-z64 \ ;do sed \ -e '/CFLAGS/s|-O3|-O2|g' \ -e '/CFLAGS/s| -march=athlon64||g' \ -e '/CFLAGS/s|-march=i.86 -mtune=.* |-march=i486 -mtune=i686 |g' \ -i mupen64plus-$plugin/projects/unix/Makefile if [ "$arch" = "x86_64" ]; then sed "/LIBDIR :=/s|lib|lib${LIBDIRSUFFIX}|g" -i mupen64plus-$plugin/projects/unix/Makefile fi make all \ -j $numjobs \ -C mupen64plus-$plugin/projects/unix \ PREFIX=/usr \ BINDIR=/usr/games \ PLUGINDIR=/usr/lib${LIBDIRSUFFIX}/mupen64plus \ COREDIR=/usr/lib${LIBDIRSUFFIX}/ \ SHAREDIR=/usr/share/mupen64plus make install \ -C mupen64plus-$plugin/projects/unix \ DESTDIR=$startdir/pkg \ BINDIR=/usr/games \ PREFIX=/usr for doc in AUTHORS COPYING INSTALL LICENSES README RELEASE ;do if [ -f "mupen64plus-$plugin/$doc" ]; then install -Dm 0644 mupen64plus-$plugin/$doc $startdir/pkg/usr/doc/$pkgname-$pkgver/$plugin.$doc fi done done cd $startdir/src/SDL-*/test/ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --build=$arch-slackware-linux make -j $numjobs install -Dm 0755 testjoystick $startdir/pkg/usr/games/testjoystick set +e }