From 5e441c9e53e01ad1c3420b4365147f9b9ff18015 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 2 Nov 2017 23:58:51 +0700 Subject: games/doomretro: Patched to support SDL2. Signed-off-by: Willy Sudiarto Raharjo Signed-off-by: David Spencer --- games/doomretro/SDL2.patch | 18 ++++++++++++++++++ games/doomretro/doomretro.SlackBuild | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 games/doomretro/SDL2.patch (limited to 'games') 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\tMIDI"); + else if (musictype == MUS_OGG) + C_TabbedOutput(tabs, "Music format\tOgg Vorbis"); +- else if (musictype == MUS_MP3 || musictype == MUS_MP3_MAD) ++ else if (musictype == MUS_MP3) + C_TabbedOutput(tabs, "Music format\tMP3"); + else if (musictype == MUS_WAV) + C_TabbedOutput(tabs, "Music format\tWAV"); + else if (musictype == MUS_FLAC) + C_TabbedOutput(tabs, "Music format\tFLAC"); +- else if (musictype == MUS_MOD || musictype == MUS_MODPLUG) ++ else if (musictype == MUS_MOD) + C_TabbedOutput(tabs, "Music format\tMOD"); + } + } 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 \ -- cgit v1.2.3