pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/retroarch retroarch: Use clock_gettime on BSD.
details: https://anonhg.NetBSD.org/pkgsrc/rev/174174a31058
branches: trunk
changeset: 334185:174174a31058
user: nia <nia%pkgsrc.org@localhost>
date: Mon May 20 12:42:40 2019 +0000
description:
retroarch: Use clock_gettime on BSD.
Should unbreak architectures where there is no dirty __asm__ fallback.
Possibly fixes something when the TSC is an unreliable time source.
Bump PKGREVISION.
diffstat:
emulators/retroarch/Makefile | 4 +-
emulators/retroarch/distinfo | 3 +-
emulators/retroarch/patches/patch-libretro-common_features_features__cpu.c | 23 ++++++++++
3 files changed, 27 insertions(+), 3 deletions(-)
diffs (56 lines):
diff -r c3655a0a15b8 -r 174174a31058 emulators/retroarch/Makefile
--- a/emulators/retroarch/Makefile Mon May 20 12:32:46 2019 +0000
+++ b/emulators/retroarch/Makefile Mon May 20 12:42:40 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2019/05/19 23:13:03 nia Exp $
+# $NetBSD: Makefile,v 1.25 2019/05/20 12:42:40 nia Exp $
PKGNAME= retroarch-${RETROARCH_VERSION}
DISTNAME= RetroArch-${RETROARCH_VERSION}
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/RetroArch/releases/download/v${RETROARCH_VERSION}/}
EXTRACT_SUFX= .tar.xz
diff -r c3655a0a15b8 -r 174174a31058 emulators/retroarch/distinfo
--- a/emulators/retroarch/distinfo Mon May 20 12:32:46 2019 +0000
+++ b/emulators/retroarch/distinfo Mon May 20 12:42:40 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2019/05/18 14:58:53 nia Exp $
+$NetBSD: distinfo,v 1.15 2019/05/20 12:42:40 nia Exp $
SHA1 (RetroArch-1.7.7.tar.xz) = 32288d3cc23319280c80968e9f0446e00f24db19
RMD160 (RetroArch-1.7.7.tar.xz) = e019c8a6486706e076878adc0510178e5c8d5d81
@@ -9,4 +9,5 @@
SHA1 (patch-configuration.c) = 58873db839f8f0ed2e011d4c4c75b00e6293c239
SHA1 (patch-frontend_drivers_platform__unix.c) = e81ba53af2bdd4cecc4007cc9556f06446bf3b3f
SHA1 (patch-input_include_xfree86__keycodes.h) = cd3b59122e9075a96fccb01bce2110dfa9cc160e
+SHA1 (patch-libretro-common_features_features__cpu.c) = da4a66b16ef7ca194443a65e4efb8887e6d9bc3e
SHA1 (patch-qb_config.libs.sh) = 0ec6ab7d49cdcd59c5938276517df1ee0212868e
diff -r c3655a0a15b8 -r 174174a31058 emulators/retroarch/patches/patch-libretro-common_features_features__cpu.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/retroarch/patches/patch-libretro-common_features_features__cpu.c Mon May 20 12:42:40 2019 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-libretro-common_features_features__cpu.c,v 1.1 2019/05/20 12:42:40 nia Exp $
+
+Use clock_gettime on BSD.
+
+--- libretro-common/features/features_cpu.c.orig 2019-05-08 06:06:23.000000000 +0000
++++ libretro-common/features/features_cpu.c
+@@ -26,6 +26,7 @@
+ #if defined(_WIN32)
+ #include <direct.h>
+ #else
++#define _POSIX_C_SOURCE 200112
+ #include <unistd.h>
+ #endif
+
+@@ -167,7 +168,7 @@ retro_perf_tick_t cpu_features_get_perf_
+ 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(__linux__) || defined(BSD) || defined(__QNX__) || defined(__MACH__)
+ struct timespec tv = {0};
+ if (ra_clock_gettime(CLOCK_MONOTONIC, &tv) == 0)
+ time_ticks = (retro_perf_tick_t)tv.tv_sec * 1000000000 +
Home |
Main Index |
Thread Index |
Old Index