git: 4b5ca06d13c3 - main - games/libretro-yabause: update to 0.20230103

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=4b5ca06d13c32f7a94d6beaf563fc5a4d007e8bf

commit 4b5ca06d13c32f7a94d6beaf563fc5a4d007e8bf
Author:     Stephane D'Alu <sdalu@sdalu.com>
AuthorDate: 2023-10-27 09:50:44 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-07 00:16:56 +0000

    games/libretro-yabause: update to 0.20230103
    
    PR:             274647
---
 games/libretro-yabause/Makefile                          | 10 +++++-----
 games/libretro-yabause/distinfo                          |  6 +++---
 games/libretro-yabause/files/patch-Makefile.freebsd      |  5 -----
 ...ause_src_libretro_libretro-common_rthreads_rthreads.c | 16 ++++++++--------
 4 files changed, 16 insertions(+), 21 deletions(-)

diff --git a/games/libretro-yabause/Makefile b/games/libretro-yabause/Makefile
index 68e9f9e2aecb..e3b9da3e528b 100644
--- a/games/libretro-yabause/Makefile
+++ b/games/libretro-yabause/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	libretro-yabause
-PORTVERSION=	0.20220218
+DISTVERSION=	0.20230103
 CATEGORIES=	games
 
 MAINTAINER=	ports@FreeBSD.org
@@ -14,11 +14,11 @@ USE_LDCONFIG=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	libretro
 GH_PROJECT=	yabause
-GH_TAGNAME=	17dfcd8
+GH_TAGNAME=	4c96b96f7fbe07223627c469ff33376b2a634748
 
 PLIST_FILES=	lib/libretro/yabause_libretro.so
 
-MAKEFILE=	Makefile.freebsd
+BUILD_WRKSRC=	${WRKSRC}/yabause/src/libretro
 
 .include <bsd.port.pre.mk>
 
@@ -28,7 +28,7 @@ post-patch:
 .endif
 
 do-install:
-	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
-	${INSTALL_LIB} ${WRKSRC}/yabause/src/libretro/yabause_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;
+	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro
+	${INSTALL_LIB} ${WRKSRC}/yabause/src/libretro/yabause_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro
 
 .include <bsd.port.post.mk>
diff --git a/games/libretro-yabause/distinfo b/games/libretro-yabause/distinfo
index 5712762ad903..1b041cc393c1 100644
--- a/games/libretro-yabause/distinfo
+++ b/games/libretro-yabause/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1649330571
-SHA256 (libretro-yabause-0.20220218-17dfcd8_GH0.tar.gz) = 32f5faf18988260b9b9070e73dff846eaf634709ffcaa39dfc88597babeb7479
-SIZE (libretro-yabause-0.20220218-17dfcd8_GH0.tar.gz) = 15196027
+TIMESTAMP = 1698314852
+SHA256 (libretro-yabause-0.20230103-4c96b96f7fbe07223627c469ff33376b2a634748_GH0.tar.gz) = 76f50b21d81507ac29e80bbcfbfc8dbf71d6bf051f1267973eabed99a6681654
+SIZE (libretro-yabause-0.20230103-4c96b96f7fbe07223627c469ff33376b2a634748_GH0.tar.gz) = 15210082
diff --git a/games/libretro-yabause/files/patch-Makefile.freebsd b/games/libretro-yabause/files/patch-Makefile.freebsd
deleted file mode 100644
index 1dfa6c87678a..000000000000
--- a/games/libretro-yabause/files/patch-Makefile.freebsd
+++ /dev/null
@@ -1,5 +0,0 @@
---- Makefile.freebsd.orig	2020-05-02 13:46:15 UTC
-+++ Makefile.freebsd
-@@ -0,0 +1,2 @@
-+all:
-+	cd yabause/src/libretro && ${MAKE} 
diff --git a/games/libretro-yabause/files/patch-yabause_src_libretro_libretro-common_rthreads_rthreads.c b/games/libretro-yabause/files/patch-yabause_src_libretro_libretro-common_rthreads_rthreads.c
index a257dba8db83..e788c37fe6fb 100644
--- a/games/libretro-yabause/files/patch-yabause_src_libretro_libretro-common_rthreads_rthreads.c
+++ b/games/libretro-yabause/files/patch-yabause_src_libretro_libretro-common_rthreads_rthreads.c
@@ -1,11 +1,11 @@
---- yabause/src/libretro/libretro-common/rthreads/rthreads.c.orig	2020-05-02 13:49:27 UTC
+--- yabause/src/libretro/libretro-common/rthreads/rthreads.c.orig	2023-11-02 18:30:58 UTC
 +++ yabause/src/libretro/libretro-common/rthreads/rthreads.c
-@@ -67,6 +67,8 @@
- #include <mach/mach.h>
+@@ -55,7 +55,7 @@
+ #include <time.h>
+ #endif
+ 
+-#if defined(VITA) || defined(BSD) || defined(ORBIS)
++#if defined(VITA) || defined(BSD) || defined(ORBIS) || (__FreeBSD__ <= 12)
+ #include <sys/time.h>
  #endif
  
-+#include <sys/time.h>
-+
- struct thread_data
- {
-    void (*func)(void*);