summaryrefslogtreecommitdiff
path: root/games/oolite/oolite.SlackBuild
diff options
context:
space:
mode:
authorJohannes Schoepfer <slackbuilds@schoepfer.info>2020-10-23 20:07:05 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-10-24 08:14:53 +0700
commit5284adf02e556a7d2a99f57c8c997f418a7b3227 (patch)
tree0172b1ce59ee4b0f31f26d6fa7a61becc0d097d6 /games/oolite/oolite.SlackBuild
parenta53267709f2fcf4045f57f9c3f4461f3013294a2 (diff)
downloadslackbuilds-5284adf02e556a7d2a99f57c8c997f418a7b3227.tar.gz
games/oolite: Updated for version 1.90.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/oolite/oolite.SlackBuild')
-rw-r--r--games/oolite/oolite.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/games/oolite/oolite.SlackBuild b/games/oolite/oolite.SlackBuild
index aae7511482..04d0866d96 100644
--- a/games/oolite/oolite.SlackBuild
+++ b/games/oolite/oolite.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for oolite
-# Copyright 2016 - 2018 Johannes Schoepfer, Germany
+# Copyright 2016 - 2020 Johannes Schoepfer, Germany
# 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=oolite
-VERSION=${VERSION:-1.88}
+VERSION=${VERSION:-1.90}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,18 +69,28 @@ 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 {} \;
+# Make sure only system libs may be used
+rm deps/Linux-deps/x86*/lib/*
+
source /usr/share/GNUstep/Makefiles/GNUstep.sh
export GNUSTEP_MAKEFILES=/usr/share/GNUstep/Makefiles
-sed -i "/ADDITIONAL_OBJSLKFLAGS/s/=/= -fobjc-exceptions ${SLKCFLAGS}/" GNUmakefile
-make -f libjs.make debug=no
-make -f Makefile ESPEAK=yes release-deployment
+## Link to espeak-ng instead of espeak
+# -e "/ADDITIONAL_OBJC_LIBS/s/+= -lespeak/+= -lespeak-ng/" \
+sed -i \
+ -e "/ADDITIONAL_OBJCFLAGS/s/=/= -fobjc-exceptions ${SLKCFLAGS}/" \
+ -e "s/-mtune=generic//g" \
+ -e "s/ -lpng / -l:libpng14.so.14 /g" \
+ GNUmakefile
+
+make -f Makefile ESPEAK=yes use_deps=no debug=no release
mkdir -p $PKG/usr/share/{oolite,pixmaps,applications}
cp -a oolite.app/* $PKG/usr/share/oolite/
cp installers/FreeDesktop/oolite-icon.png $PKG/usr/share/pixmaps
cp installers/FreeDesktop/oolite.desktop $PKG/usr/share/applications
-find $PKG -type f -exec file {} + | fgrep -e "executable" -e "shared object" | fgrep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+find $PKG -type f -exec 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/games
cat << 'EOF' > $PKG/usr/games/oolite