diff options
author | Hunter Sezen <orbea@fredslev.dk> | 2018-11-04 20:59:41 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-11-10 07:46:49 +0700 |
commit | 28dc28638bceffb1efd5c221abd5873011db7ab7 (patch) | |
tree | 64cb9d20cf52bc887a927c7e77f1ca924d3ff587 /games/libretro-reicast/libretro-reicast.SlackBuild | |
parent | 7b3360d3b68bf5116c0f078a9f2fbf0733c7cc96 (diff) |
games/libretro-reicast: Updated for version 2018.11.03_01ab59e.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/libretro-reicast/libretro-reicast.SlackBuild')
-rw-r--r-- | games/libretro-reicast/libretro-reicast.SlackBuild | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/games/libretro-reicast/libretro-reicast.SlackBuild b/games/libretro-reicast/libretro-reicast.SlackBuild index 79eb0dac326d4..63fa183231ee7 100644 --- a/games/libretro-reicast/libretro-reicast.SlackBuild +++ b/games/libretro-reicast/libretro-reicast.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for libretro-reicast -# Copyright 2016-2017 Hunter Sezen +# Copyright 2016-2018 Hunter Sezen # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libretro-reicast -LIBNAM=reicast_libretro -VERSION=${VERSION:-2017.10.24_74c4ddf} +LIBNAM=${PRGNAM#*-}_libretro +VERSION=${VERSION:-2018.11.03_01ab59e} 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 @@ -73,11 +60,17 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; [ "${DEBUG:=0}" != 0 ] && DEBUG=1 +[ "${GL2:=0}" != 0 ] && GL2=1 +[ "${OIT:=0}" != 0 ] && OIT=1 -make DEBUG=$DEBUG +make \ + DEBUG=$DEBUG \ + HAVE_GL2=$GL2 \ + HAVE_OIT=$OIT install -Dm0644 $LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so -install -Dm0644 $LIBNAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info +install -Dm0644 $LIBNAM.info \ + $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info if [ $DEBUG = 0 ]; then find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ @@ -85,7 +78,7 @@ if [ $DEBUG = 0 ]; then fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README.md *.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp -a -- LICENSE README.md *.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |