summaryrefslogtreecommitdiff
path: root/graphics/MesaLib
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-02-04 10:51:30 +0000
committerobache <obache@pkgsrc.org>2014-02-04 10:51:30 +0000
commit55751378ea5ccec7c59204eb5a423dacb0e0099e (patch)
tree0392c429819537b738fe72fe27ce54a4ad5fb05b /graphics/MesaLib
parentf0d3c988cfb47c594f2e65d0ecc35bc4fcf4181f (diff)
downloadpkgsrc-55751378ea5ccec7c59204eb5a423dacb0e0099e.tar.gz
inlucde machine/endian.h on NetBSD and OpenBSD to detect endian for neigher
x86 nor ppc. PR pkg/48548
Diffstat (limited to 'graphics/MesaLib')
-rw-r--r--graphics/MesaLib/distinfo4
-rw-r--r--graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h19
2 files changed, 16 insertions, 7 deletions
diff --git a/graphics/MesaLib/distinfo b/graphics/MesaLib/distinfo
index 23566a9765e..0fce15157fa 100644
--- a/graphics/MesaLib/distinfo
+++ b/graphics/MesaLib/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.85 2014/01/24 23:00:15 ryoon Exp $
+$NetBSD: distinfo,v 1.86 2014/02/04 10:51:30 obache Exp $
SHA1 (Mesa-7.11.2/MesaGLUT-7.11.2.tar.bz2) = 2e6e730204800a0748b301a5f58b86332699788b
RMD160 (Mesa-7.11.2/MesaGLUT-7.11.2.tar.bz2) = bb2b140375aa13df79fcdb60a7ad0a63622dc531
@@ -11,7 +11,7 @@ SHA1 (patch-bin_mklib) = 8c54bf5382541cab9d971b0e0e627035db1af468
SHA1 (patch-configure.ac) = 0e3f9a1f21ba3a50161312683e9a0ad36f9f3e61
SHA1 (patch-include_GL_gl.h) = a97ab309556c78d818d0b8bd867b5f2412c141b0
SHA1 (patch-src_gallium_auxiliary_util_u__atomic.h) = 68ba9694aca506add2aa96a6892a7227481c2c11
-SHA1 (patch-src_gallium_include_pipe_p__config.h) = 934e2505fe299e1a25da6def2f971fa1302840c0
+SHA1 (patch-src_gallium_include_pipe_p__config.h) = 4e1d651d3cc4fbbffcfdab6cf7d293cef51db5c9
SHA1 (patch-src_glsl_ir__constant__expression.cpp) = 281e281f51afed244b1a29b92942d572fc095124
SHA1 (patch-src_glsl_ralloc.c) = 94fac7a8115d85bc3ee3daeb8ea308c766dc45c1
SHA1 (patch-src_glu_sgi_glu.exports) = 66609d2ea59b02fc46b41311b0042fe4a2da517f
diff --git a/graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h b/graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h
index 846447a8f2e..819b5114203 100644
--- a/graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h
+++ b/graphics/MesaLib/patches/patch-src_gallium_include_pipe_p__config.h
@@ -1,9 +1,9 @@
-$NetBSD: patch-src_gallium_include_pipe_p__config.h,v 1.2 2013/06/10 12:29:54 mef Exp $
+$NetBSD: patch-src_gallium_include_pipe_p__config.h,v 1.3 2014/02/04 10:51:30 obache Exp $
-Adjust Endianness for PowerPC or SunOS.
+Adjust Endianness for PowerPC, NetBSD, OpenBSD or SunOS.
---- Mesa-7.11.2/src/gallium/include/pipe/p_config.h.orig 2011-10-15 09:43:58.000000000 +0900
-+++ src/gallium/include/pipe/p_config.h 2013-06-10 15:35:08.000000000 +0900
+--- src/gallium/include/pipe/p_config.h.orig 2011-10-15 00:43:58.000000000 +0000
++++ src/gallium/include/pipe/p_config.h
@@ -99,7 +99,7 @@
#endif
#endif
@@ -13,10 +13,19 @@ Adjust Endianness for PowerPC or SunOS.
#define PIPE_ARCH_PPC
#if defined(__ppc64__) || defined(__PPC64__)
#define PIPE_ARCH_PPC_64
-@@ -129,6 +129,15 @@
+@@ -129,6 +129,24 @@
# define PIPE_ARCH_BIG_ENDIAN
#endif
++#elif defined(__NetBSD__) || defined(__OpenBSD__)
++#include <sys/endian.h>
++
++#if _BYTE_ORDER == _LITTLE_ENDIAN
++# define PIPE_ARCH_LITTLE_ENDIAN
++#elif _BYTE_ORDER == _BIG_ENDIAN
++# define PIPE_ARCH_BIG_ENDIAN
++#endif
++
+#elif defined(__sun)
+#include <sys/isa_defs.h>
+