Ticket #40592: Portfile_avx.diff

File Portfile_avx.diff, 2.3 KB (added by NicosPavlov, 11 years ago)
  • Portfile

    old new  
    2323checksums           rmd160  5f08d211f20a46c77eda4ff212201e684a2baf14 \
    2424                    sha256  048986f4e0a8d480c5e6d439915738f3298f2629d6a399a1ddb16e1629b07901
    2525
    26 variant gcc45 conflicts gcc46 gcc47 gcc48 gcc49 \
     26variant gcc45 conflicts gcc46 gcc47 gcc48 gcc49 clang \
    2727    description "Use Gcc45 as compiler" {
    2828    configure.compiler  macports-gcc-4.5
    2929}
    3030
    31 variant gcc46 conflicts gcc45 gcc47 gcc48 gcc49 \
     31variant gcc46 conflicts gcc45 gcc47 gcc48 gcc49 clang \
    3232    description "Use Gcc46 as compiler" {
    3333    configure.compiler  macports-gcc-4.6
    3434}
    3535
    36 variant gcc47 conflicts gcc45 gcc46 gcc48 gcc49 \
     36variant gcc47 conflicts gcc45 gcc46 gcc48 gcc49 clang \
    3737    description "Use Gcc47 as compiler" {
    3838    configure.compiler  macports-gcc-4.7
    3939}
    4040
    41 variant gcc48 conflicts gcc45 gcc46 gcc47 gcc49 \
     41variant gcc48 conflicts gcc45 gcc46 gcc47 gcc49 clang \
    4242    description "Use Gcc48 as compiler" {
    4343    configure.compiler  macports-gcc-4.8
    4444}
    4545
    46 variant gcc49 conflicts gcc45 gcc46 gcc47 gcc48 \
     46variant gcc49 conflicts gcc45 gcc46 gcc47 gcc48 clang \
    4747    description "Use Gcc49 as compiler" {
    4848    configure.compiler  macports-gcc-4.9
    4949}
    5050
     51variant clang conflicts gcc45 gcc46 gcc47 gcc48 gcc49 \
     52    description "Use Clang as compiler" {
     53    configure.compiler      macports-clang-3.3
     54    #Also need gcc for compiling fortran code
     55    depends_build-append    port:gcc48
     56    configure.fc            ${prefix}/bin/gfortran-mp-4.8
     57}
     58
    5159if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47] && \
    52     ![variant_isset gcc48] && ![variant_isset gcc49]} {
     60    ![variant_isset gcc48] && ![variant_isset gcc49] && ![variant_isset clang]} {
    5361    default_variants +gcc48
    5462}
    5563
     
    7886            if {![variant_isset lapack]} {
    7987                puts $makeINC "NO_LAPACK = 1"
    8088            }
     89            if {![variant_isset clang]} {
     90                puts $makeINC "NO_AVX = 1"
     91            }
    8192            close $makeINC
    8293        }
    8394    } else {
     
    99110        if {![variant_isset lapack]} {
    100111            puts $makeINC "NO_LAPACK = 1"
    101112        }
     113        if {![variant_isset clang]} {
     114            puts $makeINC "NO_AVX = 1"
     115        }
    102116        close $makeINC
    103117    }
    104118}