Ticket #19719: Portfile.patch

File Portfile.patch, 842 bytes (added by mtalexander (Mike Alexander), 15 years ago)

Patch to make atlas build on a PowerPC machine

  • Portfile

     
    100100
    101101pre-configure {
    102102    # Get some system specific variables for maximum optimization
    103     set cpufreq [expr {[exec sysctl -n hw.cpufrequency]/1000000}]
    104     ui_debug "Setting CPU Frequency for: ${cpufreq}"
    105     configure.args-append -D c -DPentiumCPS=${cpufreq}
     103    if {[string equal "${os.arch}" "powerpc"]} {
     104    } else {
     105        set cpufreq [expr {[exec sysctl -n hw.cpufrequency]/1000000}]
     106        ui_debug "Setting CPU Frequency for: ${cpufreq}"
     107        conifigure.args-append -D c -DPentiumCPS=${cpufreq}
     108    }
    106109
    107110    # first do a 'fake configure' of atlas so we get optimized lapack libraries
    108111    ui_debug "performing fake configure of atlas for optimized lapack"