git: 1bcbefc2da25 - main - games/libretro-beetle_saturn: rename to games/libretro-mednafen_saturn + update to 0.20230528

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Tue, 07 Nov 2023 00:21:52 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1bcbefc2da25c0bc3b7fcd292f7fc447ec8a0d0b

commit 1bcbefc2da25c0bc3b7fcd292f7fc447ec8a0d0b
Author:     Stephane D'Alu <sdalu@sdalu.com>
AuthorDate: 2023-10-27 10:40:06 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-07 00:17:23 +0000

    games/libretro-beetle_saturn: rename to games/libretro-mednafen_saturn + update to 0.20230528
    
    PR:             274647
---
 MOVED                                                         |  1 +
 games/Makefile                                                |  2 +-
 games/libretro-beetle_saturn/distinfo                         |  3 ---
 .../files/patch-libretro-common_rthreads_rthreads.c           | 11 -----------
 .../Makefile                                                  | 10 +++++-----
 games/libretro-mednafen_saturn/distinfo                       |  3 +++
 .../files/patch-libretro-common_rthreads_rthreads.c           | 11 +++++++++++
 .../pkg-descr                                                 |  0
 8 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/MOVED b/MOVED
index a26c3b46e3e2..46b69490f96d 100644
--- a/MOVED
+++ b/MOVED
@@ -7967,3 +7967,4 @@ games/libretro-beetle_ngp|games/libretro-mednafen_ngp|2023-10-26|Follow naming o
 games/libretro-beetle_pce|games/libretro-mednafen_pce|2023-10-26|Follow naming of libretro-super build script
 games/libretro-beetle_pce_fast|games/libretro-mednafen_pce_fast|2023-10-26|Follow naming of libretro-super build script
 games/libretro-beetle_pcfx|games/libretro-mednafen_pcfx|2023-10-26|Follow naming of libretro-super build script
+games/libretro-beetle_saturn|games/libretro-mednafen_saturn|2023-10-26|Follow naming of libretro-super build script
diff --git a/games/Makefile b/games/Makefile
index abc6527cc3dd..687f88d9b8cb 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -498,7 +498,6 @@
     SUBDIR += libretro-2048
     SUBDIR += libretro-a5200
     SUBDIR += libretro-beetle_psx
-    SUBDIR += libretro-beetle_saturn
     SUBDIR += libretro-beetle_supergrafx
     SUBDIR += libretro-beetle_vb
     SUBDIR += libretro-beetle_wswan
@@ -532,6 +531,7 @@
     SUBDIR += libretro-mednafen_pce
     SUBDIR += libretro-mednafen_pce_fast
     SUBDIR += libretro-mednafen_pcfx
+    SUBDIR += libretro-mednafen_saturn
     SUBDIR += libretro-melonds
     SUBDIR += libretro-mgba
     SUBDIR += libretro-mu
diff --git a/games/libretro-beetle_saturn/distinfo b/games/libretro-beetle_saturn/distinfo
deleted file mode 100644
index 2e3c75b21e63..000000000000
--- a/games/libretro-beetle_saturn/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1649323204
-SHA256 (libretro-beetle-saturn-libretro-0.20220319-ae30f29_GH0.tar.gz) = e8458aeb19a4f1e022b4def3c53709951443b7586c5f76fd6e6dfac360610d26
-SIZE (libretro-beetle-saturn-libretro-0.20220319-ae30f29_GH0.tar.gz) = 933211
diff --git a/games/libretro-beetle_saturn/files/patch-libretro-common_rthreads_rthreads.c b/games/libretro-beetle_saturn/files/patch-libretro-common_rthreads_rthreads.c
deleted file mode 100644
index 09e7cfd6ee7c..000000000000
--- a/games/libretro-beetle_saturn/files/patch-libretro-common_rthreads_rthreads.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- libretro-common/rthreads/rthreads.c.orig	2021-06-22 13:57:12 UTC
-+++ libretro-common/rthreads/rthreads.c
-@@ -64,6 +64,8 @@
- #include <mach/mach.h>
- #endif
- 
-+#include <sys/time.h>
-+
- struct thread_data
- {
-    void (*func)(void*);
diff --git a/games/libretro-beetle_saturn/Makefile b/games/libretro-mednafen_saturn/Makefile
similarity index 72%
rename from games/libretro-beetle_saturn/Makefile
rename to games/libretro-mednafen_saturn/Makefile
index faaf538169ce..8a1e865fb5f7 100644
--- a/games/libretro-beetle_saturn/Makefile
+++ b/games/libretro-mednafen_saturn/Makefile
@@ -1,5 +1,5 @@
-PORTNAME=	libretro-beetle_saturn
-PORTVERSION=	0.20220319
+PORTNAME=	libretro-mednafen_saturn
+DISTVERSION=	0.20230528
 CATEGORIES=	games
 
 MAINTAINER=	ports@FreeBSD.org
@@ -14,14 +14,14 @@ USE_LDCONFIG=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	libretro
 GH_PROJECT=	beetle-saturn-libretro
-GH_TAGNAME=	ae30f29
+GH_TAGNAME=	cd395e9e3ee407608450ebc565e871b24e7ffed6
 
 CFLAGS+=	-fcommon
 
 PLIST_FILES=	lib/libretro/mednafen_saturn_libretro.so
 
 do-install:
-	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
-	${INSTALL_LIB} ${WRKSRC}/mednafen_saturn_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;
+	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro
+	${INSTALL_LIB} ${WRKSRC}/mednafen_saturn_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro
 
 .include <bsd.port.mk>
diff --git a/games/libretro-mednafen_saturn/distinfo b/games/libretro-mednafen_saturn/distinfo
new file mode 100644
index 000000000000..ecb9a5746b55
--- /dev/null
+++ b/games/libretro-mednafen_saturn/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698314827
+SHA256 (libretro-beetle-saturn-libretro-0.20230528-cd395e9e3ee407608450ebc565e871b24e7ffed6_GH0.tar.gz) = b8a7a359c490607187f2dd2ca49af3463731d3816a0b4411aab49dbc2abdc71e
+SIZE (libretro-beetle-saturn-libretro-0.20230528-cd395e9e3ee407608450ebc565e871b24e7ffed6_GH0.tar.gz) = 1002296
diff --git a/games/libretro-mednafen_saturn/files/patch-libretro-common_rthreads_rthreads.c b/games/libretro-mednafen_saturn/files/patch-libretro-common_rthreads_rthreads.c
new file mode 100644
index 000000000000..51721eb74ee5
--- /dev/null
+++ b/games/libretro-mednafen_saturn/files/patch-libretro-common_rthreads_rthreads.c
@@ -0,0 +1,11 @@
+--- libretro-common/rthreads/rthreads.c.orig	2023-10-28 20:46:34 UTC
++++ libretro-common/rthreads/rthreads.c
+@@ -56,7 +56,7 @@
+ #include <time.h>
+ #endif
+ 
+-#if defined(VITA) || defined(BSD) || defined(ORBIS) || defined(__mips__) || defined(_3DS)
++#if defined(VITA) || defined(BSD) || defined(ORBIS) || defined(__mips__) || defined(_3DS) || (__FreeBSD__ <= 12)
+ #include <sys/time.h>
+ #endif
+ 
diff --git a/games/libretro-beetle_saturn/pkg-descr b/games/libretro-mednafen_saturn/pkg-descr
similarity index 100%
rename from games/libretro-beetle_saturn/pkg-descr
rename to games/libretro-mednafen_saturn/pkg-descr