New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82302


Ignore:
Timestamp:
08/12/11 06:39:14 (4 years ago)
Author:
jmr@…
Message:

atlas: don't print message about ppc archs when not running any target, and use built-in sysctl

File:
1 edited

Legend:

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

    r82290 r82302  
    161161        # On Leopard, we may warn the user that ppc is not as efficient as ppc64 
    162162        if {${os.major} == 9} { 
    163                 if {[exec sysctl -n hw.cpu64bit_capable] == 1} { 
    164                         ui_msg "--- Compiling for G4 arch (ppc) on a G5 (ppc64) machine." 
    165                         ui_msg "--- This will lead to inferior performance." 
     163            pre-configure { 
     164            if {![catch {sysctl hw.cpu64bit_capable} result] && $result == 1} { 
     165                ui_msg "--- Compiling for G4 arch (ppc) on a G5 (ppc64) machine." 
     166                ui_msg "--- This will lead to inferior performance." 
     167            } 
    166168                } 
    167169        } 
Note: See TracChangeset for help on using the changeset viewer.