[82612] trunk/dports/math/atlas/Portfile
jmr at macports.org
jmr at macports.org
Tue Aug 16 12:08:53 PDT 2011
Revision: 82612
http://trac.macports.org/changeset/82612
Author: jmr at macports.org
Date: 2011-08-16 12:08:53 -0700 (Tue, 16 Aug 2011)
Log Message:
-----------
atlas: use built-in sysctl instead of execing an external process
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2011-08-16 19:05:47 UTC (rev 82611)
+++ trunk/dports/math/atlas/Portfile 2011-08-16 19:08:53 UTC (rev 82612)
@@ -170,8 +170,8 @@
}
-if { (${os.major} == 11 && [exec sysctl -n hw.optional.avx1_0] == 1) || \
- (${os.major} > 8 && [exec sysctl -n hw.cpufamily] == 1418770316) } {
+if { (${os.major} == 11 && [sysctl hw.optional.avx1_0] == 1) || \
+ (${os.major} > 8 && [sysctl hw.cpufamily] == 1418770316) } {
# Corei2 is not supported yet because gcc4.5 does not
# support AVX instructions and gcc4.6 does not compile yet.
# Set CPU to Corei1 instead
@@ -265,7 +265,7 @@
${workpath}/${name}-${version}/CONFIG/src/atlcomp.txt
# Get some system specific variables for maximum optimization
- set cpufreq [expr {[exec sysctl -n hw.cpufrequency]/1000000}]
+ set cpufreq [expr {[sysctl hw.cpufrequency]/1000000}]
ui_debug "Setting CPU Frequency for: ${cpufreq}"
if { ${os.arch} == "powerpc" } {
@@ -332,7 +332,7 @@
post-build {
# We have to manually create the dylib shared libs as the default build does not do this
- set ncpu [exec sysctl -n hw.ncpu]
+ set ncpu [sysctl hw.ncpu]
if { [variant_isset universal] } {
set archs ${universal_archs_to_use}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110816/99e3294c/attachment.html>
More information about the macports-changes
mailing list