aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/supertuxkart/supertuxkart.SlackBuild30
-rw-r--r--games/supertuxkart/supertuxkart.info6
2 files changed, 13 insertions, 23 deletions
diff --git a/games/supertuxkart/supertuxkart.SlackBuild b/games/supertuxkart/supertuxkart.SlackBuild
index be7421a2aea8d..2755bbcf56106 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
diff --git a/games/supertuxkart/supertuxkart.info b/games/supertuxkart/supertuxkart.info
index c4bc078ded230..09af60c5a1131 100644
--- a/games/supertuxkart/supertuxkart.info
+++ b/games/supertuxkart/supertuxkart.info
@@ -1,8 +1,8 @@
PRGNAM="supertuxkart"
-VERSION="0.8.1"
+VERSION="0.9"
HOMEPAGE="http://supertuxkart.sourceforge.net/"
-DOWNLOAD="http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.8.1/supertuxkart-0.8.1-src.tar.bz2"
-MD5SUM="aa31ecf883dc35859eec76c667f1a6d6"
+DOWNLOAD="http://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.9/supertuxkart-0.9-src.tar.xz"
+MD5SUM="ae07569ab02c88ca4d49017df7731923"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="OpenAL"