[82302] trunk/dports/math/atlas/Portfile
jmr at macports.org
jmr at macports.org
Fri Aug 12 06:39:16 PDT 2011
Revision: 82302
http://trac.macports.org/changeset/82302
Author: jmr at macports.org
Date: 2011-08-12 06:39:14 -0700 (Fri, 12 Aug 2011)
Log Message:
-----------
atlas: don't print message about ppc archs when not running any target, and use built-in sysctl
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2011-08-12 13:27:22 UTC (rev 82301)
+++ trunk/dports/math/atlas/Portfile 2011-08-12 13:39:14 UTC (rev 82302)
@@ -160,9 +160,11 @@
# On Leopard, we may warn the user that ppc is not as efficient as ppc64
if {${os.major} == 9} {
- if {[exec sysctl -n hw.cpu64bit_capable] == 1} {
- ui_msg "--- Compiling for G4 arch (ppc) on a G5 (ppc64) machine."
- ui_msg "--- This will lead to inferior performance."
+ pre-configure {
+ if {![catch {sysctl hw.cpu64bit_capable} result] && $result == 1} {
+ ui_msg "--- Compiling for G4 arch (ppc) on a G5 (ppc64) machine."
+ ui_msg "--- This will lead to inferior performance."
+ }
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110812/1f757d8c/attachment-0001.html>
More information about the macports-changes
mailing list