pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/bsnes



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Oct 20 12:21:19 UTC 2020

Modified Files:
        pkgsrc/emulators/bsnes: distinfo
Added Files:
        pkgsrc/emulators/bsnes/patches: patch-nall_intrinsics.hpp

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

Should let this build on NetBSD/aarch64.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/emulators/bsnes/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/bsnes/patches/patch-nall_intrinsics.hpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/bsnes/distinfo
diff -u pkgsrc/emulators/bsnes/distinfo:1.1 pkgsrc/emulators/bsnes/distinfo:1.2
--- pkgsrc/emulators/bsnes/distinfo:1.1 Sat Oct  3 08:40:56 2020
+++ pkgsrc/emulators/bsnes/distinfo     Tue Oct 20 12:21:18 2020
@@ -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

Added files:

Index: pkgsrc/emulators/bsnes/patches/patch-nall_intrinsics.hpp
diff -u /dev/null pkgsrc/emulators/bsnes/patches/patch-nall_intrinsics.hpp:1.1
--- /dev/null   Tue Oct 20 12:21:19 2020
+++ pkgsrc/emulators/bsnes/patches/patch-nall_intrinsics.hpp    Tue Oct 20 12:21:19 2020
@@ -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