[63425] trunk/dports/devel/gmp/Portfile

jmr at macports.org jmr at macports.org
Thu Feb 4 12:25:34 PST 2010


Revision: 63425
          http://trac.macports.org/changeset/63425
Author:   jmr at macports.org
Date:     2010-02-04 12:25:31 -0800 (Thu, 04 Feb 2010)
Log Message:
-----------
gmp: work around incorrect detection of some x86_64 CPUs, set ABI for ppc64

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

Modified: trunk/dports/devel/gmp/Portfile
===================================================================
--- trunk/dports/devel/gmp/Portfile	2010-02-04 20:10:00 UTC (rev 63424)
+++ trunk/dports/devel/gmp/Portfile	2010-02-04 20:25:31 UTC (rev 63425)
@@ -55,8 +55,14 @@
 test.target     check
 
 if {![variant_isset universal]} {
-    if {[info exists build_arch] && ${build_arch} == "x86_64"} {
+    if {${build_arch} == "x86_64"} {
         configure.env   ABI=64
+        if {${os.platform} == "darwin"} {
+            # fails to automatically detect that i7 is x86_64 capable
+            configure.args-append --build=core2-apple-darwin${os.major}
+        }
+    } elseif {${build_arch} == "ppc64"} {
+        configure.env   ABI=mode64
     } else {
         configure.env   ABI=32
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100204/7f0017d5/attachment.html>


More information about the macports-changes mailing list