summaryrefslogtreecommitdiff
path: root/games/advancemame
diff options
context:
space:
mode:
Diffstat (limited to 'games/advancemame')
-rw-r--r--games/advancemame/advancemame.SlackBuild23
-rw-r--r--games/advancemame/advancemame.info4
2 files changed, 19 insertions, 8 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}
diff --git a/games/advancemame/advancemame.info b/games/advancemame/advancemame.info
index 22cc3b1c0e..2aee705bb0 100644
--- a/games/advancemame/advancemame.info
+++ b/games/advancemame/advancemame.info
@@ -1,8 +1,10 @@
PRGNAM="advancemame"
VERSION="0.106.0"
HOMEPAGE="http://advancemame.sourceforge.net"
-DOWNLOAD="http://prdownloads.sourceforge.net/advancemame/advancemame-0.106.0.tar.gz"
+DOWNLOAD="http://downloads.sourceforge.net/advancemame/advancemame-0.106.0.tar.gz"
+DOWNLOAD_x86_64=""
MD5SUM="aa097a4a9046124e17aa83a215e454ea"
+MD5SUM_x86_64=""
MAINTAINER="seb"
EMAIL="sebastien.serre33@laposte.net"
APPROVED="David Somero"