[82646] trunk/dports/science/mpich2/Portfile
eborisch at macports.org
eborisch at macports.org
Wed Aug 17 08:16:08 PDT 2011
Revision: 82646
http://trac.macports.org/changeset/82646
Author: eborisch at macports.org
Date: 2011-08-17 08:16:06 -0700 (Wed, 17 Aug 2011)
Log Message:
-----------
mpich2: Document conflict with lammpi and check before building. Fixes #30825. Adds clang and system_gcc variants.
Modified Paths:
--------------
trunk/dports/science/mpich2/Portfile
Modified: trunk/dports/science/mpich2/Portfile
===================================================================
--- trunk/dports/science/mpich2/Portfile 2011-08-17 14:37:08 UTC (rev 82645)
+++ trunk/dports/science/mpich2/Portfile 2011-08-17 15:16:06 UTC (rev 82646)
@@ -4,6 +4,7 @@
PortSystem 1.0
name mpich2
version 1.4
+revision 1
license BSD
categories science parallel net
platforms darwin
@@ -25,6 +26,12 @@
sha1 011028456e268b013c55a00dfe51f4bc905c1c48 \
rmd160 ecd60567d80ad08ecd06e8fe8cfaeb626941f768
+# Don't build if lammpi is around.
+if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
+ ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building."
+ return -code error
+}
+
# Puts all entries in <prefix>/share into appropriate mpich2 subdirs
destroot.args PACKAGE=mpich2
patchfiles patch-src-util-createshlib.in
@@ -45,26 +52,31 @@
--enable-shared \
--enable-base-cache
+build.args-append VERBOSE=1
+
universal_variant no
-
use_parallel_build no
+conflicts lammpi
-variant gcc45 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45} conflicts gcc42 gcc43 gcc44 llvm {
+# As MPICH creates compiler wrappers, there are lots of
+# variants for what compiler the user would like to wrap.
+
+variant gcc45 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45} conflicts gcc42 gcc43 gcc44 sustem_gcc 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 llvm {
+variant gcc44 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44} conflicts gcc42 gcc43 gcc45 sustem_gcc 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 llvm {
+variant gcc43 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43} conflicts gcc42 gcc44 gcc45 sustem_gcc 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 llvm {
+variant gcc42 description {Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc42} conflicts gcc43 gcc44 gcc45 sustem_gcc llvm clang {
depends_lib-append port:gcc42
configure.compiler macports-gcc-4.2
}
@@ -77,10 +89,21 @@
configure.args-delete --disable-f77 --disable-fc
}
-variant llvm description {Use llvm-gcc} conflicts gcc42 gcc43 gcc44 gcc45 {
+variant system_gcc description {Use system gcc (no Fortran)} conflicts gcc42 gcc43 gcc44 gcc45 llvm clang {
+ configure.compiler gcc-4.2
+}
+
+variant llvm description {Use llvm-gcc} conflicts gcc42 gcc43 gcc44 gcc45 system_gcc clang {
configure.compiler llvm-gcc-4.2
}
+variant clang description {Use clang} conflicts gcc42 gcc43 gcc44 gcc45 sustem_gcc llvm {
+ configure.compiler clang
+ configure.cxx clang++
+ configure.cflags-append -w
+ configure.cxxflags-append -w
+}
+
variant gforker description {Use gforker process manager instead of the default hydra} {
configure.args-append --with-pm=gforker
configure.args-delete --with-pm=hydra
@@ -92,6 +115,7 @@
variant default_mpi description {Install as defalt MPI -- conflict with OpenMPI} {
configure.args-delete --includedir=${prefix}/include/${name}
+ conflicts-append openmpi
}
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110817/a6d187b7/attachment.html>
More information about the macports-changes
mailing list