aboutsummaryrefslogtreecommitdiff
path: root/games/jg-mednafen
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-02-08 17:55:48 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-02-10 16:17:26 +0700
commit862c2aca8944f11fc5c35dda15e23ad83e2887be (patch)
treed6d407de6821590b7371a6d3b621bf9457731971 /games/jg-mednafen
parent24efacfbe5618c485fcb75df9ee27aefb08dabfc (diff)
games/jg-mednafen: Updated for version 1.32.0.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/jg-mednafen')
-rw-r--r--games/jg-mednafen/jg-mednafen.SlackBuild7
-rw-r--r--games/jg-mednafen/jg-mednafen.info6
-rw-r--r--games/jg-mednafen/pthreads_configure_ac.diff17
3 files changed, 26 insertions, 4 deletions
diff --git a/games/jg-mednafen/jg-mednafen.SlackBuild b/games/jg-mednafen/jg-mednafen.SlackBuild
index 15301f6bbeba7..481760176a48c 100644
--- a/games/jg-mednafen/jg-mednafen.SlackBuild
+++ b/games/jg-mednafen/jg-mednafen.SlackBuild
@@ -6,11 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20240208 bkw: updated for v1.32.0.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=jg-mednafen
SRCNAM=mednafen
-VERSION=${VERSION:-1.31.0}
+VERSION=${VERSION:-1.32.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -58,6 +60,9 @@ chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+# 20240208 bkw: patch sent upstrem (to orbea).
+patch -p1 < $CWD/pthreads_configure_ac.diff
+
LIBDIR=/usr/lib$LIBDIRSUFFIX
PKGLIB=$PKG/$LIBDIR
DOCDIR=/usr/doc/$PRGNAM-$VERSION
diff --git a/games/jg-mednafen/jg-mednafen.info b/games/jg-mednafen/jg-mednafen.info
index 14a8c5d6047dc..ab85bdd76344e 100644
--- a/games/jg-mednafen/jg-mednafen.info
+++ b/games/jg-mednafen/jg-mednafen.info
@@ -1,8 +1,8 @@
PRGNAM="jg-mednafen"
-VERSION="1.31.0"
+VERSION="1.32.0"
HOMEPAGE="https://jgemu.gitlab.io/"
-DOWNLOAD="https://gitlab.com/jgemu/mednafen/-/archive/1.31.0/mednafen-1.31.0.tar.gz"
-MD5SUM="0cc1e63a8a6a8f318e1fc16739e83215"
+DOWNLOAD="https://gitlab.com/jgemu/mednafen/-/archive/1.32.0/mednafen-1.32.0.tar.gz"
+MD5SUM="eb1107cf1c183e2770e6cea35934eaec"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jollygood"
diff --git a/games/jg-mednafen/pthreads_configure_ac.diff b/games/jg-mednafen/pthreads_configure_ac.diff
new file mode 100644
index 0000000000000..60e93ecf8a676
--- /dev/null
+++ b/games/jg-mednafen/pthreads_configure_ac.diff
@@ -0,0 +1,17 @@
+diff --git a/jollygood/conf/configure.ac b/jollygood/conf/configure.ac
+index 8357435..b1d7d15 100644
+--- a/jollygood/conf/configure.ac
++++ b/jollygood/conf/configure.ac
+@@ -89,9 +89,9 @@ if ! expr x"$host" : 'x.*-mingw*' > /dev/null &&
+ AC_SEARCH_LIBS(pthread_create, [pthread])
+ AC_CHECK_FUNCS(pthread_create sem_init, [],
+ AC_MSG_ERROR([*** pthreads not found!]))
+- AC_CHECK_FUNCS(sem_timedwait sem_timedwait_monotonic sem_clockwait
+- sem_clockwait_np pthread_condattr_setclock pthread_setname_np
+- pthread_set_name_np pthread_getaffinity_np
++ AC_CHECK_FUNCS(sem_timedwait sem_timedwait_monotonic sem_clockwait \
++ sem_clockwait_np pthread_condattr_setclock pthread_setname_np \
++ pthread_set_name_np pthread_getaffinity_np \
+ pthread_setaffinity_np pthread_cond_timedwait_relative_np)
+ AC_CHECK_HEADERS(pthread.h sched.h)
+ AC_CHECK_HEADERS(pthread_np.h, [], [], [