git: 6acbe792c975 - main - games/libretro-beetle_saturn: New port
Guangyuan Yang
ygy at FreeBSD.org
Fri Aug 13 18:41:22 UTC 2021
The branch main has been updated by ygy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=6acbe792c9752737be6c3634955b766da54aafd9
commit 6acbe792c9752737be6c3634955b766da54aafd9
Author: Daniel Menelkir <menelkir at itroll.org>
AuthorDate: 2021-08-13 18:41:08 +0000
Commit: Guangyuan Yang <ygy at FreeBSD.org>
CommitDate: 2021-08-13 18:41:08 +0000
games/libretro-beetle_saturn: New port
Standalone port of Mednafen Saturn to libretro.
PR: 256776
---
games/Makefile | 1 +
games/libretro-beetle_saturn/Makefile | 26 ++++++++++++++++++++++
games/libretro-beetle_saturn/distinfo | 3 +++
.../patch-libretro-common_rthreads_rthreads.c | 11 +++++++++
games/libretro-beetle_saturn/pkg-descr | 3 +++
5 files changed, 44 insertions(+)
diff --git a/games/Makefile b/games/Makefile
index 7f2214e7c353..f592417fb36b 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -486,6 +486,7 @@
SUBDIR += libretro-beetle_pce_fast
SUBDIR += libretro-beetle_pcfx
SUBDIR += libretro-beetle_psx
+ SUBDIR += libretro-beetle_saturn
SUBDIR += libretro-beetle_supergrafx
SUBDIR += libretro-beetle_vb
SUBDIR += libretro-beetle_wswan
diff --git a/games/libretro-beetle_saturn/Makefile b/games/libretro-beetle_saturn/Makefile
new file mode 100644
index 000000000000..1d0ca09c54f0
--- /dev/null
+++ b/games/libretro-beetle_saturn/Makefile
@@ -0,0 +1,26 @@
+PORTNAME= libretro-beetle_saturn
+PORTVERSION= 0.20210622
+CATEGORIES= games
+
+MAINTAINER= menelkir at itroll.org
+COMMENT= Standalone port of Mednafen Saturn to libretro
+
+LICENSE= GPLv2
+
+USES= compiler:c++11-lib gmake
+USE_LDCONFIG= yes
+
+USE_GITHUB= yes
+GH_ACCOUNT= libretro
+GH_PROJECT= beetle-saturn-libretro
+GH_TAGNAME= ee5b214
+
+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;
+
+.include <bsd.port.mk>
diff --git a/games/libretro-beetle_saturn/distinfo b/games/libretro-beetle_saturn/distinfo
new file mode 100644
index 000000000000..c594b8abd669
--- /dev/null
+++ b/games/libretro-beetle_saturn/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1624369815
+SHA256 (libretro-beetle-saturn-libretro-0.20210622-ee5b214_GH0.tar.gz) = b4a2797fa0141db37f46df824cc1090f045a51fb9a78e6d03ce4efdea59207bf
+SIZE (libretro-beetle-saturn-libretro-0.20210622-ee5b214_GH0.tar.gz) = 1114744
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
new file mode 100644
index 000000000000..09e7cfd6ee7c
--- /dev/null
+++ b/games/libretro-beetle_saturn/files/patch-libretro-common_rthreads_rthreads.c
@@ -0,0 +1,11 @@
+--- 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/pkg-descr b/games/libretro-beetle_saturn/pkg-descr
new file mode 100644
index 000000000000..e1c54320da28
--- /dev/null
+++ b/games/libretro-beetle_saturn/pkg-descr
@@ -0,0 +1,3 @@
+Standalone port of Mednafen Sega Saturn to libretro.
+
+WWW: https://github.com/libretro/beetle-saturn-libretro
More information about the dev-commits-ports-all
mailing list