aboutsummaryrefslogtreecommitdiff
path: root/games/mame/mame.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2018-12-01 03:36:37 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-09 13:17:25 +0700
commit6ce86694e5c67991e0472a455f79baf0f4a764cb (patch)
treec3e740712c34cd312b644d06cac97410e6e07edf /games/mame/mame.SlackBuild
parentf4d6f71b4a9ce75416e5203e98f35885df36f6d7 (diff)
games/mame: Updated for version 0.204.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/mame/mame.SlackBuild')
-rw-r--r--games/mame/mame.SlackBuild23
1 files changed, 12 insertions, 11 deletions
diff --git a/games/mame/mame.SlackBuild b/games/mame/mame.SlackBuild
index dc08ffc2f32e..8325f06d17e2 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.
+# 20181130 bkw: Updated for v0.204, including compile fix for xavix.cpp.
# 20181031 bkw: Updated for v0.203.
# 20180928 bkw: Updated for v0.202.
# 20180830 bkw: Updated for v0.201.
@@ -91,7 +92,7 @@
# - Update .ini file slightly (sound=sdl, not sound=1)
PRGNAM=mame
-VERSION=${VERSION:-0.203}
+VERSION=${VERSION:-0.204}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -138,16 +139,16 @@ tar xvf $CWD/$DIRNAME.tar.gz
cd $DIRNAME
chown -R root:root .
-# This isn't standard template code, but it executes maybe a hundred
-# times as fast, and does the same thing.
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -print0 | \
- xargs -r -0 chmod 755
-find -L . \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -print0 | \
- xargs -r -0 chmod 644
+# 20181201 bkw: Urchlay's personal template:
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# 20181130 bkw: the new xavix code in 0.204 is missing this include.
+# Add future versions to the first case, as needed.
+case "$VERSION" in
+ 0.204) sed -i '1i#include <cmath>' src/mame/video/xavix.cpp ;;
+ *) ;;
+esac
# OK, building modern mame is a bit of a PITA. It uses genie (written
# in lua, a fork of premake), but you don't get to run genie directly,