[137020] trunk/dports/math/gts/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Jun 3 06:34:50 PDT 2015


Revision: 137020
          https://trac.macports.org/changeset/137020
Author:   ryandesign at macports.org
Date:     2015-06-03 06:34:50 -0700 (Wed, 03 Jun 2015)
Log Message:
-----------
gts: on 32-bit machines, include 64-bit architectures in cross_archs

Modified Paths:
--------------
    trunk/dports/math/gts/Portfile

Modified: trunk/dports/math/gts/Portfile
===================================================================
--- trunk/dports/math/gts/Portfile	2015-06-03 05:51:44 UTC (rev 137019)
+++ trunk/dports/math/gts/Portfile	2015-06-03 13:34:50 UTC (rev 137020)
@@ -34,14 +34,24 @@
 
 if {[variant_isset universal]} {
     # Find architectures which will not run on build platform.
+    if {${os.major} >= 9 && [sysctl hw.cpu64bit_capable] == 1} {
+        set cpu64bit_capable yes
+    } else {
+        set cpu64bit_capable no
+    }
     if {${os.arch} eq "i386"} {
+        set cross_archs "ppc64"
         if {${os.major} >= 10} {
-            set cross_archs "ppc ppc64"
-        } else {
-            set cross_archs "ppc64"
+            set cross_archs "ppc ${cross_archs}"
         }
+        if {!${cpu64bit_capable}} {
+            set cross_archs "x86_64 ${cross_archs}"
+        }
     } else {
         set cross_archs "i386 x86_64"
+        if {!${cpu64bit_capable}} {
+            set cross_archs "ppc64 ${cross_archs}"
+        }
     }
     
     set run_arch [lindex ${universal_archs} 0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150603/6700ab06/attachment.html>


More information about the macports-changes mailing list