summaryrefslogtreecommitdiff
path: root/games/RetroArch
diff options
context:
space:
mode:
authorHunter Sezen <ovariegata@yahoo.com>2017-12-26 06:51:23 +0700
committerRobby Workman <rworkman@slackbuilds.org>2017-12-27 18:10:02 -0600
commit618d1d4528d5e422bf949ee0e7524cd77d8897e5 (patch)
treef648fa16a0932c1c3593adf4f2d8ac1437f4254f /games/RetroArch
parenteacb901b9e9b2f15760d5c46f3981f4507f76907 (diff)
downloadslackbuilds-618d1d4528d5e422bf949ee0e7524cd77d8897e5.tar.gz
games/RetroArch: Updated for version 1.7.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/RetroArch')
-rw-r--r--games/RetroArch/README3
-rw-r--r--games/RetroArch/RetroArch.SlackBuild31
-rw-r--r--games/RetroArch/RetroArch.info6
3 files changed, 25 insertions, 15 deletions
diff --git a/games/RetroArch/README b/games/RetroArch/README
index 4b1e501993..aa1a63027d 100644
--- a/games/RetroArch/README
+++ b/games/RetroArch/README
@@ -26,6 +26,9 @@ libretro slackbuilds. The buildbot can be used with:
To build debugging symbols for RetroArch use:
DEBUG=1 ./RetroArch.SlackBuild
+If building debugging symbols asan can also be built:
+ DEBUG=1 ASAN=1 ./RetroArch.SlackBuild
+
To use RetroArch's udev input driver your user will need to be part of the
'input' group. This can be done with the following command:
diff --git a/games/RetroArch/RetroArch.SlackBuild b/games/RetroArch/RetroArch.SlackBuild
index 9bc4ec6442..393f94c3ce 100644
--- a/games/RetroArch/RetroArch.SlackBuild
+++ b/games/RetroArch/RetroArch.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=RetroArch
-VERSION=${VERSION:-1.6.9}
+VERSION=${VERSION:-1.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -70,23 +70,27 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if [ "${DEBUG:=0}" != 0 ]; then
+ [ "${ASAN:=}" != '' ] && ASAN=address
DEBUG=1
RELEASE=debug
SLKCFLAGS="$(printf %s "$SLKCFLAGS" | sed 's/-O2/-O0 -g/')"
else
+ ASAN=
RELEASE=release
fi
-gles=; python=
+lib=
-if [ "${GLES:-0}" = 1 ]; then
- gles='--enable-opengles'
-elif [ "${GLES3:-0}" = 1 ]; then
- gles='--enable-opengles --enable-opengles3'
+if [ "${GLES:-0}" != 0 ]; then
+ lib="${lib} --enable-opengles"
+elif [ "${GLES3:-0}" != 0 ]; then
+ lib="${lib} --enable-opengles --enable-opengles3"
fi
-if [ "${PYTHON:-0}" = 1 ]; then
- python='--enable-python'
+[ -d /usr/include/miniupnpc ] && lib="${lib} --disable-builtinminiupnpc"
+
+if [ "${PYTHON:-0}" != 0 ]; then
+ lib="${lib} --enable-python"
# Needed for python3 in the 14.1 SBo branch.
if ! pkg-config --exists python3 && pkg-config --exists python-3.5; then
sed -i 's/python3/python-3.5/' qb/config.libs.sh
@@ -96,7 +100,7 @@ fi
# Disable downloading cores with the online updater
# https://github.com/libretro/RetroArch/issues/3237
SED_CORE=; SED_INFO=; SED_MENU=
-if [ "${BUILDBOT:-0}" != 1 ]; then
+if [ "${BUILDBOT:-0}" = 0 ]; then
SED_CORE="s|# libretro_directory =|libretro_directory = /usr/lib${LIBDIRSUFFIX}/libretro|"
SED_INFO="s|# libretro_info_path =|libretro_info_path = /usr/lib${LIBDIRSUFFIX}/libretro/info|"
SED_MENU='s|# menu_show_core_updater = true|menu_show_core_updater = false|'
@@ -108,6 +112,9 @@ sed -e "s|# audio_filter_dir =|audio_filter_dir = /usr/lib${LIBDIRSUFFIX}/retroa
-e "$SED_CORE;$SED_INFO;$SED_MENU" \
-i retroarch.cfg
+# Set $lib to a portable array
+eval "set -- $lib"
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -115,11 +122,11 @@ CXXFLAGS="$SLKCFLAGS" \
--with-bin_dir=/usr/games \
--with-man_dir=/usr/man \
--with-assets_dir=/usr/share/games \
- --disable-dbus \
--disable-update_assets \
- $gles $python
+ --build=$ARCH-slackware-linux \
+ "$@"
-make GL_DEBUG=$DEBUG VULKAN_DEBUG=$DEBUG
+make GL_DEBUG=$DEBUG VULKAN_DEBUG=$DEBUG SANITIZER=$ASAN
make install DESTDIR=$PKG
for filter in audio video; do
diff --git a/games/RetroArch/RetroArch.info b/games/RetroArch/RetroArch.info
index c7c604ca17..7b91984d23 100644
--- a/games/RetroArch/RetroArch.info
+++ b/games/RetroArch/RetroArch.info
@@ -1,8 +1,8 @@
PRGNAM="RetroArch"
-VERSION="1.6.9"
+VERSION="1.7.0"
HOMEPAGE="https://www.libretro.com/"
-DOWNLOAD="http://ks392457.kimsufi.com/orbea/stuff/slackbuilds/src/RetroArch-1.6.9.tar.xz"
-MD5SUM="2196959643b90cea8c2f7d365aa938cb"
+DOWNLOAD="http://ks392457.kimsufi.com/orbea/stuff/slackbuilds/src/RetroArch-1.7.0.tar.xz"
+MD5SUM="3ad88ef45a850e975d9f3749f756494b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""