pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/libretro-mupen64plus Fix build on NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/00dfd9ef567d
branches:  trunk
changeset: 646237:00dfd9ef567d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Feb 05 17:42:06 2015 +0000

description:
Fix build on NetBSD.

diffstat:

 emulators/libretro-mupen64plus/distinfo                                  |   3 +-
 emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h |  15 ++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r e29ab6e7d171 -r 00dfd9ef567d emulators/libretro-mupen64plus/distinfo
--- a/emulators/libretro-mupen64plus/distinfo   Thu Feb 05 17:34:09 2015 +0000
+++ b/emulators/libretro-mupen64plus/distinfo   Thu Feb 05 17:42:06 2015 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2015/02/04 23:02:12 jmcneill Exp $
+$NetBSD: distinfo,v 1.2 2015/02/05 17:42:06 wiz Exp $
 
 SHA1 (mupen64plus-libretro-20150204.zip) = 85599e878094348163d68fdd704c5bc7edf78e44
 RMD160 (mupen64plus-libretro-20150204.zip) = 6c08b86834a8f6d548c85eaa34ca38e779b6a0d2
 Size (mupen64plus-libretro-20150204.zip) = 3286777 bytes
+SHA1 (patch-glide2gl_src_Glide64_Util.h) = d3bceef0ba895af8309bfe9435d701d76ca31a27
diff -r e29ab6e7d171 -r 00dfd9ef567d emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-mupen64plus/patches/patch-glide2gl_src_Glide64_Util.h  Thu Feb 05 17:42:06 2015 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-glide2gl_src_Glide64_Util.h,v 1.1 2015/02/05 17:42:06 wiz Exp $
+
+bswap32 is defined in the included headers on NetBSD.
+
+--- glide2gl/src/Glide64/Util.h.orig   2015-02-04 18:18:28.000000000 +0000
++++ glide2gl/src/Glide64/Util.h
+@@ -56,7 +56,7 @@ float ScaleZ(float z);
+ #if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
+ #include <stdlib.h>
+ #define bswap32(x) _byteswap_ulong(x)
+-#else
++#elif !defined(__NetBSD__)
+ static inline uint32_t bswap32(uint32_t val)
+ {
+    return (((val & 0xff000000) >> 24) |



Home | Main Index | Thread Index | Old Index