summaryrefslogtreecommitdiffstats
path: root/games/koules/koules.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/koules/koules.SlackBuild')
-rw-r--r--games/koules/koules.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/games/koules/koules.SlackBuild b/games/koules/koules.SlackBuild
index bad144a18b..e02b060475 100644
--- a/games/koules/koules.SlackBuild
+++ b/games/koules/koules.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for koules
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
@@ -10,13 +10,17 @@
# This script doesn't share any code with whatever build script
# existed back then (partly because I couldn't find a copy)
+# TODO: make -E the default size. It's 2023, nobody wants to play a game
+# in a window the size of a postcard (or a playing card, on 4K).
+
+# 20230107 bkw: BUILD=4, fix paths to joystick devices (/dev/jsX => /dev/input/jsX)
# 20211020 bkw: BUILD=3, fix -current build.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=koules
VERSION=${VERSION:-1.4}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -81,7 +85,7 @@ patch -p1 < $CWD/patches/slackware.diff
patch -p1 < $CWD/patches/compile_fix.diff
# Modern gcc seems to hate the inline assembly. Anyway I bet gcc's code
-# with -O2 is the same or faster...
+# with -O2 is the same or faster... and we need this for x86_64 too.
patch -p1 < $CWD/patches/no_inline_asm.diff
# The author forgot to mention the -E option in the help and man page
@@ -90,6 +94,10 @@ patch -p1 < $CWD/patches/document_E_option.diff
# Some people might like the launcher...
patch -p1 < $CWD/patches/tcl_launcher_paths.diff
+# 20230107 bkw: this has been broken for ages, I just now decided to play
+# this game with a joystick...
+patch -p1 < $CWD/patches/joystickdevs.diff
+
# I hate Imake even worse than autoconf...
if [ "$MITSHM" = "no" ]; then
sed -i -e '/#define MITSHM/d' Iconfig