[95556] trunk/dports/science
eborisch at macports.org
eborisch at macports.org
Mon Jul 16 10:55:03 PDT 2012
Revision: 95556
https://trac.macports.org/changeset/95556
Author: eborisch at macports.org
Date: 2012-07-16 10:55:03 -0700 (Mon, 16 Jul 2012)
Log Message:
-----------
mpich2-devel: New portfile for preview releases of mpich2. Initial version at 1.5b2.
Modified Paths:
--------------
trunk/dports/science/mpich2/Portfile
trunk/dports/science/mpich2-devel/Portfile
Added Paths:
-----------
trunk/dports/science/mpich2-devel/
Modified: trunk/dports/science/mpich2/Portfile
===================================================================
--- trunk/dports/science/mpich2/Portfile 2012-07-16 17:26:21 UTC (rev 95555)
+++ trunk/dports/science/mpich2/Portfile 2012-07-16 17:55:03 UTC (rev 95556)
@@ -69,7 +69,8 @@
universal_variant no
use_parallel_build no
-conflicts lammpi
+conflicts lammpi \
+ mpich2-devel
# Fixes for the beta DESTDIR support in 1.4.1. Should go away in 1.5 branch.
post-patch {
Modified: trunk/dports/science/mpich2-devel/Portfile
===================================================================
--- trunk/dports/science/mpich2/Portfile 2012-07-16 12:21:25 UTC (rev 95553)
+++ trunk/dports/science/mpich2-devel/Portfile 2012-07-16 17:55:03 UTC (rev 95556)
@@ -3,8 +3,9 @@
PortSystem 1.0
-name mpich2
-version 1.4.1p1
+name mpich2-devel
+set pkgname mpich2
+version 1.5b2
license BSD
categories science parallel net
platforms darwin
@@ -23,126 +24,126 @@
homepage http://www.mcs.anl.gov/research/projects/mpich2/
master_sites ${homepage}downloads/tarballs/${version}/
+distname ${pkgname}-${version}
-checksums md5 b470666749bcb4a0449a072a18e2c204 \
- sha1 8dcc8888fb27232eb8f76c11cc890f1c3c483804 \
- rmd160 1d355cc07b8675af77b1c255fd10696844447298
+checksums \
+ rmd160 3be00eac82795f4bb8572913bd2121b442655a38 \
+ sha256 a6ae53598310c199fb8c08660e7ca90a911247375310cd9409de6cbb69083cf4
+depends_lib-append port:libxml2
+
# Don't build if lammpi is around.
pre-configure {
if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
- ui_error "Cannot co-exist with lammpi; please deactivate lammpi before configuring."
+ ui_error \
+ "Cannot co-exist with lammpi; please deactivate lammpi before configuring."
return -code error
}
}
pre-build {
if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
- ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building."
+ 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
-
-# the default include-dir conflicts with openmpi!
-configure.args --with-thread-package=posix \
- --enable-timer-type=mach_absolute_time \
+configure.args --disable-dependency-tracking \
+ --disable-f77 \
+ --disable-fc \
+ --disable-silent-rules \
+ --enable-alloca \
+ --enable-base-cache \
+ --enable-cache \
--enable-cxx \
- --mandir=${prefix}/share/man \
- --docdir=${prefix}/share/doc/${name} \
- --htmldir=${prefix}/share/doc/${name} \
- --includedir=${prefix}/include/${name} \
- --disable-f77 --disable-fc \
+ --enable-fast=O2 \
+ --enable-shared \
+ --enable-smpcoll \
+ --includedir=${prefix}/include/${pkgname} \
+ --with-device=ch3:nemesis \
--with-mpe \
- --with-device=ch3:nemesis \
+ --with-pm=hydra \
+ --with-thread-package=posix \
"F90FLAGS='' F90=''" \
- --with-pm=hydra \
- --enable-shared \
- --enable-cache \
- --enable-smpcoll \
- --enable-base-cache
+ MPICH2LIB_CPPFLAGS=-I${prefix}/include
-build.args-append VERBOSE=1
+platform darwin {
+ configure.args-append --enable-sharedlibs=osx-gcc \
+ --enable-timer-type=mach_absolute_time
+}
+
+# We're making compiler wrappers here... don't default to -O2 for wrappers.
+# Actual library code is compiled with -O2 via --enable-fast=O2 configure arg
+configure.cflags-delete -O2
+configure.cxxflags-delete -O2
+configure.fflags-delete -O2
+configure.fcflags-delete -O2
+configure.cppflags-delete -I${prefix}/include
+
universal_variant no
-use_parallel_build no
-conflicts lammpi
+conflicts lammpi \
+ mpich2
-# Fixes for the beta DESTDIR support in 1.4.1. Should go away in 1.5 branch.
-post-patch {
- reinplace -E "s|fix=\\\$\\\{DESTDIR\\\}|fix=|g" \
- ${worksrcpath}/Makefile.in
- reinplace -E "s|dir=\\\$\\\{DESTDIR\\\}|dir=|g" \
- ${worksrcpath}/Makefile.in
-}
-
post-destroot {
- reinplace -E "s|${destroot}||g" ${destroot}${prefix}/bin/mpicxx \
- ${destroot}${prefix}/bin/mpicc \
- ${destroot}${prefix}/etc/mpicxx.conf \
- ${destroot}${prefix}/etc/mpicc.conf
- if {[ variant_isset gcc42 ] ||
- [ variant_isset gcc43 ] ||
- [ variant_isset gcc44 ] ||
- [ variant_isset gcc45 ] ||
- [ variant_isset gcc46 ] ||
- [ variant_isset gcc47 ]} {
- reinplace -E "s|${destroot}||g" ${destroot}${prefix}/bin/mpif77 \
- ${destroot}${prefix}/bin/mpif90 \
- ${destroot}${prefix}/etc/mpif77.conf \
- ${destroot}${prefix}/etc/mpif90.conf
- }
+ # Move examples directories to preferred location
+ move ${destroot}${prefix}/share/examples \
+ ${destroot}${prefix}/share/doc/${pkgname}/examples
+ # Remove un-needed (in MacPorts) binaries
file delete ${destroot}${prefix}/sbin/mpeuninstall
+ file delete ${destroot}${prefix}/sbin/mpecheckinstall
+
+ # That's what man pages are for
+ delete ${destroot}${prefix}/share/doc/www4
}
# 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 {
+ Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc47 port
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 llvm clang clang31 {
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 gcc47 llvm clang {
+ Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc46 port
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc47 llvm clang clang31 {
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 gcc47 llvm clang {
+ Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc45 port
+} conflicts gcc42 gcc43 gcc44 gcc46 gcc47 llvm clang clang31 {
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 gcc47 llvm clang {
+ Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc44 port
+} conflicts gcc42 gcc43 gcc45 gcc46 gcc47 llvm clang clang31 {
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 gcc47 llvm clang {
+ Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc43 port
+} conflicts gcc42 gcc44 gcc45 gcc46 gcc47 llvm clang clang31 {
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 gcc47 llvm clang {
+ Enable Fortran 77 and Fortran 90 bindings using gfortran from gcc42 port
+} conflicts gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang clang31 {
depends_lib-append port:gcc42
configure.compiler macports-gcc-4.2
}
+
if {[ variant_isset gcc42 ] ||
[ variant_isset gcc43 ] ||
[ variant_isset gcc44 ] ||
@@ -155,19 +156,25 @@
variant llvm description {
Use llvm-gcc
-} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 clang {
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 clang clang31 {
configure.compiler llvm-gcc-4.2
}
variant clang description {
Use clang
-} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 llvm {
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang31 {
configure.compiler clang
- configure.cxx clang++
- configure.cflags-append -w
- configure.cxxflags-append -w
}
+variant clang31 description {
+ Use clang 3.1 from MacPorts
+} conflicts gcc42 gcc43 gcc44 gcc45 gcc46 gcc47 llvm clang {
+ depends_lib-append port:clang-3.1
+ configure.compiler clang
+ configure.cc ${prefix}/bin/clang-mp-3.1
+ configure.cxx ${prefix}/bin/clang++-mp-3.1
+}
+
variant gforker description {
Use gforker process manager instead of the default hydra
} {
@@ -175,16 +182,12 @@
configure.args-delete --with-pm=hydra
}
-platform darwin {
- configure.args-append --enable-sharedlibs=osx-gcc
+variant tuned description {Build with more optimizations)} {
+ configure.args-delete --enable-fast=O2
+ configure.args-append --enable-fast=all \
+ MPICH2LIB_CFLAGS='-fomit-frame-pointer -O2'
}
-variant default_mpi description {
- Install as defalt MPI -- conflict with OpenMPI
-} {
- configure.args-delete --includedir=${prefix}/include/${name}
- conflicts-append openmpi
-}
+livecheck.type regex
+livecheck.regex ${pkgname}-(\[0-9.p\]+)${extract.suffix}
-livecheck.type regex
-livecheck.regex ${name}-(\[0-9.p\]+)${extract.suffix}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120716/903e27d1/attachment-0001.html>
More information about the macports-changes
mailing list