summaryrefslogtreecommitdiff
path: root/games/supertuxkart/supertuxkart.SlackBuild
diff options
context:
space:
mode:
authorRyan P.C. McQuen <ryan.q@linux.com>2015-04-24 08:41:39 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-04-26 14:04:59 +0700
commit83f9c07a086c05176027dbe971c8d30926fae944 (patch)
tree93bc7fdb0855c6f5c857f80bc24705c8911b2372 /games/supertuxkart/supertuxkart.SlackBuild
parentf7281f37b35550624ed5f719744f856e180106bd (diff)
downloadslackbuilds-83f9c07a086c05176027dbe971c8d30926fae944.tar.gz
games/supertuxkart: Updated for version 0.9.
Signed-off-by: Ryan P.C. McQuen <ryan.q@linux.com>
Diffstat (limited to 'games/supertuxkart/supertuxkart.SlackBuild')
-rw-r--r--games/supertuxkart/supertuxkart.SlackBuild30
1 files changed, 10 insertions, 20 deletions
diff --git a/games/supertuxkart/supertuxkart.SlackBuild b/games/supertuxkart/supertuxkart.SlackBuild
index be7421a2ae..2755bbcf56 100644
--- a/games/supertuxkart/supertuxkart.SlackBuild
+++ b/games/supertuxkart/supertuxkart.SlackBuild
@@ -1,5 +1,4 @@
#!/bin/sh
-
# Slackware build script for supertuxkart
# Ryan P.C. McQuen | Everett, WA | ryan.q@linux.com
@@ -26,12 +25,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=supertuxkart
-VERSION=${VERSION:-0.8.1}
+VERSION=${VERSION:-0.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-UNTARRED=SuperTuxKart
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -45,6 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DOCS="AUTHORS CHANGELOG.md COPYING INSTALL.md README.md SVN-CONFIG TODO.md"
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -64,9 +63,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $UNTARRED-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2
-cd $UNTARRED-$VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION-src.tar.xz
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -74,21 +73,12 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# First build the Irrlicht (static) library.
-# Note: This is a forked, modfied copy of irrlicht-1.8
-# The original irrlicht library cannot be used, but both
-# coexist without problems.
-cd lib/irrlicht/source/Irrlicht
- CFLAGS="$SLKCFLAGS" \
- CXXFLAGS="$SLKCFLAGS" \
- NDEBUG=1 \
- make
-cd -
-
-# Now make SuperTuxKart
+## as of v0.9+ the irrclicht library can now be passed as a
+## flag to cmake, instead of being built separately ;-)
mkdir -p build
cd build
cmake \
+ -DIRRLICHT_DIR="lib/irrlicht" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -105,7 +95,7 @@ gzip -9c $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS CHANGES ChangeLog COPYING INSTALL README TODO \
+ $DOCS \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild