summaryrefslogtreecommitdiff
path: root/games/Scorched3D/Scorched3D.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/Scorched3D/Scorched3D.SlackBuild')
-rw-r--r--games/Scorched3D/Scorched3D.SlackBuild25
1 files changed, 18 insertions, 7 deletions
diff --git a/games/Scorched3D/Scorched3D.SlackBuild b/games/Scorched3D/Scorched3D.SlackBuild
index 19d87f569d..4b5a58f2f4 100644
--- a/games/Scorched3D/Scorched3D.SlackBuild
+++ b/games/Scorched3D/Scorched3D.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Scorched3D
-# 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
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Scorched3D
-VERSION=41.3
+VERSION=42.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -37,6 +37,8 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
set -e
@@ -45,30 +47,39 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf scorched
+rm -rf scorched-dep-osx
tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz
cd scorched
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
+patch -p1 -i $CWD/scorched3d-42.1-fixups.patch
+
+chmod +x ./autogen.sh
+./autogen.sh
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- --datadir=/usr/share/scorched3d
+ --datadir=/usr/share/scorched3d \
+ --build=$ARCH-slackware-linux \
+ --host=$ARCH-slackware-linux
make
-make install-strip DESTDIR=$PKG
+make install DESTDIR=$PKG
mkdir -p $PKG/usr/share/{applications,pixmaps}
cp -f $CWD/scorched3d.desktop $PKG/usr/share/applications
cp -f $CWD/scorched3d.png $PKG/usr/share/pixmaps
+find $PKG | xargs 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 AUTHORS COMPILING COPYING README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
-rm -rf $PKG/usr/share/scorched3d/documentation/html
+cp -a CHANGELOG README $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/scorched3d/documentation/* $PKG/usr/doc/$PRGNAM-$VERSION/
rm -rf $PKG/usr/share/scorched3d/documentation
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild