summaryrefslogtreecommitdiff
path: root/games/advancemame/advancemame.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/advancemame/advancemame.SlackBuild')
-rw-r--r--games/advancemame/advancemame.SlackBuild23
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}