# HG changeset patch
# User Sean Farley <sean@farley.io>
# Date 1444516928 25200
# Sat Oct 10 15:42:08 2015 -0700
# Node ID ecc5446d1850f108b81b6d5d517dff23e680c9e2
# Parent d25a9e7248e550692a63b5ae460a2bbc23d407cb
atlas: add gcc5 variant
diff --git a/dports/math/atlas/Portfile b/dports/math/atlas/Portfile
a
|
b
|
checksums atlas3.10.2.tar.bz2 |
52 | 52 | worksrcdir ATLAS |
53 | 53 | |
54 | 54 | set gcc_version 0 |
55 | 55 | set use_clang "" |
56 | 56 | |
57 | | variant gcc49 conflicts gcc47 gcc48 clang mpclang34 perf\ |
| 57 | variant gcc5 conflicts gcc47 gcc48 gcc49 clang mpclang34 perf\ |
| 58 | description {build using macports-gcc-5} { |
| 59 | |
| 60 | configure.compiler macports-gcc-5 |
| 61 | } |
| 62 | |
| 63 | if {[variant_isset gcc5]} { |
| 64 | |
| 65 | set gcc_version 5 |
| 66 | set use_clang "" |
| 67 | |
| 68 | } |
| 69 | |
| 70 | variant gcc49 conflicts gcc47 gcc48 gcc5 clang mpclang34 perf\ |
58 | 71 | description {build using macports-gcc-4.9} { |
59 | 72 | |
60 | 73 | configure.compiler macports-gcc-4.9 |
61 | 74 | } |
62 | 75 | |
… |
… |
if {[variant_isset gcc49]} { |
65 | 78 | set gcc_version 49 |
66 | 79 | set use_clang "" |
67 | 80 | |
68 | 81 | } |
69 | 82 | |
70 | | variant gcc48 conflicts gcc47 gcc49 clang mpclang34 perf \ |
| 83 | variant gcc48 conflicts gcc47 gcc49 gcc5 clang mpclang34 perf \ |
71 | 84 | description {build using macports-gcc-4.8} { |
72 | 85 | |
73 | 86 | configure.compiler macports-gcc-4.8 |
74 | 87 | } |
75 | 88 | |
… |
… |
if {[variant_isset gcc48]} { |
77 | 90 | |
78 | 91 | set gcc_version 48 |
79 | 92 | set use_clang "" |
80 | 93 | } |
81 | 94 | |
82 | | variant gcc47 conflicts gcc48 gcc49 clang mpclang34 perf \ |
| 95 | variant gcc47 conflicts gcc48 gcc49 gcc5 clang mpclang34 perf \ |
83 | 96 | description {build using macports-gcc-4.7} { |
84 | 97 | |
85 | 98 | configure.compiler macports-gcc-4.7 |
86 | 99 | } |
87 | 100 | |
… |
… |
if {[variant_isset gcc47]} { |
90 | 103 | set gcc_version 47 |
91 | 104 | set use_clang "" |
92 | 105 | } |
93 | 106 | |
94 | 107 | |
95 | | variant clang conflicts gcc47 gcc48 gcc49 mpclang34 \ |
| 108 | variant clang conflicts gcc47 gcc48 gcc49 gcc5 mpclang34 \ |
96 | 109 | description {use XCode clang and gfortran} { |
97 | 110 | |
98 | 111 | pre-fetch { |
99 | 112 | if {[vercmp ${xcodeversion} 5.0] < 0} { |
100 | 113 | return -code error "This clang version is not supported.\ |
… |
… |
if {[variant_isset clang]} { |
109 | 122 | |
110 | 123 | set use_clang "XCode" |
111 | 124 | set gcc_version 0 |
112 | 125 | } |
113 | 126 | |
114 | | variant mpclang34 conflicts gcc47 gcc48 gcc49 clang perf\ |
| 127 | variant mpclang34 conflicts gcc47 gcc48 gcc49 gcc5 clang perf\ |
115 | 128 | description {use mp-clang-3.4 and gfortran} { |
116 | 129 | |
117 | 130 | configure.compiler macports-clang-3.4 |
118 | 131 | } |
119 | 132 | |
… |
… |
if {[variant_isset mpclang34]} { |
121 | 134 | |
122 | 135 | set use_clang "34" |
123 | 136 | set gcc_version 0 |
124 | 137 | } |
125 | 138 | |
126 | | variant perf conflicts gcc47 gcc48 gcc49 mpclang34 clang \ |
| 139 | variant perf conflicts gcc47 gcc48 gcc49 gcc5 mpclang34 clang \ |
127 | 140 | description {Uses clang-mp-3.4 for C and dragonegg-3.4 for Fortran} { |
128 | 141 | |
129 | 142 | if {[vercmp ${xcodeversion} 5.0] < 0} { |
130 | 143 | configure.compiler macports-clang-3.4 |
131 | 144 | } else { |
… |
… |
if {(${os.major} > 10 && \ |
184 | 197 | |
185 | 198 | # If none of the above variants is chosen, make gcc47 the default for |
186 | 199 | # up to SSE4.2 (Core i1) capable processors, and XCode-clang for newer |
187 | 200 | |
188 | 201 | if {![variant_isset gcc47] && ![variant_isset gcc48] && \ |
189 | | ![variant_isset gcc49] && ![variant_isset clang] && \ |
| 202 | ![variant_isset gcc49] && ![variant_isset gcc5] && \ |
| 203 | ![variant_isset clang] && \ |
190 | 204 | ![variant_isset perf] && ![variant_isset mpclang34]} { |
191 | 205 | |
192 | 206 | if {${has_avx} == "no"} { |
193 | 207 | |
194 | 208 | # Defaults to gcc47 |