Ignore:
Timestamp:
Aug 16, 2011, 7:08:53 PM (8 years ago)
Author:
jmr@…
Message:

atlas: use built-in sysctl instead of execing an external process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/math/atlas/Portfile

    r82585 r82612  
    171171}
    172172
    173 if { (${os.major} == 11 && [exec sysctl -n hw.optional.avx1_0] == 1) || \
    174          (${os.major} > 8 && [exec sysctl -n hw.cpufamily] == 1418770316) } {
     173if { (${os.major} == 11 && [sysctl hw.optional.avx1_0] == 1) || \
     174         (${os.major} > 8 && [sysctl hw.cpufamily] == 1418770316) } {
    175175        # Corei2 is not supported yet because gcc4.5 does not
    176176        # support AVX instructions and gcc4.6 does not compile yet.
     
    266266
    267267        # Get some system specific variables for maximum optimization
    268         set                     cpufreq [expr {[exec sysctl -n hw.cpufrequency]/1000000}]
     268        set                     cpufreq [expr {[sysctl hw.cpufrequency]/1000000}]
    269269        ui_debug        "Setting CPU Frequency for: ${cpufreq}"
    270270
     
    333333  # We have to manually create the dylib shared libs as the default build does not do this
    334334
    335   set ncpu [exec sysctl -n hw.ncpu]
     335  set ncpu [sysctl hw.ncpu]
    336336
    337337        if { [variant_isset universal] } {
Note: See TracChangeset for help on using the changeset viewer.