[88509] trunk/dports/lang/apple-gcc42/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Tue Jan 3 13:03:21 PST 2012


Revision: 88509
          http://trac.macports.org/changeset/88509
Author:   jeremyhu at macports.org
Date:     2012-01-03 13:02:56 -0800 (Tue, 03 Jan 2012)
Log Message:
-----------
apple-gcc42: Only add ppc target if on SL or earlier.  This only affects users with hacked up/unsupported SDKs on Lion.  #32750

Modified Paths:
--------------
    trunk/dports/lang/apple-gcc42/Portfile

Modified: trunk/dports/lang/apple-gcc42/Portfile
===================================================================
--- trunk/dports/lang/apple-gcc42/Portfile	2012-01-03 19:12:14 UTC (rev 88508)
+++ trunk/dports/lang/apple-gcc42/Portfile	2012-01-03 21:02:56 UTC (rev 88509)
@@ -162,11 +162,14 @@
 
 set build_targets {i386}
 
-if {[file exists ${developer_dir}/SDKs/MacOSX10.3.9.sdk] ||
-    [file exists ${developer_dir}/SDKs/MacOSX10.4u.sdk] ||
-    [file exists ${developer_dir}/SDKs/MacOSX10.5.sdk] ||
-    ${build_arch} == "ppc"} {
-	lappend build_targets ppc
+# Support for PPC was dropped in Darwin 11 (Mac OS X 10.7)
+if {${os.major} < 11} {
+    if {[file exists ${developer_dir}/SDKs/MacOSX10.3.9.sdk] ||
+            [file exists ${developer_dir}/SDKs/MacOSX10.4u.sdk] ||
+            [file exists ${developer_dir}/SDKs/MacOSX10.5.sdk] ||
+            ${build_arch} == "ppc"} {
+        lappend build_targets ppc
+    }
 }
 
 # TODO: arm?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120103/f36558d6/attachment.html>


More information about the macports-changes mailing list