From 7cd8f3e6d9a81f88bf637832bc26806ca0e9a678 Mon Sep 17 00:00:00 2001 From: seb Date: Thu, 13 May 2010 00:25:57 +0200 Subject: games/advancemame: Updated for version 0.106.0 --- games/advancemame/advancemame.SlackBuild | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'games/advancemame/advancemame.SlackBuild') diff --git a/games/advancemame/advancemame.SlackBuild b/games/advancemame/advancemame.SlackBuild index 1f0810ff3e3f..858213018099 100644 --- a/games/advancemame/advancemame.SlackBuild +++ b/games/advancemame/advancemame.SlackBuild @@ -21,8 +21,13 @@ set -e if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi rm -rf $PKG @@ -42,16 +47,18 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --bindir=/usr/games \ - --mandir=/usr/man + --mandir=/usr/man \ + --build=$ARCH-slackware-linux make /usr/bin/ginstall -d -m 755 $PKG/usr/games /usr/bin/ginstall -d -m 755 $PKG/usr/share/advance -/usr/bin/ginstall -d -m 755 $PKG/usr/doc/advance-$VERSION +/usr/bin/ginstall -d -m 755 $PKG/usr/doc/$PRGNAM-$VERSION /usr/bin/ginstall -d -m 755 $PKG/usr/man/man1 /usr/bin/ginstall -d -m 755 $PKG/usr/share/advance/{rom,sample,artwork,image,crc} /usr/bin/ginstall -m 755 obj/mame/linux/blend/advmame $PKG/usr/games @@ -62,13 +69,15 @@ make /usr/bin/ginstall -m 755 obj/j/linux/blend/advj $PKG/usr/games /usr/bin/ginstall -m 755 obj/m/linux/blend/advm $PKG/usr/games /usr/bin/ginstall -m 644 ./support/*.dat $PKG/usr/share/advance -/usr/bin/ginstall -m 644 ./doc/{*.html,*.txt} $PKG/usr/doc/advance-$VERSION -/usr/bin/ginstall -m 644 $DOC $PKG/usr/doc/advance-$VERSION +/usr/bin/ginstall -m 644 ./doc/{*.html,*.txt} $PKG/usr/doc/$PRGNAM-$VERSION +/usr/bin/ginstall -m 644 $DOC $PKG/usr/doc/$PRGNAM-$VERSION /usr/bin/ginstall -m 644 ./doc/*.1 $PKG/usr/man/man1 ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : |xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : |xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/man @@ -80,4 +89,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} -- cgit v1.2.3