games/stuntrally: Switch to binary release until ported to ogre-1.11+

StuntRally does not currently work on ogre-1.11+. Attempts at adding
patches allows compiling, but leads to a segfault when launching.
This is a temporary measure to allow ogre to be upgraded to a newer
version without breaking this program. Once the port to 1.11+ is
completed, StuntRally will be reverted back to a source compile.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Jeremy Hansen 2020-10-12 03:45:00 -06:00 committed by Willy Sudiarto Raharjo
parent 2bd3ec8afa
commit 4ef60ef656
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 21 additions and 30 deletions

View file

@ -1,6 +1,6 @@
stuntrally (game based on VDrift and OGRE, with Track Editor)
The game features 172 tracks in 34 sceneries and 25 vehicles. Game
The game features 191 tracks in 34 sceneries and 28 vehicles. Game
modes include: single race, tutorials, championships, challenges,
multiplayer and split screen. Replays and Ghost drive are available.
The Track Editor allows creating and modifying tracks.
@ -8,7 +8,5 @@ The Track Editor allows creating and modifying tracks.
The game aims at a rally style of driving (like in Richard Burns
Rally), with possible stunt elements (jumps, loops, pipes).
Required Dependency
ogre needs to be built with FreeImage for stuntrally to work. If you
built ogre prior to installing FreeImage, you will need to rebuild ogre.
This is currently repackaging the binary version until stuntrally can be
ported to ogre-1.11+.

View file

@ -2,7 +2,7 @@
# Slackware build script for stuntrally
# Copyright 2017 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
# Copyright 2017-2020 Jeremy Hansen <jebrhansen+SBo -at- gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=stuntrally
VERSION=${VERSION:-2.6.1}
SRCNAM=StuntRally
VERSION=${VERSION:-2.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -59,35 +60,29 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
tar xvf $CWD/tracks-$VERSION.tar.gz
mv tracks-$VERSION/ data/tracks
rm -rf $SRCNAM-$VERSION-linux64
tar xvf $CWD/$SRCNAM-$VERSION-linux.tar.gz
cd $SRCNAM-$VERSION-linux64
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -fpermissive" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
mkdir -p $PKG/{opt/$PRGNAM/,usr/bin/}
cp -r StuntRally-$VERSION-linux64/* $PKG/opt/$PRGNAM/
cd $PKG
ln -s /opt/$PRGNAM/stuntrally usr/bin/
ln -s /opt/$PRGNAM/sr-editor usr/bin/
mv opt/$PRGNAM/share usr/
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a License.txt Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a opt/$PRGNAM/License.txt opt/$PRGNAM/Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View file

@ -1,12 +1,10 @@
PRGNAM="stuntrally"
VERSION="2.6.1"
VERSION="2.6"
HOMEPAGE="http://stuntrally.tuxfamily.org/"
DOWNLOAD="https://github.com/stuntrally/stuntrally/archive/2.6.1/stuntrally-2.6.1.tar.gz \
https://github.com/stuntrally/tracks/archive/2.6.1/tracks-2.6.1.tar.gz"
MD5SUM="03f64cd2724d51888d42da3208710c65 \
fc075a198ad2ec4bf4b4739010761a25"
DOWNLOAD="http://downloads.sourceforge.net/stuntrally/2.6/StuntRally-2.6-linux.tar.gz"
MD5SUM="5be1af1b727af2bc7f5bd5e34c2deb8a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="MyGUI SDL2 enet bullet OpenAL FreeImage"
REQUIRES=""
MAINTAINER="Jeremy Hansen"
EMAIL="jebrhansen+SBo@gmail.com"