diff --git a/ports/science/miriad/Portfile b/ports/science/miriad/Portfile
index 84077d5..c3a2586 100644
a
|
b
|
if {[variant_isset carma]} { |
48 | 48 | } |
49 | 49 | |
50 | 50 | # We need Fortran support, which the Apple version of GCC doesn't offer. |
51 | | # So we force the use of a specified MacPorts-built GCC. |
| 51 | # So we force the use of a specified MacPorts-built GCC. Some users want |
| 52 | # to build with better-optimizing proprietary compilers, which we allow |
| 53 | # via the gcc_select mechanism. |
52 | 54 | |
53 | | variant gcc43 conflicts gcc44 description {build with gcc 4.3} {} |
54 | | variant gcc44 conflicts gcc43 description {build with gcc 4.4} {} |
| 55 | variant gcc43 conflicts gcc44 gccselect description {build with gcc 4.3} {} |
| 56 | variant gcc44 conflicts gcc43 gccselect description {build with gcc 4.4} {} |
| 57 | variant gccselect conflicts gcc43 gcc44 \ |
| 58 | description {build with compilers chosen via gcc_select - experts only} {} |
55 | 59 | |
56 | 60 | if {[variant_isset gcc43]} { |
57 | 61 | set compilerport gcc43 |
58 | 62 | set compilerident macports-gcc-4.3 |
| 63 | } elseif {[variant_isset gccselect]} { |
| 64 | set compilerport gcc_select |
| 65 | set compilerident use-gcc-select |
59 | 66 | } else { |
60 | 67 | set compilerport gcc44 |
61 | 68 | set compilerident macports-gcc-4.4 |
… |
… |
worksrcdir ${name}-${relver} |
92 | 99 | configure.args --bindir=${prefix}/libexec/miriad \ |
93 | 100 | --with-telescope=${thescope} \ |
94 | 101 | --disable-docs |
95 | | configure.compiler ${compilerident} |
| 102 | |
| 103 | if {${compilerident} != "use-gcc-select"} { |
| 104 | configure.compiler ${compilerident} |
| 105 | } else { |
| 106 | # Setting the compiler to vanilla "gcc" prevents MacPorts from |
| 107 | # trying to get fancy with the flags, which probably won't work |
| 108 | # with the user's special compiler. |
| 109 | configure.compiler gcc |
| 110 | configure.cc "${prefix}/bin/gcc" |
| 111 | configure.cpp "${prefix}/bin/cpp" |
| 112 | configure.cxx "${prefix}/bin/g++" |
| 113 | configure.f77 "${prefix}/bin/gfortran" |
| 114 | configure.fc "${prefix}/bin/gfortran" |
| 115 | configure.f90 "${prefix}/bin/gfortran" |
| 116 | } |
96 | 117 | |
97 | 118 | # The telescope configuration is important, so make sure the user is |
98 | 119 | # told which setup is being used. |