games/beetle-psx-libretro: Updated for version 2017.02.04_e3aae3d.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Hunter Sezen 2017-02-04 21:14:54 +00:00 committed by Willy Sudiarto Raharjo
parent 9eeb342fb6
commit 391faabc58
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 42 additions and 11 deletions

View file

@ -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

View file

@ -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

View file

@ -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"