aboutsummaryrefslogtreecommitdiff
path: root/games/extremetuxracer/extremetuxracer.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:26:15 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 00:26:15 +0200
commit106455651a4e8ea4ba0089211ec85686e25fb5b0 (patch)
tree4f4f78d280db7c3a2afed04b2ed4dccb2e0b3019 /games/extremetuxracer/extremetuxracer.SlackBuild
parent84c4caa9995e102901a90c3738d5db8d675b0cec (diff)
games/extremetuxracer: Updated for version 0.4
Diffstat (limited to 'games/extremetuxracer/extremetuxracer.SlackBuild')
-rw-r--r--games/extremetuxracer/extremetuxracer.SlackBuild15
1 files changed, 12 insertions, 3 deletions
diff --git a/games/extremetuxracer/extremetuxracer.SlackBuild b/games/extremetuxracer/extremetuxracer.SlackBuild
index 0591a7b30ed6d..d7a9d56435949 100644
--- a/games/extremetuxracer/extremetuxracer.SlackBuild
+++ b/games/extremetuxracer/extremetuxracer.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for extremetuxracer
-# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at>
+# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -35,8 +35,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
set -e
@@ -54,10 +59,14 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --bindir=/usr/games \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --disable-static
+ --disable-static \
+ --with-tcl=/usr/lib$LIBDIRSUFFIX \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@@ -78,4 +87,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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}