Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Aug 2020 16:34:02 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r546192 - in branches/2020Q3/games/libretro-fbneo: . files
Message-ID:  <202008251634.07PGY2px072518@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Aug 25 16:34:02 2020
New Revision: 546192
URL: https://svnweb.freebsd.org/changeset/ports/546192

Log:
  MFH: r546191
  
  games/libretro-fbneo: fix build on powerpc*
  
  Merge upstream patch to solve:
  undefined reference to __mftb()
  
  and use newer GCC to solve:
  cc1: error: unrecognized command line option "-Wno-pedantic"cc1: error: unrecognized command line option "-Wno-pedantic"
  
  Approved by:	portmgr (fix build blanket)

Added:
  branches/2020Q3/games/libretro-fbneo/files/patch-src_burner_libretro_libretro-common_features_features__cpu.c
     - copied unchanged from r546191, head/games/libretro-fbneo/files/patch-src_burner_libretro_libretro-common_features_features__cpu.c
Modified:
  branches/2020Q3/games/libretro-fbneo/Makefile
Directory Properties:
  branches/2020Q3/   (props changed)

Modified: branches/2020Q3/games/libretro-fbneo/Makefile
==============================================================================
--- branches/2020Q3/games/libretro-fbneo/Makefile	Tue Aug 25 16:33:06 2020	(r546191)
+++ branches/2020Q3/games/libretro-fbneo/Makefile	Tue Aug 25 16:34:02 2020	(r546192)
@@ -12,7 +12,7 @@ LICENSE_NAME=	FBNeo
 LICENSE_FILE=	${WRKSRC}/src/license.txt
 LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
 
-USES=		gmake gl
+USES=		compiler:c11 gmake gl
 USE_LDCONFIG=	yes
 USE_GL=		gl
 

Copied: branches/2020Q3/games/libretro-fbneo/files/patch-src_burner_libretro_libretro-common_features_features__cpu.c (from r546191, head/games/libretro-fbneo/files/patch-src_burner_libretro_libretro-common_features_features__cpu.c)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ branches/2020Q3/games/libretro-fbneo/files/patch-src_burner_libretro_libretro-common_features_features__cpu.c	Tue Aug 25 16:34:02 2020	(r546192, copy of r546191, head/games/libretro-fbneo/files/patch-src_burner_libretro_libretro-common_features_features__cpu.c)
@@ -0,0 +1,20 @@
+--- src/burner/libretro/libretro-common/features/features_cpu.c.orig	2020-08-25 12:19:30 UTC
++++ src/burner/libretro/libretro-common/features/features_cpu.c
+@@ -167,7 +167,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 +
+@@ -181,7 +181,7 @@ retro_perf_tick_t cpu_features_get_perf_counter(void)
+    time_ticks = (retro_perf_tick_t)a | ((retro_perf_tick_t)d << 32);
+ #elif defined(__ARM_ARCH_6__)
+    __asm__ volatile( "mrc p15, 0, %0, c9, c13, 0" : "=r"(time_ticks) );
+-#elif defined(__CELLOS_LV2__) || defined(_XBOX360) || defined(__powerpc__) || defined(__ppc__) || defined(__POWERPC__)
++#elif defined(__CELLOS_LV2__) || defined(_XBOX360)
+    time_ticks = __mftb();
+ #elif defined(GEKKO)
+    time_ticks = gettime();



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