summaryrefslogtreecommitdiffstats
path: root/games/koules
diff options
context:
space:
mode:
Diffstat (limited to 'games/koules')
-rw-r--r--games/koules/koules.SlackBuild14
-rw-r--r--games/koules/koules.info2
-rw-r--r--games/koules/koules.kde2
-rw-r--r--games/koules/patches/joystickdevs.diff21
-rw-r--r--games/koules/slack-desc1
5 files changed, 34 insertions, 6 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
diff --git a/games/koules/koules.info b/games/koules/koules.info
index cbd2e26131..dca04116ce 100644
--- a/games/koules/koules.info
+++ b/games/koules/koules.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"
diff --git a/games/koules/koules.kde b/games/koules/koules.kde
index 6ae5fd98a9..10b7ed551e 100644
--- a/games/koules/koules.kde
+++ b/games/koules/koules.kde
@@ -2,7 +2,7 @@
# koules.kde
# Wrapper script to launch koules from a KDE shortcut
-# Author: B. Watson (yalhcru@gmail.com)
+# Author: B. Watson (urchlay@slackware.uk)
# If the GUI launcher can't run (probably because Tcl/Tk isn't
# installed), just start the game with default options.
diff --git a/games/koules/patches/joystickdevs.diff b/games/koules/patches/joystickdevs.diff
new file mode 100644
index 0000000000..be9d7b6934
--- /dev/null
+++ b/games/koules/patches/joystickdevs.diff
@@ -0,0 +1,21 @@
+diff -Naur koules1.4/xlib/init.c koules1.4.patched/xlib/init.c
+--- koules1.4/xlib/init.c 1998-03-05 12:03:01.000000000 -0500
++++ koules1.4.patched/xlib/init.c 2023-01-07 23:23:21.963726308 -0500
+@@ -334,7 +334,7 @@
+ printf ("Autoprobing hardware\n");
+ printf ("Initializing joystick driver\n");
+ #ifdef JOYSTICK
+- joystickdevice[0] = open ("/dev/js0", O_RDONLY);
++ joystickdevice[0] = open ("/dev/input/js0", O_RDONLY);
+ if (joystickdevice[0] < 0)
+ {
+ perror ("Joystick driver");
+@@ -343,7 +343,7 @@
+ }
+ else
+ printf ("Joystick 1 initialized\n");
+- joystickdevice[1] = open ("/dev/js1", O_RDONLY);
++ joystickdevice[1] = open ("/dev/input/js1", O_RDONLY);
+ if (joystickdevice[1] < 0)
+ {
+ perror ("Joystick driver");
diff --git a/games/koules/slack-desc b/games/koules/slack-desc
index 0873f9c9b3..2f028fb312 100644
--- a/games/koules/slack-desc
+++ b/games/koules/slack-desc
@@ -17,4 +17,3 @@ koules: an original idea. First version of Koules was developed from
koules: scratch by Jan Hubicka in July 1995.
koules:
koules:
-koules: