[81482] trunk/dports/x11/mesa
jeremyhu at macports.org
jeremyhu at macports.org
Sun Jul 31 09:46:59 PDT 2011
Revision: 81482
http://trac.macports.org/changeset/81482
Author: jeremyhu at macports.org
Date: 2011-07-31 09:46:57 -0700 (Sun, 31 Jul 2011)
Log Message:
-----------
mesa: Detect ppc endianness, #30492
Modified Paths:
--------------
trunk/dports/x11/mesa/Portfile
Added Paths:
-----------
trunk/dports/x11/mesa/files/0001-Fix-PPC-detection-on-darwin.patch
trunk/dports/x11/mesa/files/0002-darwin-Use-machine-endian.h-to-determine-endianness.patch
Modified: trunk/dports/x11/mesa/Portfile
===================================================================
--- trunk/dports/x11/mesa/Portfile 2011-07-31 16:13:12 UTC (rev 81481)
+++ trunk/dports/x11/mesa/Portfile 2011-07-31 16:46:57 UTC (rev 81482)
@@ -45,6 +45,10 @@
use_configure no
use_parallel_build yes
+patchfiles \
+ 0001-Fix-PPC-detection-on-darwin.patch \
+ 0002-darwin-Use-machine-endian.h-to-determine-endianness.patch
+
patch.pre_args -p1
build.target default
Added: trunk/dports/x11/mesa/files/0001-Fix-PPC-detection-on-darwin.patch
===================================================================
--- trunk/dports/x11/mesa/files/0001-Fix-PPC-detection-on-darwin.patch (rev 0)
+++ trunk/dports/x11/mesa/files/0001-Fix-PPC-detection-on-darwin.patch 2011-07-31 16:46:57 UTC (rev 81482)
@@ -0,0 +1,31 @@
+From e737a99a6fbafe3ba4b5175eea25d1598dbeb9d8 Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston <jeremyhu at apple.com>
+Date: Sun, 31 Jul 2011 09:21:56 -0700
+Subject: [PATCH 1/2] Fix PPC detection on darwin
+
+Fixes regression introduced by 7004582c1894ede839c44e292b413fe4916d7e9e
+
+Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
+---
+ src/gallium/include/pipe/p_config.h | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
+index eea3d79..803b806 100644
+--- a/src/gallium/include/pipe/p_config.h
++++ b/src/gallium/include/pipe/p_config.h
+@@ -99,9 +99,9 @@
+ #endif
+ #endif
+
+-#if defined(__PPC__)
++#if defined(__ppc__) || defined(__ppc64__) || defined(__PPC__)
+ #define PIPE_ARCH_PPC
+-#if defined(__PPC64__)
++#if defined(__ppc64__) || defined(__PPC64__)
+ #define PIPE_ARCH_PPC_64
+ #endif
+ #endif
+--
+1.7.6
+
Added: trunk/dports/x11/mesa/files/0002-darwin-Use-machine-endian.h-to-determine-endianness.patch
===================================================================
--- trunk/dports/x11/mesa/files/0002-darwin-Use-machine-endian.h-to-determine-endianness.patch (rev 0)
+++ trunk/dports/x11/mesa/files/0002-darwin-Use-machine-endian.h-to-determine-endianness.patch 2011-07-31 16:46:57 UTC (rev 81482)
@@ -0,0 +1,33 @@
+From a99018fbfeea5f860c090c565fcb95708eae866e Mon Sep 17 00:00:00 2001
+From: Jeremy Huddleston <jeremyhu at apple.com>
+Date: Sun, 31 Jul 2011 09:31:48 -0700
+Subject: [PATCH 2/2] darwin: Use machine/endian.h to determine endianness
+
+Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
+---
+ src/gallium/include/pipe/p_config.h | 9 +++++++++
+ 1 files changed, 9 insertions(+), 0 deletions(-)
+
+diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h
+index 803b806..baf6cce 100644
+--- a/src/gallium/include/pipe/p_config.h
++++ b/src/gallium/include/pipe/p_config.h
+@@ -120,6 +120,15 @@
+ # define PIPE_ARCH_BIG_ENDIAN
+ #endif
+
++#elif defined(__APPLE__)
++#include <machine/endian.h>
++
++#if __DARWIN_BYTE_ORDER == __DARWIN_LITTLE_ENDIAN
++# define PIPE_ARCH_LITTLE_ENDIAN
++#elif __DARWIN_BYTE_ORDER == __DARWIN_BIG_ENDIAN
++# define PIPE_ARCH_BIG_ENDIAN
++#endif
++
+ #else
+
+ #if defined(PIPE_ARCH_X86) || defined(PIPE_ARCH_X86_64)
+--
+1.7.6
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110731/74b83e0e/attachment.html>
More information about the macports-changes
mailing list