summaryrefslogtreecommitdiff
path: root/games/mame/mame.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/mame/mame.SlackBuild')
-rw-r--r--games/mame/mame.SlackBuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/games/mame/mame.SlackBuild b/games/mame/mame.SlackBuild
index b3f7302341..511fecc609 100644
--- a/games/mame/mame.SlackBuild
+++ b/games/mame/mame.SlackBuild
@@ -25,7 +25,7 @@
# Adapted from sdlmame.SlackBuild, Written by B. Watson (yalhcru@gmail.com)
PRGNAM=mame
-VERSION=${VERSION:-0.148}
+VERSION=${VERSION:-0.149}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -73,6 +73,16 @@ chmod -R a-s,u+w,go+r-w .
# $HOME/.mame, then /etc.
cat $CWD/ini_path.diff | patch -p0
+# Workaround for bug in gcc-4.7.1 (seems to be fixed in 4.7.3 & 4.8.1)
+patch -p1 < $CWD/gcc471.patch
+
+# Fix line-endings (dos2unix is much faster)
+if hash dos2unix 2>/dev/null ; then
+ find -type f -exec dos2unix -q {} \;
+else
+ find -type f -exec file {} \; | grep CRLF | awk 'BEGIN{FS=":"}{print $1}' | xargs perl -pi -e 's/\r\n?/\n/g'
+fi
+
# This is purely cosmetic.
sed -i 's/DISTRO = generic/DISTRO = slackware/' src/osd/sdl/sdl.mak