diff options
Diffstat (limited to 'games/mame/mame.SlackBuild')
-rw-r--r-- | games/mame/mame.SlackBuild | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/games/mame/mame.SlackBuild b/games/mame/mame.SlackBuild index 985b13393f..5e946b3297 100644 --- a/games/mame/mame.SlackBuild +++ b/games/mame/mame.SlackBuild @@ -9,6 +9,7 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20180731 bkw: Updated for v0.200. # 20180628 bkw: Updated for v0.199. # 20180612 bkw: Updated for v0.198 (missed a few releases...) # 20180130 bkw: Updated for v0.194. @@ -87,7 +88,7 @@ # - Update .ini file slightly (sound=sdl, not sound=1) PRGNAM=mame -VERSION=${VERSION:-0.199} +VERSION=${VERSION:-0.200} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -174,6 +175,23 @@ find -L . \ # a standard mechanism on both Unix and DOS/Windows systems for what, # 30 or 40 years now? Come on people...) +# Version-specific patches & sed fixes. We do it this way to keep this +# script compatible with older versions. +PATCHES="" +case "$VERSION" in + 0.200) # couple files missing an include... + sed -i '1i#include <cmath>' \ + src/devices/cpu/mips/ps2vif1.cpp \ + src/devices/cpu/mips/mips3.cpp + ;; + *) ;; +esac + +[ -n "$PATCHES" ] && \ + for i in "$PATCHES"; do + [ -f "$CWD/$i" ] && patch -p1 < "$CWD/$i" + done + # This is purely cosmetic, and can't be set on the make command line. sed -i 's,ubuntu-intrepid,slackware,g' scripts/genie.lua sed -i 's/DISTRO := generic/DISTRO := slackware/' makefile |