diff options
Diffstat (limited to 'games/RetroArch/RetroArch.SlackBuild')
-rw-r--r-- | games/RetroArch/RetroArch.SlackBuild | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/games/RetroArch/RetroArch.SlackBuild b/games/RetroArch/RetroArch.SlackBuild index 892174ec35..0c4881c530 100644 --- a/games/RetroArch/RetroArch.SlackBuild +++ b/games/RetroArch/RetroArch.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for RetroArch -# Copyright 2016-2018 Hunter Sezen California, USA +# Copyright 2016-2019 Hunter Sezen California, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=RetroArch -VERSION=${VERSION:-1.7.5} -BUILD=${BUILD:-2} +VERSION=${VERSION:-1.7.6} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,18 +69,22 @@ 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 {} \; +lib= + if [ "${DEBUG:=0}" != 0 ]; then - [ "${ASAN:=}" != '' ] && ASAN=address - DEBUG=1 + case "${ASAN:=}" in + '' ) : ;; + thread ) ASAN=thread ;; + * ) ASAN=address ;; + esac RELEASE=debug SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')" + lib="${lib} --enable-debug" else ASAN= RELEASE=release fi -lib= - [ "${DISCORD:-0}" = 0 ] && lib="${lib} --disable-discord" if [ "${GLES:-0}" != 0 ]; then @@ -92,6 +96,7 @@ fi pkg-config --exists flac && lib="${lib} --disable-builtinflac" pkg-config --exists libsixel && lib="${lib} --enable-sixel" +[ -d /usr/include/mbedtls ] && lib="${lib} --disable-builtinmbedtls" [ -d /usr/include/miniupnpc ] && lib="${lib} --disable-builtinminiupnpc" if [ "${PYTHON:-0}" != 0 ]; then @@ -102,7 +107,13 @@ if [ "${PYTHON:-0}" != 0 ]; then fi fi +[ "${MENU:-yes}" != yes ] && lib="${lib} --disable-menu" [ "${PULSE:-yes}" != yes ] && lib="${lib} --disable-pulse" +[ "${QT:-yes}" != yes ] && lib="${lib} --disable-qt" +[ "${GLUI:-yes}" != yes ] && lib="${lib} --disable-materialui" +[ "${OZONE:-yes}" != yes ] && lib="${lib} --disable-ozone" +[ "${RGUI:-yes}" != yes ] && lib="${lib} --disable-rgui" +[ "${XMB:-yes}" != yes ] && lib="${lib} --disable-xmb" # Disable downloading cores with the online updater # https://github.com/libretro/RetroArch/issues/3237 @@ -123,11 +134,10 @@ sed -e "s|# audio_filter_dir =|audio_filter_dir = ${filter_dir}/audio|" \ -e "$SED_CORE;$SED_INFO;$SED_MENU" \ -i retroarch.cfg -# Fix KMS with OpenGL. -# https://github.com/libretro/RetroArch/commit/5898f3e5d22b930a1050a59b61e98ecd07dd6977 -# https://github.com/libretro/RetroArch/issues/7119 -# https://github.com/libretro/RetroArch/pull/7708 -patch -p1 < $CWD/kms.patch +# Fix --disable-menu (Again). +# https://github.com/libretro/RetroArch/commit/762151758d0704394699fe3462ad0505e2cf4070 +# https://github.com/libretro/RetroArch/pull/8170 +patch -p1 < $CWD/menu.patch # Set $lib to a portable array eval "set -- $lib" @@ -144,7 +154,7 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux \ "$@" -make GL_DEBUG=$DEBUG VULKAN_DEBUG=$DEBUG SANITIZER=$ASAN +make SANITIZER=$ASAN make install DESTDIR=$PKG for filter in audio video; do @@ -166,7 +176,7 @@ done mv $PKG/etc/retroarch.cfg $PKG/etc/retroarch.cfg.new -if [ $DEBUG = 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 |