Ticket #42160: Portfile.diff
File Portfile.diff, 5.1 KB (added by Veence (Vincent), 11 years ago) |
---|
-
Portfile
old new 50 50 51 51 worksrcdir ATLAS 52 52 53 compiler.blacklist macports-clang-3. 1 macports-clang-3.0\54 macports-clang- 2.953 compiler.blacklist macports-clang-3.2 macports-clang-3.1 \ 54 macports-clang-3.0 macports-clang-2.9 55 55 56 56 set gcc_version 0 57 57 set use_clang "" 58 58 59 variant gcc48 conflicts gcc46 gcc47 clang mpclang33 perf \ 59 variant gcc49 conflicts gcc47 gcc48 clang mpclang34 perf\ 60 description {build using macports-gcc-4.9} { 61 62 configure.compiler macports-gcc-4.9 63 } 64 65 if {[variant_isset gcc49]} { 66 67 set gcc_version 49 68 set use_clang "" 69 70 } 71 72 variant gcc48 conflicts gcc47 gcc49 clang mpclang34 perf \ 60 73 description {build using macports-gcc-4.8} { 61 74 62 75 configure.compiler macports-gcc-4.8 … … 68 81 set use_clang "" 69 82 } 70 83 71 variant gcc47 conflicts gcc4 6 gcc48 clang mpclang33perf \84 variant gcc47 conflicts gcc48 gcc49 clang mpclang34 perf \ 72 85 description {build using macports-gcc-4.7} { 73 86 74 87 configure.compiler macports-gcc-4.7 … … 80 93 set use_clang "" 81 94 } 82 95 83 variant gcc46 conflicts gcc47 gcc48 clang mpclang33 perf\84 description {build using macports-gcc-4.6} {85 86 configure.compiler macports-gcc-4.687 }88 89 if {[variant_isset gcc46]} {90 91 set gcc_version 4692 set use_clang ""93 94 }95 96 96 variant clang conflicts gcc4 6 gcc47 gcc48 mpclang33\97 variant clang conflicts gcc47 gcc48 gcc49 mpclang34 \ 97 98 description {use XCode clang and gfortran} { 98 99 99 100 pre-fetch { … … 112 113 set gcc_version 0 113 114 } 114 115 115 variant mpclang3 3 conflicts gcc46 gcc47 gcc48clang perf\116 description {use mp-clang-3. 3and gfortran} {116 variant mpclang34 conflicts gcc47 gcc48 gcc49 clang perf\ 117 description {use mp-clang-3.4 and gfortran} { 117 118 118 configure.compiler macports-clang-3. 3119 configure.compiler macports-clang-3.4 119 120 } 120 121 121 if {[variant_isset mpclang3 3]} {122 if {[variant_isset mpclang34]} { 122 123 123 set use_clang "3 3"124 set use_clang "34" 124 125 set gcc_version 0 125 126 } 126 127 127 variant perf conflicts gcc4 6 gcc47 gcc48 mpclang33clang \128 description {Uses clang-mp-3. 3 for C and dragonegg-3.3for Fortran} {128 variant perf conflicts gcc47 gcc48 gcc49 mpclang34 clang \ 129 description {Uses clang-mp-3.4 for C and dragonegg-3.4 for Fortran} { 129 130 130 configure.compiler macports-clang-3. 3131 depends_build-append port:dragonegg-3. 3-gcc-4.8132 configure.f77 ${prefix}/bin/dragonegg-3. 3-gfortran-mp-4.8131 configure.compiler macports-clang-3.4 132 depends_build-append port:dragonegg-3.4-gcc-4.8 133 configure.f77 ${prefix}/bin/dragonegg-3.4-gfortran-mp-4.8 133 134 134 135 set clang_flags "-O3 -fPIC -fomit-frame-pointer" 135 136 set gcc_flags "${clang_flags} \ 136 -specs=${prefix}/libexec/dragonegg/llvm3 3gcc48-integrated-as.specs"137 -specs=${prefix}/libexec/dragonegg/llvm34gcc48-integrated-as.specs" 137 138 } 138 139 139 140 if {[variant_isset perf]} { 140 141 141 set use_clang "3 3"142 set use_clang "34" 142 143 set gcc_version 48 143 144 } 144 145 … … 178 179 } 179 180 180 181 # If none of the above variants is chosen, make gcc47 the default for 181 # up to SSE4.2 (Core i1) capable processors, and mp-clang-3.3for newer182 # up to SSE4.2 (Core i1) capable processors, and XCode-clang for newer 182 183 183 if {![variant_isset gcc4 6] && ![variant_isset gcc47] && \184 ![variant_isset gcc4 8] && ![variant_isset clang] && \185 ![variant_isset perf] && ![variant_isset mpclang3 3]} {184 if {![variant_isset gcc47] && ![variant_isset gcc48] && \ 185 ![variant_isset gcc49] && ![variant_isset clang] && \ 186 ![variant_isset perf] && ![variant_isset mpclang34]} { 186 187 187 188 if {${has_avx} == "no"} { 188 189 … … 192 193 set use_clang "" 193 194 } else { 194 195 195 # Defaults to clang -mp-3.3196 default_variants + mpclang33196 # Defaults to clang 197 default_variants +clang 197 198 set gcc_version 0 198 set use_clang " 33"199 set use_clang "XCode" 199 200 } 200 201 } 201 202 … … 432 433 433 434 # Output the F77 selected compiler 434 435 if {[variant_isset perf]} { 435 ui_msg "Using dragonegg-3. 3-gfortran-mp-4.8 as Fortran compiler."436 ui_msg "Using dragonegg-3.4-gfortran-mp-4.8 as Fortran compiler." 436 437 } else { 437 438 ui_msg "Selected F77 compiler: gfortran${gcc_version}" 438 439 } … … 478 479 479 480 # AVX stuff. GCC compilers cannot use AVX instruction set because the 480 481 # system as(1) is outdated 481 # Clang 3. 3is fine482 # Clang 3.4 is fine 482 483 483 484 if {${has_avx} == "yes" && ${use_clang} == ""} { 484 485