pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/bsnes bsnes: Check standard defines from <sy...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa8fc88d0c9a
branches:  trunk
changeset: 440857:fa8fc88d0c9a
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Oct 20 12:21:18 2020 +0000

description:
bsnes: Check standard defines from <sys/endian.h>

Should let this build on NetBSD/aarch64.

diffstat:

 emulators/bsnes/distinfo                          |   3 +-
 emulators/bsnes/patches/patch-nall_intrinsics.hpp |  25 +++++++++++++++++++++++
 2 files changed, 27 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r ffd7b7d0df86 -r fa8fc88d0c9a emulators/bsnes/distinfo
--- a/emulators/bsnes/distinfo  Tue Oct 20 12:00:26 2020 +0000
+++ b/emulators/bsnes/distinfo  Tue Oct 20 12:21:18 2020 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2020/10/03 08:40:56 nia Exp $
+$NetBSD: distinfo,v 1.2 2020/10/20 12:21:18 nia Exp $
 
 SHA1 (bsnes-115.tar.gz) = 3123e1e58d16c77f85fe2bf5e3a2681b83c63e20
 RMD160 (bsnes-115.tar.gz) = 020291f3116197c9900f805f29eb973d76bde664
 SHA512 (bsnes-115.tar.gz) = 80b993bd6ab6f3e4772e97cdce504ea4e511bc09d551d7ad19a42c1676880645adb3b286bf803c715f5b0f6e2c410cea73845bcb7e83089ebb59111eaa3da5b3
 Size (bsnes-115.tar.gz) = 4145996 bytes
 SHA1 (patch-bsnes_GNUmakefile) = 61ac57779404771b706eb94c7dac01b0acc963e6
+SHA1 (patch-nall_intrinsics.hpp) = 641999cb8b261fe65f786f70d0aed6ffa92ffb0b
diff -r ffd7b7d0df86 -r fa8fc88d0c9a emulators/bsnes/patches/patch-nall_intrinsics.hpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bsnes/patches/patch-nall_intrinsics.hpp Tue Oct 20 12:21:18 2020 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-nall_intrinsics.hpp,v 1.1 2020/10/20 12:21:19 nia Exp $
+
+Use standard bits from endian.h.
+
+Fixes building on NetBSD/aarch64.
+
+--- nall/intrinsics.hpp.orig   2020-03-03 10:56:48.000000000 +0000
++++ nall/intrinsics.hpp
+@@ -159,10 +159,14 @@ namespace nall {
+ 
+ namespace nall {
+ 
+-#if (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && __BYTE_ORDER == __LITTLE_ENDIAN) || defined(__LITTLE_ENDIAN__) || defined(__i386__) || defined(__amd64__) || defined(_M_IX86) || 
defined(_M_AMD64)
++#if (defined(__BYTE_ORDER) && defined(__LITTLE_ENDIAN) && __BYTE_ORDER == __LITTLE_ENDIAN) || \
++    (defined(BYTE_ORDER) && defined(LITTLE_ENDIAN) && BYTE_ORDER == LITTLE_ENDIAN) || \
++    defined(__LITTLE_ENDIAN__) || defined(__i386__) || defined(__amd64__) || defined(_M_IX86) || defined(_M_AMD64)
+   #define ENDIAN_LSB
+   constexpr auto endian() -> Endian { return Endian::LSB; }
+-#elif (defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && __BYTE_ORDER == __BIG_ENDIAN) || defined(__BIG_ENDIAN__) || defined(__powerpc__) || defined(_M_PPC)
++#elif (defined(__BYTE_ORDER) && defined(__BIG_ENDIAN) && __BYTE_ORDER == __BIG_ENDIAN) || \
++    (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN) || \
++    defined(__BIG_ENDIAN__) || defined(__powerpc__) || defined(_M_PPC)
+   #define ENDIAN_MSB
+   constexpr auto endian() -> Endian { return Endian::MSB; }
+ #else



Home | Main Index | Thread Index | Old Index