summaryrefslogtreecommitdiffstats
path: root/games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild
diff options
context:
space:
mode:
author Hunter Sezen2017-02-04 22:14:54 +0100
committer Willy Sudiarto Raharjo2017-02-11 01:24:15 +0100
commit7550c16bdf7a7ae8f058de95114d82697ad6a93b (patch)
tree2fa735c9094195272de86a6c113dcf265a3d4435 /games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild
parent3e145da26de68139aeeba5bb69aca7377f447e64 (diff)
downloadslackbuilds-7550c16bdf7a7ae8f058de95114d82697ad6a93b.tar.gz
games/beetle-psx-libretro: Updated for version 2017.02.04_e3aae3d.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild')
-rw-r--r--games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild31
1 files changed, 24 insertions, 7 deletions
diff --git a/games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild b/games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild
index 84470fda48..adf0d28391 100644
--- a/games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild
+++ b/games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=beetle-psx-libretro
LIBNAM=mednafen_psx_libretro
-VERSION=${VERSION:-2016.07.20_58609aa}
+VERSION=${VERSION:-2017.02.04_e3aae3d}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -58,8 +58,17 @@ else
fi
DEBUG=${DEBUG:-0}
-OPENGL=${OPENGL:-0}
-if [ "$OPENGL" = "1" ]; then LIBNAM=$(echo $LIBNAM | sed 's/psx/psx_hw/'); fi
+HW=${HW:-0}
+if [ "$HW" != '1' ]; then
+ OPENGL=${OPENGL:-0}
+ VULKAN=${VULKAN:-0}
+else
+ OPENGL=1
+ VULKAN=1
+fi
+if [ "$OPENGL" = '1' ] || [ "$VULKAN" = '1' ]; then
+ LIBNAM=$(echo $LIBNAM | sed 's/psx/psx_hw/')
+fi
set -e
@@ -76,18 +85,26 @@ 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 DEBUG=$DEBUG HAVE_OPENGL=$OPENGL
+make DEBUG=$DEBUG \
+ GIT_VERSION=${VERSION#*_} \
+ VULKAN_DEBUG=$DEBUG \
+ HAVE_OPENGL=$OPENGL \
+ HAVE_VULKAN=$VULKAN
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
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/parallel-psx
+for DOCDIR in . parallel-psx; do
+ for DOC in COPYING README.md; do
+ cp -a $DOCDIR/$DOC $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR
+ done
+done
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install