summaryrefslogtreecommitdiff
path: root/games/mame2010-libretro/mame2010-libretro.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/mame2010-libretro/mame2010-libretro.SlackBuild')
-rw-r--r--games/mame2010-libretro/mame2010-libretro.SlackBuild23
1 files changed, 5 insertions, 18 deletions
diff --git a/games/mame2010-libretro/mame2010-libretro.SlackBuild b/games/mame2010-libretro/mame2010-libretro.SlackBuild
index 90dcb53d20..7c724711bd 100644
--- a/games/mame2010-libretro/mame2010-libretro.SlackBuild
+++ b/games/mame2010-libretro/mame2010-libretro.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for mame2010-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
@@ -24,7 +24,7 @@
PRGNAM=mame2010-libretro
LIBNAM=$(echo $PRGNAM | tr - _)
-VERSION=${VERSION:-2017.12.20_c0e9dbf}
+VERSION=${VERSION:-2018.04.17_70732f9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,21 +41,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,7 +61,7 @@ find -L . \
[ "${DEBUG:=0}" != 0 ] && DEBUG=1
-env -u BUILD make MDEBUG=$DEBUG GIT_VERSION="${VERSION#*_}"
+make MDEBUG=$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