Modified: trunk/dports/science/mpich2/Portfile (94747 => 94748)
--- trunk/dports/science/mpich2/Portfile 2012-06-28 15:32:55 UTC (rev 94747)
+++ trunk/dports/science/mpich2/Portfile 2012-06-28 16:19:43 UTC (rev 94748)
@@ -88,7 +88,8 @@
[ variant_isset gcc43 ] ||
[ variant_isset gcc44 ] ||
[ variant_isset gcc45 ] ||
- [ variant_isset gcc46 ]} {
+ [ variant_isset gcc46 ] ||
+ [ variant_isset gcc47 ]} {
reinplace -E "s|${destroot}||g" ${destroot}${prefix}/bin/mpif77 \
${destroot}${prefix}/bin/mpif90 \
${destroot}${prefix}/etc/mpif77.conf \
@@ -101,37 +102,44 @@
# As MPICH creates compiler wrappers, there are lots of
# variants for what compiler the user would like to wrap.
+variant gcc47 description {
+ Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc47
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 llvm clang {
+ depends_lib-append port:gcc47
+ configure.compiler macports-gcc-4.7
+}
+
variant gcc46 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc46
-} conflicts gcc42 gcc43 gcc44 gcc45 llvm clang {
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc47 llvm clang {
depends_lib-append port:gcc46
configure.compiler macports-gcc-4.6
}
variant gcc45 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45
-} conflicts gcc42 gcc43 gcc44 gcc46 llvm clang {
+} conflicts gcc42 gcc43 gcc44 gcc46 gcc47 llvm clang {
depends_lib-append port:gcc45
configure.compiler macports-gcc-4.5
}
variant gcc44 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44
-} conflicts gcc42 gcc43 gcc45 gcc46 llvm clang {
+} conflicts gcc42 gcc43 gcc45 gcc46 gcc47 llvm clang {
depends_lib-append port:gcc44
configure.compiler macports-gcc-4.4
}
variant gcc43 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43
-} conflicts gcc42 gcc44 gcc45 gcc46 llvm clang {
+} conflicts gcc42 gcc44 gcc45 gcc46 gcc47 llvm clang {
depends_lib-append port:gcc43
configure.compiler macports-gcc-4.3
}
variant gcc42 description {
Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc42
-} conflicts gcc43 gcc44 gcc45 gcc46 llvm clang {
+} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang {
depends_lib-append port:gcc42
configure.compiler macports-gcc-4.2
}
@@ -139,20 +147,21 @@
[ variant_isset gcc43 ] ||
[ variant_isset gcc44 ] ||
[ variant_isset gcc45 ] ||
- [ variant_isset gcc46 ]} {
+ [ variant_isset gcc46 ] ||
+ [ variant_isset gcc47 ]} {
configure.args-append --enable-f77 --enable-fc
configure.args-delete --disable-f77 --disable-fc
}
variant llvm description {
Use llvm-gcc
-} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 clang {
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 clang {
configure.compiler llvm-gcc-4.2
}
variant clang description {
Use clang
-} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 llvm {
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 llvm {
configure.compiler clang
configure.cxx clang++
configure.cflags-append -w