summaryrefslogtreecommitdiffstats
path: root/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild
diff options
context:
space:
mode:
author Hunter Sezen2017-02-05 00:41:01 +0100
committer Willy Sudiarto Raharjo2017-02-11 01:24:23 +0100
commit2933fa455248040e3a0375bb2e7d10919e1042a8 (patch)
tree19b628cc789f28ece6b4ba261c854e208d03cb6d /games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild
parent9f6e48ecad5f743becc20262678ba9ca382d87cc (diff)
downloadslackbuilds-2933fa455248040e3a0375bb2e7d10919e1042a8.tar.gz
games/mupen64plus-libretro: Updated for version 2017.02.04_78f37eca.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild')
-rw-r--r--games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild42
1 files changed, 20 insertions, 22 deletions
diff --git a/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild b/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild
index 98bcdcb39f..dc94902505 100644
--- a/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild
+++ b/games/mupen64plus-libretro/mupen64plus-libretro.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=mupen64plus-libretro
LIBNAM=$(echo $PRGNAM | tr - _)
-VERSION=${VERSION:-2016.09.12_5b86c3e}
+VERSION=${VERSION:-2017.02.04_78f37eca}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -46,25 +46,26 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
- DYNAREC=x86
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
- DYNAREC=x86
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
- DYNAREC=$ARCH
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
- DYNAREC=$ARCH
fi
DEBUG=${DEBUG:-0}
+GLES=${GLES:-0}
VULKAN=${VULKAN:-0}
if [ "$VULKAN" = "1" ]; then
- LIBNAM=$(echo $LIBNAM | sed 's/mupen64plus/parallel/')
+ if [ "$DEBUG" = "1" ]; then
+ LIBNAM=$(echo $LIBNAM | sed 's/mupen64plus/parallel_debug/')
+ else
+ LIBNAM=$(echo $LIBNAM | sed 's/mupen64plus/parallel/')
+ fi
VULKAN_DEBUG=$DEBUG
else
VULKAN_DEBUG=0
@@ -85,35 +86,32 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-make WITH_DYNAREC=$DYNAREC \
- DEBUG=$DEBUG \
+make DEBUG=$DEBUG \
+ GIT_VERSION=${VERSION#*_} \
+ FORCE_GLES=$GLES \
HAVE_VULKAN=$VULKAN \
HAVE_VULKAN_DEBUG=$VULKAN_DEBUG
install -Dm0644 $LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so
install -Dm0644 $LIBNAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info
-if [ "${DEBUG:-0}" = "0" ]; then
+if [ "$DEBUG" = "0" ]; then
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
fi
-for DOCDIR in glide2gl mupen64plus-core mupen64plus-rsp-cxd4 mupen64plus-rsp-hle mupen64plus-video-angrylion; do
+PLUGIN="glide2gl mupen64plus-core mupen64plus-rsp-* mupen64plus-video-paraLLEl mupen64plus-video-angrylion"
+DOCS="COPYING CREDITS.txt INSTALL LICENSES MAME* README.md README RELEASE todo!.txt"
+
+for DOCDIR in $PLUGIN; do
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR
+ for file in $DOCS; do
+ if [ -f $DOCDIR/$file ]; then
+ cp -a $DOCDIR/$file $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR
+ fi
+ done
done
cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a glide2gl/todo!.txt $PKG/usr/doc/$PRGNAM-$VERSION/glide2gl
-
-CORE_DOCS="mupen64plus-core/INSTALL mupen64plus-core/LICENSES mupen64plus-core/README mupen64plus-core/RELEASE"
-CXD4_DOCS="mupen64plus-rsp-cxd4/COPYING mupen64plus-rsp-cxd4/README.md"
-HLE_DOCS="mupen64plus-rsp-hle/INSTALL mupen64plus-rsp-hle/LICENSES mupen64plus-rsp-hle/RELEASE"
-
-cp -a $CORE_DOCS $PKG/usr/doc/$PRGNAM-$VERSION/mupen64plus-core
-cp -a $CXD4_DOCS $PKG/usr/doc/$PRGNAM-$VERSION/mupen64plus-rsp-cxd4
-cp -a $HLE_DOCS $PKG/usr/doc/$PRGNAM-$VERSION/mupen64plus-rsp-hle
-
-cp -a mupen64plus-video-angrylion/*.txt $PKG/usr/doc/$PRGNAM-$VERSION/mupen64plus-video-angrylion
-
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install