diff options
Diffstat (limited to 'games/doomretro')
-rw-r--r-- | games/doomretro/SDL2.patch | 18 | ||||
-rw-r--r-- | games/doomretro/doomretro.SlackBuild | 5 |
2 files changed, 22 insertions, 1 deletions
diff --git a/games/doomretro/SDL2.patch b/games/doomretro/SDL2.patch new file mode 100644 index 000000000000..33e9465f54b6 --- /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 81b3108475bb..a50a7a4764fa 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 \ |