aboutsummaryrefslogtreecommitdiff
path: root/games/mame2014-libretro
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-05-21 12:09:02 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-05-26 06:59:22 +0700
commit71adadb719e1b385c406df1713485eb98222bb43 (patch)
tree67fa472671f61005b2c0cbddfaddf2078b657d00 /games/mame2014-libretro
parentd5365d50a081755397018b3825dd67b288176869 (diff)
games/mame2014-libretro: Updated for version 2017.12.31_62a932c.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/mame2014-libretro')
-rw-r--r--games/mame2014-libretro/README7
-rw-r--r--games/mame2014-libretro/mame2014-libretro.SlackBuild34
-rw-r--r--games/mame2014-libretro/mame2014-libretro.info6
3 files changed, 23 insertions, 24 deletions
diff --git a/games/mame2014-libretro/README b/games/mame2014-libretro/README
index 6893121a22df..0bb69e326d3c 100644
--- a/games/mame2014-libretro/README
+++ b/games/mame2014-libretro/README
@@ -8,5 +8,12 @@ As electronic technology continues to rush forward, MAME
prevents this important "vintage" software from being lost
and forgotten.
+By default, this SlackBuild will build the mame2014 core.
+To build the mess2014 or ume2014 cores, choose any desired cores:
+ CORE="mame mess ume" ./mame2014-libretro.SlackBuild
+
+Or to build all three cores, "all" can be used:
+ CORE="all" ./mame2014-libretro.SlackBuild
+
To build the debugging symbols use:
DEBUG=1 ./mame2014-libretro.SlackBuild
diff --git a/games/mame2014-libretro/mame2014-libretro.SlackBuild b/games/mame2014-libretro/mame2014-libretro.SlackBuild
index 804c7b0d99f3..969965778d76 100644
--- a/games/mame2014-libretro/mame2014-libretro.SlackBuild
+++ b/games/mame2014-libretro/mame2014-libretro.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for mame2014-libretro
-# Copyright 2017 Hunter Sezen California, USA
+# Copyright 2017-2018 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mame2014-libretro
-LIBNAM=$(echo $PRGNAM | tr - _)
-VERSION=${VERSION:-2017.10.24_3d072c9}
+VERSION=${VERSION:-2017.12.31_62a932c}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,21 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-# requires patching the Makefile to properly use
-# the default CFLAGS and CXXFLAGS are probably fine
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
+LIBDIRSUFFIX=
+[ "$ARCH" = x86_64 ] && LIBDIRSUFFIX=64
set -eu
@@ -74,10 +60,16 @@ find -L . \
[ "${DEBUG:=0}" != 0 ] && DEBUG=1
-env -u BUILD make DEBUG=$DEBUG GIT_VERSION="${VERSION#*_}"
+[ "${CORE:=mame}" = all ] && CORE='mame mess ume'
-install -Dm0644 $LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so
-install -Dm0644 $LIBNAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info
+for TARGET in $CORE; do
+ LIBNAM="${TARGET}2014_libretro"
+ make TARGET="$TARGET" DEBUG=$DEBUG GIT_VERSION="${VERSION#*_}"
+ install -Dm0644 $LIBNAM.so \
+ $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so
+ install -Dm0644 $LIBNAM.info \
+ $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info
+done
if [ $DEBUG = 0 ]; then
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
diff --git a/games/mame2014-libretro/mame2014-libretro.info b/games/mame2014-libretro/mame2014-libretro.info
index 6978ddaa079a..fdff3b680529 100644
--- a/games/mame2014-libretro/mame2014-libretro.info
+++ b/games/mame2014-libretro/mame2014-libretro.info
@@ -1,8 +1,8 @@
PRGNAM="mame2014-libretro"
-VERSION="2017.10.24_3d072c9"
+VERSION="2017.12.31_62a932c"
HOMEPAGE="https://www.libretro.com/"
-DOWNLOAD="http://ks392457.kimsufi.com/orbea/stuff/slackbuilds/src/libretro/mame2014-libretro-2017.10.24_3d072c9.tar.xz"
-MD5SUM="d7b58438580c6c76ec20b20684b20a36"
+DOWNLOAD="http://ks392457.kimsufi.com/orbea/stuff/slackbuilds/src/libretro/mame2014-libretro-2017.12.31_62a932c.tar.xz"
+MD5SUM="224515b1a2b7d8ca5895baaa5359416e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="RetroArch"