diff options
Diffstat (limited to 'games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild')
-rw-r--r-- | games/beetle-psx-libretro/beetle-psx-libretro.SlackBuild | 31 |
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 84470fda48848..adf0d28391813 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 |