diff options
-rw-r--r-- | games/mame2014-libretro/README | 7 | ||||
-rw-r--r-- | games/mame2014-libretro/mame2014-libretro.SlackBuild | 34 | ||||
-rw-r--r-- | games/mame2014-libretro/mame2014-libretro.info | 6 |
3 files changed, 23 insertions, 24 deletions
diff --git a/games/mame2014-libretro/README b/games/mame2014-libretro/README index 6893121a22..0bb69e326d 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 804c7b0d99..969965778d 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 6978ddaa07..fdff3b6805 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" |