git: a2de77956a42 - main - games/libretro-opera: update to 0.20230730

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

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

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

    games/libretro-opera: update to 0.20230730
    
    PR:             274647
---
 games/libretro-opera/Makefile                                | 12 +++++-------
 games/libretro-opera/distinfo                                |  6 +++---
 .../files/patch-libretro-common_rthreads_rthreads.c          | 11 +++++++++++
 3 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/games/libretro-opera/Makefile b/games/libretro-opera/Makefile
index 54a505881de8..72fe738e71c6 100644
--- a/games/libretro-opera/Makefile
+++ b/games/libretro-opera/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	libretro-opera
-PORTVERSION=	0.20210214
-PORTREVISION=	1
+DISTVERSION=	0.20230730
 CATEGORIES=	games
 
 MAINTAINER=	ports@FreeBSD.org
@@ -9,19 +8,18 @@ WWW=		https://github.com/libretro/opera-libretro
 
 LICENSE=	GPLv2
 
-USES=		compiler:c++11-lib gmake gl
+USES=		compiler:c++11-lib gmake
 USE_LDCONFIG=	yes
-USE_GL=		gl
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	libretro
 GH_PROJECT=	opera-libretro
-GH_TAGNAME=	5781f68
+GH_TAGNAME=	100ae1e7decefe1f17d98cfcb9f2af4ff8452691
 
 PLIST_FILES=	lib/libretro/opera_libretro.so
 
 do-install:
-	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
-	${INSTALL_LIB} ${WRKSRC}/opera_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;
+	${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro
+	${INSTALL_LIB} ${WRKSRC}/opera_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro
 
 .include <bsd.port.mk>
diff --git a/games/libretro-opera/distinfo b/games/libretro-opera/distinfo
index c0ed4b979f49..b71e8918a0c1 100644
--- a/games/libretro-opera/distinfo
+++ b/games/libretro-opera/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1613703820
-SHA256 (libretro-opera-libretro-0.20210214-5781f68_GH0.tar.gz) = f10f600360b32234e51874c75924cde297e5158e75203b2fb470b4ac27af2f27
-SIZE (libretro-opera-libretro-0.20210214-5781f68_GH0.tar.gz) = 775355
+TIMESTAMP = 1698314838
+SHA256 (libretro-opera-libretro-0.20230730-100ae1e7decefe1f17d98cfcb9f2af4ff8452691_GH0.tar.gz) = 48da27e7cfea9b23169d856188ad4c2fcc1a34240fb4c5af6c4a52b165e4c6ba
+SIZE (libretro-opera-libretro-0.20230730-100ae1e7decefe1f17d98cfcb9f2af4ff8452691_GH0.tar.gz) = 539019
diff --git a/games/libretro-opera/files/patch-libretro-common_rthreads_rthreads.c b/games/libretro-opera/files/patch-libretro-common_rthreads_rthreads.c
new file mode 100644
index 000000000000..9de51d115a0b
--- /dev/null
+++ b/games/libretro-opera/files/patch-libretro-common_rthreads_rthreads.c
@@ -0,0 +1,11 @@
+--- libretro-common/rthreads/rthreads.c.orig	2023-11-02 10:48:48 UTC
++++ libretro-common/rthreads/rthreads.c
+@@ -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
+