summaryrefslogtreecommitdiffstats
path: root/games/mame/mame.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/mame/mame.SlackBuild')
-rw-r--r--games/mame/mame.SlackBuild61
1 files changed, 27 insertions, 34 deletions
diff --git a/games/mame/mame.SlackBuild b/games/mame/mame.SlackBuild
index fce5d18287..06c45326ef 100644
--- a/games/mame/mame.SlackBuild
+++ b/games/mame/mame.SlackBuild
@@ -9,45 +9,40 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
-# 20170726 bkw:
-# - Updated for v0.188.
-
-# 20170702 bkw:
-# - Updated for v0.187.
-
-# 20170607 bkw:
-# - Updated for v0.186.
+# 20170902 bkw: Updated for v0.189.
+# - Fix complay.py build error. Turns out that the build would fail
+# only on systems where PyXML is installed, so add -S to python
+# command line so 'import xml.sax' imports the xml stuff that ships
+# with core python, instead of the (outdated, deprecated) 3rd-party
+# stuff from PyXML.
+# - Stop installing useless junk in /usr/doc.
+# - Install swlist docs.
+# - Compacted log entries.
+
+# 20170726 bkw: Updated for v0.188.
+# 20170702 bkw: Updated for v0.187.
+
+# 20170607 bkw: Updated for v0.186.
# - Link with ld.gold instead of the default ld, which saves *2 hours* of
# build time on my test box (build is 3x as fast as it was).
-# 20170428 bkw:
-# - Updated for v0.185.
+# 20170428 bkw: Updated for v0.185.
# 20170404 bkw:
# - mame.ini: get rid of $HOME in bgfx_path. Thanks to Doogster for
# reporting this.
-# 20170330 bkw:
-# - Updated for v0.184.
+# 20170330 bkw: Updated for v0.184.
# 20170301 bkw:
# - Use long-form github URL.
# - Fix changelog so newer entries are at the top.
-# 20170223 bkw:
-# - Updated for v0.183.
-
-# 20170214 bkw:
-# - Add support for GroovyMAME patch.
-
-# 20170128 bkw:
-# - Updated for v0.182.
-
-# 20170111 bkw:
-# - Updated for v0.181. Missed a month again.
-
-# 20161101 bkw:
-# - Updated for v0.179.
+# 20170223 bkw: Updated for v0.183.
+# 20170214 bkw: Add support for GroovyMAME patch.
+# 20170128 bkw: Updated for v0.182.
+# 20170111 bkw: Updated for v0.181. Missed a month again.
+# 20161101 bkw: Updated for v0.179.
# 20160928 bkw:
# - Updated for v0.178. Sorry, missed a month.
@@ -85,7 +80,7 @@
# - Update .ini file slightly (sound=sdl, not sound=1)
PRGNAM=mame
-VERSION=${VERSION:-0.188}
+VERSION=${VERSION:-0.189}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -149,13 +144,6 @@ find -L . \
# genie with arguments based on the options in the main makefile. Also,
# it uses python to convert XML layout files to C++ code.
-# complay.py is the layout compressor. Layouts are XML, complay
-# compresses them and also seems to generate C code. The script got
-# updated between mame 0.187 and 0.188, and the new version doesn't
-# work. I don't know enough about Python to fix this in a timely
-# manner, so for now I'll just use the old version of the script.
-cp $CWD/complay.py scripts/build/complay.py
-
# Where possible, use system libraries instead of building the ones
# bundled with the mame source. However, SBo's lua is (still!) too old
# for mame.
@@ -229,6 +217,7 @@ make USE_QTDEBUG=$QTOPT \
USE_SYSTEM_LIB_ZLIB=1 \
USE_SYSTEM_LIB_JPEG=1 \
USE_SYSTEM_LIB_FLAC=1 \
+ PYTHON_EXECUTABLE="/usr/bin/python -S" \
OPT_FLAGS="$SLKCFLAGS" \
LDOPTS="-fuse-ld=gold" \
OVERRIDE_CC="$( which gcc )" \
@@ -277,9 +266,13 @@ done
# Install the artwork and bgfx stuff (needed for 'video bgfx' in mame.ini).
cp -a artwork bgfx $PKG/usr/share/games/$PRGNAM
+# CONTRIBUTING.md is a 1-byte placeholder, and we don't need a shell script.
+rm -f docs/CONTRIBUTING.md docs/update.sh
+
mkdir -p $PKG/usr/doc/${PRGNAM}-$VERSION
# can't just "cp docs/* ..." because man/ is a dir, set -e kills the script
cp docs/L* docs/*.* $PKG/usr/doc/${PRGNAM}-$VERSION
+cp -a docs/swlist $PKG/usr/doc/${PRGNAM}-$VERSION
cat $CWD/${PRGNAM}.SlackBuild > $PKG/usr/doc/${PRGNAM}-$VERSION/${PRGNAM}.SlackBuild
mkdir -p $PKG/install