summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-11-02 23:58:51 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-11-04 07:17:53 +0700
commit5e441c9e53e01ad1c3420b4365147f9b9ff18015 (patch)
tree9c1fb7654206d2a472a0a21407a71c6b3eea6916 /games
parent8aedfbd23c843a78697a22eceef2630e22246f22 (diff)
downloadslackbuilds-5e441c9e53e01ad1c3420b4365147f9b9ff18015.tar.gz
games/doomretro: Patched to support SDL2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/doomretro/SDL2.patch18
-rw-r--r--games/doomretro/doomretro.SlackBuild5
2 files changed, 22 insertions, 1 deletions
diff --git a/games/doomretro/SDL2.patch b/games/doomretro/SDL2.patch
new file mode 100644
index 0000000000..33e9465f54
--- /dev/null
+++ b/games/doomretro/SDL2.patch
@@ -0,0 +1,18 @@
+--- doomretro-2.5.7/src/c_cmds.c.orig 2017-11-02 23:56:12.327149365 +0700
++++ doomretro-2.5.7/src/c_cmds.c 2017-11-02 23:56:42.013185704 +0700
+@@ -2734,13 +2734,13 @@
+ C_TabbedOutput(tabs, "Music format\t<b>MIDI</b>");
+ else if (musictype == MUS_OGG)
+ C_TabbedOutput(tabs, "Music format\t<b>Ogg Vorbis</b>");
+- else if (musictype == MUS_MP3 || musictype == MUS_MP3_MAD)
++ else if (musictype == MUS_MP3)
+ C_TabbedOutput(tabs, "Music format\t<b>MP3</b>");
+ else if (musictype == MUS_WAV)
+ C_TabbedOutput(tabs, "Music format\t<b>WAV</b>");
+ else if (musictype == MUS_FLAC)
+ C_TabbedOutput(tabs, "Music format\t<b>FLAC</b>");
+- else if (musictype == MUS_MOD || musictype == MUS_MODPLUG)
++ else if (musictype == MUS_MOD)
+ C_TabbedOutput(tabs, "Music format\t<b>MOD</b>");
+ }
+ }
diff --git a/games/doomretro/doomretro.SlackBuild b/games/doomretro/doomretro.SlackBuild
index 81b3108475..a50a7a4764 100644
--- a/games/doomretro/doomretro.SlackBuild
+++ b/games/doomretro/doomretro.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=doomretro
VERSION=${VERSION:-2.5.7}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -69,6 +69,9 @@ 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 {} \;
+# Patched to support SDL2
+patch -p1 < $CWD/SDL2.patch
+
mkdir -p build
cd build
cmake \