[134295] trunk/dports/gnome/gtk2/Portfile

jmr at macports.org jmr at macports.org
Sat Mar 21 12:41:35 PDT 2015


Revision: 134295
          https://trac.macports.org/changeset/134295
Author:   jmr at macports.org
Date:     2015-03-21 12:41:35 -0700 (Sat, 21 Mar 2015)
Log Message:
-----------
gtk2: don't use unsupported sysctl on old OS versions (#25873)

Modified Paths:
--------------
    trunk/dports/gnome/gtk2/Portfile

Modified: trunk/dports/gnome/gtk2/Portfile
===================================================================
--- trunk/dports/gnome/gtk2/Portfile	2015-03-21 17:56:32 UTC (rev 134294)
+++ trunk/dports/gnome/gtk2/Portfile	2015-03-21 19:41:35 UTC (rev 134295)
@@ -147,7 +147,14 @@
     configure.env-append CUPS_CONFIG=${cups}
 
     # Find architectures which will not run on build platform.
-    set cpu64bit_capable [sysctl hw.cpu64bit_capable]
+    if {${os.major} >= 9} {
+        set cpu64bit_capable [sysctl hw.cpu64bit_capable]
+    } elseif {(![catch {sysctl hw.optional.x86_64} is_x86_64] && $is_x86_64)
+            || (![catch {sysctl hw.optional.64bitops} is_ppc64] && $is_ppc64)} {
+        set cpu64bit_capable 1
+    } else {
+        set cpu64bit_capable 0
+    }
     if {${os.arch} eq "i386"} {
         set cross_archs ppc64
         if {${os.major} >= 10} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150321/2041893f/attachment.html>


More information about the macports-changes mailing list