FreeBSD Bugzilla – Attachment 245944 Details for
Bug 274647
games/retroarch: outdated version (current 1.16.0.3)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
desmume
0007-games-libretro-desmume-new-port.patch (text/plain), 4.11 KB, created by
Stéphane D'Alu
on 2023-10-28 13:58:11 UTC
(
hide
)
Description:
desmume
Filename:
MIME Type:
Creator:
Stéphane D'Alu
Created:
2023-10-28 13:58:11 UTC
Size:
4.11 KB
patch
obsolete
>From dd9d340be44f1737e1538cf4e38a6f89888e9205 Mon Sep 17 00:00:00 2001 >From: Stephane D'Alu <sdalu@sdalu.com> >Date: Fri, 27 Oct 2023 11:12:13 +0200 >Subject: [PATCH 07/73] games/libretro-desmume: new port > >--- > games/Makefile | 1 + > games/libretro-desmume/Makefile | 39 +++++++++++++++++++ > games/libretro-desmume/distinfo | 3 ++ > ...c_libretro-common_features_features__cpu.c | 11 ++++++ > games/libretro-desmume/pkg-descr | 1 + > 5 files changed, 55 insertions(+) > create mode 100644 games/libretro-desmume/Makefile > create mode 100644 games/libretro-desmume/distinfo > create mode 100644 games/libretro-desmume/files/patch-desmume_src_libretro-common_features_features__cpu.c > create mode 100644 games/libretro-desmume/pkg-descr > >diff --git a/games/Makefile b/games/Makefile >index 2f83a37aaf0e..e4080f709c4a 100644 >--- a/games/Makefile >+++ b/games/Makefile >@@ -513,6 +513,7 @@ > SUBDIR += libretro-boom3 > SUBDIR += libretro-cap32 > SUBDIR += libretro-core-info >+ SUBDIR += libretro-desmume > SUBDIR += libretro-desmume2015 > SUBDIR += libretro-dosbox > SUBDIR += libretro-emux >diff --git a/games/libretro-desmume/Makefile b/games/libretro-desmume/Makefile >new file mode 100644 >index 000000000000..2f59797b8846 >--- /dev/null >+++ b/games/libretro-desmume/Makefile >@@ -0,0 +1,39 @@ >+PORTNAME= libretro-desmume >+DISTVERSION= 0.20231006 >+CATEGORIES= games >+ >+MAINTAINER= sdalu@sdalu.com >+COMMENT= Port of Desmume to libretro >+WWW= https://github.com/libretro/desmume >+ >+LICENSE= GPLv2 >+LICENSE_FILE= ${WRKSRC}/license.txt >+ >+ONLY_FOR_ARCHS= amd64 i386 >+ONLY_FOR_ARCHS_REASON= fails to compile: invokes x86 assembler >+ >+USES= gmake gl localbase:ldflags >+USE_LDCONFIG= yes >+USE_GL= gl >+ >+USE_GITHUB= yes >+GH_ACCOUNT= libretro >+GH_PROJECT= desmume >+GH_TAGNAME= 4ee1bb1d6a6c9695baea49d0c2dff34c10187502 >+ >+PLIST_FILES= lib/libretro/desmume_libretro.so >+ >+MAKEFILE= Makefile.libretro >+BUILD_WRKSRC= ${WRKSRC}/desmume/src/frontend/libretro >+ >+.include <bsd.port.options.mk> >+ >+.if ${ARCH} != aarch64 && ${ARCH} != amd64 && !${ARCH:Marmv*} && ${ARCH} != i386 >+MAKE_ENV+= DESMUME_JIT=0 >+.endif >+ >+do-install: >+ ${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro >+ ${INSTALL_LIB} ${WRKSRC}/desmume/src/frontend/libretro/desmume_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro >+ >+.include <bsd.port.mk> >diff --git a/games/libretro-desmume/distinfo b/games/libretro-desmume/distinfo >new file mode 100644 >index 000000000000..52b825233ed5 >--- /dev/null >+++ b/games/libretro-desmume/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1698314795 >+SHA256 (libretro-desmume-0.20231006-4ee1bb1d6a6c9695baea49d0c2dff34c10187502_GH0.tar.gz) = 2cc19bb94521bcc717f25fec2c6fc26af7660748573bcfc78d3fbe6e3216ded9 >+SIZE (libretro-desmume-0.20231006-4ee1bb1d6a6c9695baea49d0c2dff34c10187502_GH0.tar.gz) = 11415777 >diff --git a/games/libretro-desmume/files/patch-desmume_src_libretro-common_features_features__cpu.c b/games/libretro-desmume/files/patch-desmume_src_libretro-common_features_features__cpu.c >new file mode 100644 >index 000000000000..288dbb0b252d >--- /dev/null >+++ b/games/libretro-desmume/files/patch-desmume_src_libretro-common_features_features__cpu.c >@@ -0,0 +1,11 @@ >+--- desmume/src/libretro-common/features/features_cpu.c.orig 2021-02-16 18:16:47 UTC >++++ desmume/src/libretro-common/features/features_cpu.c >+@@ -144,7 +144,7 @@ retro_perf_tick_t cpu_features_get_perf_counter(void) >+ tv_sec = (long)((ularge.QuadPart - epoch) / 10000000L); >+ tv_usec = (long)(system_time.wMilliseconds * 1000); >+ time_ticks = (1000000 * tv_sec + tv_usec); >+-#elif defined(__linux__) || defined(__QNX__) || defined(__MACH__) >++#elif defined(_POSIX_MONOTONIC_CLOCK) || defined(__QNX__) || defined(ANDROID) || defined(__MACH__) || defined(__PSL1GHT__) >+ struct timespec tv = {0}; >+ if (ra_clock_gettime(CLOCK_MONOTONIC, &tv) == 0) >+ time_ticks = (retro_perf_tick_t)tv.tv_sec * 1000000000 + >diff --git a/games/libretro-desmume/pkg-descr b/games/libretro-desmume/pkg-descr >new file mode 100644 >index 000000000000..fb10fa0338b7 >--- /dev/null >+++ b/games/libretro-desmume/pkg-descr >@@ -0,0 +1 @@ >+Port of Desmume to libretro. >-- >2.42.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 274647
:
245871
|
245899
|
245900
|
245901
|
245902
|
245903
|
245905
|
245906
|
245914
|
245915
|
245916
|
245918
|
245919
|
245925
|
245942
|
245943
|
245944
|
245950
|
245951
|
245996
|
246160
|
246168