Ticket #40592: Portfile_avx.diff
File Portfile_avx.diff, 2.3 KB (added by NicosPavlov, 11 years ago) |
---|
-
Portfile
old new 23 23 checksums rmd160 5f08d211f20a46c77eda4ff212201e684a2baf14 \ 24 24 sha256 048986f4e0a8d480c5e6d439915738f3298f2629d6a399a1ddb16e1629b07901 25 25 26 variant gcc45 conflicts gcc46 gcc47 gcc48 gcc49 \26 variant gcc45 conflicts gcc46 gcc47 gcc48 gcc49 clang \ 27 27 description "Use Gcc45 as compiler" { 28 28 configure.compiler macports-gcc-4.5 29 29 } 30 30 31 variant gcc46 conflicts gcc45 gcc47 gcc48 gcc49 \31 variant gcc46 conflicts gcc45 gcc47 gcc48 gcc49 clang \ 32 32 description "Use Gcc46 as compiler" { 33 33 configure.compiler macports-gcc-4.6 34 34 } 35 35 36 variant gcc47 conflicts gcc45 gcc46 gcc48 gcc49 \36 variant gcc47 conflicts gcc45 gcc46 gcc48 gcc49 clang \ 37 37 description "Use Gcc47 as compiler" { 38 38 configure.compiler macports-gcc-4.7 39 39 } 40 40 41 variant gcc48 conflicts gcc45 gcc46 gcc47 gcc49 \41 variant gcc48 conflicts gcc45 gcc46 gcc47 gcc49 clang \ 42 42 description "Use Gcc48 as compiler" { 43 43 configure.compiler macports-gcc-4.8 44 44 } 45 45 46 variant gcc49 conflicts gcc45 gcc46 gcc47 gcc48 \46 variant gcc49 conflicts gcc45 gcc46 gcc47 gcc48 clang \ 47 47 description "Use Gcc49 as compiler" { 48 48 configure.compiler macports-gcc-4.9 49 49 } 50 50 51 variant 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 51 59 if {![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]} { 53 61 default_variants +gcc48 54 62 } 55 63 … … 78 86 if {![variant_isset lapack]} { 79 87 puts $makeINC "NO_LAPACK = 1" 80 88 } 89 if {![variant_isset clang]} { 90 puts $makeINC "NO_AVX = 1" 91 } 81 92 close $makeINC 82 93 } 83 94 } else { … … 99 110 if {![variant_isset lapack]} { 100 111 puts $makeINC "NO_LAPACK = 1" 101 112 } 113 if {![variant_isset clang]} { 114 puts $makeINC "NO_AVX = 1" 115 } 102 116 close $makeINC 103 117 } 104 118 }