aboutsummaryrefslogtreecommitdiff
path: root/games/GLupeN64/GLupeN64.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/GLupeN64/GLupeN64.SlackBuild')
-rw-r--r--games/GLupeN64/GLupeN64.SlackBuild25
1 files changed, 20 insertions, 5 deletions
diff --git a/games/GLupeN64/GLupeN64.SlackBuild b/games/GLupeN64/GLupeN64.SlackBuild
index 89b1702652a3..cc54c5372765 100644
--- a/games/GLupeN64/GLupeN64.SlackBuild
+++ b/games/GLupeN64/GLupeN64.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=GLupeN64
LIBNAM=$(echo $PRGNAM | tr [A-Z] [a-z])_libretro
-VERSION=${VERSION:-2016.11.28_ef3d576}
+VERSION=${VERSION:-2017.01.30_7b7cb25}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -58,6 +58,8 @@ else
fi
DEBUG=${DEBUG:-0}
+GLES=${GLES:-0}
+GLES3=${GLES3:-0}
set -e
@@ -74,21 +76,34 @@ 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
+make DEBUG=$DEBUG \
+ GIT_VERSION=${VERSION#*_} \
+ FORCE_GLES=$GLES \
+ FORCE_GLES3=$GLES3
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
-PLUGIN="GLideN64 glsl-optimizer mupen64plus-core mupen64plus-rsp-cxd4 mupen64plus-rsp-hle"
-DOCS="Changelog.md COPYING INSTALL LICENSES LICENSE license.txt README.md README RELEASE"
+PLUGIN='GLideN64 mupen64plus-core mupen64plus-rsp-cxd4 mupen64plus-rsp-hle'
+DOCS='gpl-2.0.txt COPYING INSTALL LICENSES LICENSE README.md README RELEASE'
for DOCDIR in $PLUGIN; do
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR
+ if [ "$DOCDIR" = GLideN64 ]; then
+ for DIR in GlideHQ Glow gles2n64; do
+ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR/$DIR
+ for file in $DOCS; do
+ if [ -f $DOCDIR/licenses/$DIR/$file ]; then
+ cp -a $DOCDIR/licenses/$DIR/$file $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR/$DIR
+ fi
+ done
+ done
+ fi
for file in $DOCS; do
if [ -f $DOCDIR/$file ]; then
cp -a $DOCDIR/$file $PKG/usr/doc/$PRGNAM-$VERSION/$DOCDIR