diff options
author | seb <sebastien.serre33@laposte.net> | 2010-05-13 00:25:57 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:25:57 +0200 |
commit | 7cd8f3e6d9a81f88bf637832bc26806ca0e9a678 (patch) | |
tree | e0ff17d6bf9e1edea8b29d312411b994ac22fec9 /games/advancemame/advancemame.SlackBuild | |
parent | 46576ebbccea44f136173d0518a349a3f7b9fd39 (diff) | |
download | slackbuilds-7cd8f3e6d9a81f88bf637832bc26806ca0e9a678.tar.gz |
games/advancemame: Updated for version 0.106.0
Diffstat (limited to 'games/advancemame/advancemame.SlackBuild')
-rw-r--r-- | games/advancemame/advancemame.SlackBuild | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/games/advancemame/advancemame.SlackBuild b/games/advancemame/advancemame.SlackBuild index 1f0810ff3e..8582130180 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} |