summaryrefslogtreecommitdiffstats
path: root/games/mame/mame.SlackBuild
diff options
context:
space:
mode:
author B. Watson2018-08-01 19:53:54 +0200
committer Willy Sudiarto Raharjo2018-08-04 03:40:08 +0200
commit3c89d9eeb107ce1f0feed92531e13bd39e77446d (patch)
treee08b17800fc1dbc70dfca0dc747fabad086fb4e8 /games/mame/mame.SlackBuild
parent5a99a1e2edb81b0d88d858a0a2dbd49817953455 (diff)
downloadslackbuilds-3c89d9eeb107ce1f0feed92531e13bd39e77446d.tar.gz
games/mame: Updated for version 0.200.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/mame/mame.SlackBuild')
-rw-r--r--games/mame/mame.SlackBuild20
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