aboutsummaryrefslogtreecommitdiff
path: root/games/bzflag/bzflag.SlackBuild
diff options
context:
space:
mode:
authorMartin Lefebvre <dadexter@gmail.com>2010-05-13 00:26:03 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:26:03 +0200
commit7c5f9b6311d39ddb99d4355e56de40defa9fd8d4 (patch)
tree90fa95c62091149ab9a8b45563eaf23269a17ba0 /games/bzflag/bzflag.SlackBuild
parent19d2918f62e7d89fb3f363072b94753ad9b32f03 (diff)
games/bzflag: Updated for version 2.0.12
Diffstat (limited to 'games/bzflag/bzflag.SlackBuild')
-rw-r--r--games/bzflag/bzflag.SlackBuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/games/bzflag/bzflag.SlackBuild b/games/bzflag/bzflag.SlackBuild
index d5545dd5fe63e..ef7f0be5298ad 100644
--- a/games/bzflag/bzflag.SlackBuild
+++ b/games/bzflag/bzflag.SlackBuild
@@ -25,7 +25,7 @@
# Modified by the SlackBuilds.org project
PRGNAM=bzflag
-VERSION=2.0.8
+VERSION=2.0.12
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -36,8 +36,13 @@ OUTPUT=${OUTPUT:-/tmp}
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
@@ -53,7 +58,9 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
+ --build=$ARCH-slackware-linux \
|| exit 1
make || exit 1
@@ -75,4 +82,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}