summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games/beetle-psx-libretro/README16
-rw-r--r--games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild31
-rw-r--r--games/beetle-psx-libretro/beetle-psx-libretro.info6
3 files changed, 42 insertions, 11 deletions
diff --git a/games/beetle-psx-libretro/README b/games/beetle-psx-libretro/README
index 9ebf6a55d4..d4ec492254 100644
--- a/games/beetle-psx-libretro/README
+++ b/games/beetle-psx-libretro/README
@@ -18,8 +18,22 @@ CUE+BIN, CloneCD "CCD/IMG/SUB" rips and cdrdao "TOC" files. For games with more
than one CD create a M3U file(plain-text, ".m3u" extension) and enter the
filenames of the CUE/TOC/CCD files.
-To build the opengl renderer use:
+Beetle PSX can use an OpenGL or Vulkan renderer instead of the accurate software
+renderer. This will require both a video card and driver that support it, but
+Slackware does not yet provide any Vulkan support, so providing the correct
+system environment for Vulkan is up to you.
+
+To switch between OpenGL and Vulkan renderers configure the video driver in
+RetroArch. This can be done in the menu at 'Settings > Drivers > Video Driver'.
+
+To build the OpenGL renderer use:
OPENGL=1 ./beetle-psx-libretro.SlackBuild
+To build the Vulkan renderer use:
+ VULKAN=1 ./beetle-psx-libretro.SlackBuild
+
+To build both the OpenGL and Vulkan renderers use:
+ HW=1 ./beetle-psx-libretro.SlackBuild
+
To build the debugging symbols use:
DEBUG=1 ./beetle-psx-libretro.SlackBuild
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
diff --git a/games/beetle-psx-libretro/beetle-psx-libretro.info b/games/beetle-psx-libretro/beetle-psx-libretro.info
index 17c5db0835..0d220d9b84 100644
--- a/games/beetle-psx-libretro/beetle-psx-libretro.info
+++ b/games/beetle-psx-libretro/beetle-psx-libretro.info
@@ -1,8 +1,8 @@
PRGNAM="beetle-psx-libretro"
-VERSION="2016.07.20_58609aa"
+VERSION="2017.02.04_e3aae3d"
HOMEPAGE="http://www.libretro.com/"
-DOWNLOAD="http://ks392457.kimsufi.com/orbea/stuff/slackbuilds/src/libretro/beetle-psx-libretro-2016.07.20_58609aa.tar.xz"
-MD5SUM="e6c7cee3a75eeba1d7f4bfc826f7cdca"
+DOWNLOAD="http://ks392457.kimsufi.com/orbea/stuff/slackbuilds/src/libretro/beetle-psx-libretro-2017.02.04_e3aae3d.tar.xz"
+MD5SUM="1a571304f6dc717b31d47cee80189966"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="RetroArch"