aboutsummaryrefslogtreecommitdiff
path: root/games/typhoon_2001
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-12-16 12:39:13 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-12-27 16:20:26 +0700
commit34816facab151c388c3801580d9512cdf6f27e6c (patch)
treefeac356a97b09597e0930d3419e46f4663c68969 /games/typhoon_2001
parent93fc39027154bd47e46a591a0700f949df9cb039 (diff)
games/typhoon_2001: Fix sound.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/typhoon_2001')
-rw-r--r--games/typhoon_2001/typhoon_20016
-rw-r--r--games/typhoon_2001/typhoon_2001.SlackBuild5
2 files changed, 9 insertions, 2 deletions
diff --git a/games/typhoon_2001/typhoon_2001 b/games/typhoon_2001/typhoon_2001
index 2953ebdd88c2..4d0d7a4753f1 100644
--- a/games/typhoon_2001/typhoon_2001
+++ b/games/typhoon_2001/typhoon_2001
@@ -45,6 +45,10 @@ if [ ! -d "$T2K1_HOME" ]; then
done
fi
-cd "$T2K1_HOME" && exec ./typhoon || \
+# 20211216 bkw: use aoss unless real OSS is available.
+AOSS=aoss
+[ -c /dev/dsp ] && AOSS=""
+
+cd "$T2K1_HOME" && exec $AOSS ./typhoon || \
echo "Can't exec $T2K1_HOME/typhoon - " \
"corrupt install, try removing $T2K1_HOME and running $0 again"
diff --git a/games/typhoon_2001/typhoon_2001.SlackBuild b/games/typhoon_2001/typhoon_2001.SlackBuild
index 3807ca82bc16..335d6fba8a64 100644
--- a/games/typhoon_2001/typhoon_2001.SlackBuild
+++ b/games/typhoon_2001/typhoon_2001.SlackBuild
@@ -11,6 +11,9 @@
# typhoon.cfg needs to be a real file and be writable by the user.
# (it will be created the first time the game is run).
+# 20211216 bkw: BUILD=3
+# - make sound work OOTB: run binary with aoss wrapper.
+
# 20211012 bkw: BUILD=2
# - binary in /usr/games.
# - new-style icons.
@@ -20,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=typhoon_2001
VERSION=${VERSION:-r3992}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}