Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Feb 2021 22:20:14 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r565465 - in head/games/libretro-desmume2015: . files
Message-ID:  <202102162220.11GMKEwB058327@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Feb 16 22:20:14 2021
New Revision: 565465
URL: https://svnweb.freebsd.org/changeset/ports/565465

Log:
  games/libretro-desmume2015: fix build on non-x86 / ARM
  
  JIT is only for x86 and ARM.

Added:
  head/games/libretro-desmume2015/files/patch-desmume_src_libretro-common_features_features__cpu.c   (contents, props changed)
Modified:
  head/games/libretro-desmume2015/Makefile

Modified: head/games/libretro-desmume2015/Makefile
==============================================================================
--- head/games/libretro-desmume2015/Makefile	Tue Feb 16 21:44:17 2021	(r565464)
+++ head/games/libretro-desmume2015/Makefile	Tue Feb 16 22:20:14 2021	(r565465)
@@ -24,6 +24,12 @@ PLIST_FILES=	lib/libretro/desmume2015_libretro.so
 
 MAKEFILE=	Makefile.freebsd
 
+.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/desmume2015_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;

Added: head/games/libretro-desmume2015/files/patch-desmume_src_libretro-common_features_features__cpu.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/libretro-desmume2015/files/patch-desmume_src_libretro-common_features_features__cpu.c	Tue Feb 16 22:20:14 2021	(r565465)
@@ -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 +



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102162220.11GMKEwB058327>