[106013] trunk/dports/math/atlas/Portfile
vince at macports.org
vince at macports.org
Mon May 13 05:26:09 PDT 2013
Revision: 106013
https://trac.macports.org/changeset/106013
Author: vince at macports.org
Date: 2013-05-13 05:26:09 -0700 (Mon, 13 May 2013)
Log Message:
-----------
Fix AVX processor detection for versions of MacOS < 10.7
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2013-05-13 12:13:25 UTC (rev 106012)
+++ trunk/dports/math/atlas/Portfile 2013-05-13 12:26:09 UTC (rev 106013)
@@ -151,8 +151,9 @@
# AVX or higher?
-if {${os.major} > 10 && \
- ![catch {sysctl hw.optional.avx1_0} result1] && $result1 == 1} {
+if {(${os.major} > 10 && \
+ (![catch {sysctl hw.optional.avx1_0} result1] && $result1 == 1)) ||
+ (![catch {sysctl hw.cpufamily} result2] && $result2 == 1418770316)} {
set has_avx "yes"
} else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130513/36e3f4c5/attachment-0001.html>
More information about the macports-changes
mailing list