[92447] trunk/dports/devel/cmake/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Sat Apr 28 14:16:35 PDT 2012


Revision: 92447
          https://trac.macports.org/changeset/92447
Author:   jeremyhu at macports.org
Date:     2012-04-28 14:16:33 -0700 (Sat, 28 Apr 2012)
Log Message:
-----------
cmake: Only restrict Rosetta on Leopard (#34056)

Modified Paths:
--------------
    trunk/dports/devel/cmake/Portfile

Modified: trunk/dports/devel/cmake/Portfile
===================================================================
--- trunk/dports/devel/cmake/Portfile	2012-04-28 21:06:53 UTC (rev 92446)
+++ trunk/dports/devel/cmake/Portfile	2012-04-28 21:16:33 UTC (rev 92447)
@@ -37,13 +37,16 @@
 configure.universal_args
 configure.post_args
 
-# Rosetta has some difficulties configuring the ppc slice
-if {${build_arch} == "i386" || ${build_arch} == "x86_64"} {
-    supported_archs i386 x86_64
-} elseif {${build_arch} == "ppc" || ${build_arch} == "ppc64"} {
-    supported_archs ppc ppc64
+# Leopard's Rosetta has some difficulties configuring the ppc slice
+platform darwin 9 {
+    global universal_archs_supported
+    if {${build_arch} == "i386" || ${build_arch} == "x86_64"} {
+        supported_archs i386 x86_64
+    } elseif {${build_arch} == "ppc" || ${build_arch} == "ppc64"} {
+        supported_archs ppc ppc64
+    }
+    set universal_archs_supported ${supported_archs}
 }
-set universal_archs_supported ${supported_archs}
 
 patchfiles	patch-CMakeFindFrameworks.cmake.diff \
 			patch-Modules-FindQt4.cmake.diff \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120428/5df0a05e/attachment-0001.html>


More information about the macports-changes mailing list