Ticket #41554: patch-Portfile-gsl.diff

File patch-Portfile-gsl.diff, 1.4 KB (added by NicosPavlov, 10 years ago)
  • Portfile

     
    66name                gsl
    77conflicts           gsl-devel
    88version             1.16
    9 revision            1
     9revision            2
    1010categories          math science
    1111maintainers         openmaintainer gmail.com:dtakahashi42
    1212license             GPL-3+
     
    8484    configure.cflags-append     "-ftree-vectorize -O3"
    8585}
    8686
    87 platform darwin i386 {
     87platform darwin {
    8888    if { [variant_isset optimize] } {
    89         if { [variant_isset gcc43] } {
     89        if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc45] &&
     90            ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48]} {
     91            #Compiler is by default clang, with optimize variant. If clang is not new
     92            #enough, we use clang-3.3
     93            if { ![catch {sysctl hw.optional.avx1_0} has_avx] && $has_avx == 1 &&
     94                [vercmp $xcodeversion 5.0] < 0} {
     95                configure.compiler      macports-clang-3.3
     96            }
    9097            configure.cflags-append "-march=native"
    91         } elseif { [variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46] || [variant_isset gcc47] } {
     98        } else {
    9299            # Currently, gcc cannot compile AVX instructions on OSX
    93100            configure.cflags-append "-march=native -mno-avx"
    94101        }