aboutsummaryrefslogtreecommitdiff
path: root/games/mame2014-libretro/mame2014-libretro.SlackBuild
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/mame2014-libretro.SlackBuild
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/mame2014-libretro.SlackBuild')
-rw-r--r--games/mame2014-libretro/mame2014-libretro.SlackBuild34
1 files changed, 13 insertions, 21 deletions
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 \