[83075] trunk/dports/science/mpich2/Portfile

eborisch at macports.org eborisch at macports.org
Thu Aug 25 07:31:49 PDT 2011


Revision: 83075
          http://trac.macports.org/changeset/83075
Author:   eborisch at macports.org
Date:     2011-08-25 07:31:47 -0700 (Thu, 25 Aug 2011)
Log Message:
-----------
mpich2: Upgrade to 1.4.1

Modified Paths:
--------------
    trunk/dports/science/mpich2/Portfile

Modified: trunk/dports/science/mpich2/Portfile
===================================================================
--- trunk/dports/science/mpich2/Portfile	2011-08-25 14:22:01 UTC (rev 83074)
+++ trunk/dports/science/mpich2/Portfile	2011-08-25 14:31:47 UTC (rev 83075)
@@ -3,8 +3,7 @@
 
 PortSystem          1.0
 name                mpich2
-version             1.4
-revision            1
+version             1.4.1
 license             BSD
 categories          science parallel net
 platforms           darwin
@@ -12,23 +11,23 @@
                     openmaintainer
 description         Message Passing Interface (MPI) Library
 long_description \
-    MPICH2 is an implementation of the Message-Passing Interface (MPI). The \
-    goals of MPICH2 are to provide an MPI implementation for important \
-    platforms, including clusters, SMPs, and massively parallel processors. \
-    It also provides a vehicle for MPI implementation research and for \
-    developing new and better parallel programming environments.
+   MPICH2 is an implementation of the Message-Passing Interface (MPI). The \
+   goals of MPICH2 are to provide an MPI implementation for important \
+   platforms, including clusters, SMPs, and massively parallel processors. \
+   It also provides a vehicle for MPI implementation research and for \
+   developing new and better parallel programming environments.
 
 
 homepage            http://www.mcs.anl.gov/research/projects/mpich2/
 master_sites        ${homepage}downloads/tarballs/${version}/
 
-checksums           md5     cf7f8c12161b0af3f111e33c6d15f5c6 \
-                    sha1    011028456e268b013c55a00dfe51f4bc905c1c48 \
-                    rmd160  ecd60567d80ad08ecd06e8fe8cfaeb626941f768
+checksums           md5     5c423a39900113ab7b01d8b57a0fd8fa \
+                    sha1    dd26c462be95b214b4726740c64e4d3d3578b091 \
+                    rmd160  4f7746b116331e88abe275a65da6f1b7bf8390cb
 
 # Don't build if lammpi is around.
 pre-configure {
-    if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
+if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
       ui_error "Cannot co-exist with lammpi; please deactivate lammpi before configuring."
       return -code error
     }
@@ -36,10 +35,10 @@
 
 pre-build {
     if {[file exists ${prefix}/etc/lammpi/lam-helpfile]} {
-      ui_error "Cannot co-exist with lammpi; please deactivate lammpi before building."
-      return -code error
-    }
+  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
@@ -59,6 +58,8 @@
                     "F90FLAGS='' F90=''" \
                     --with-pm=hydra \
                     --enable-shared \
+                    --enable-cache \
+                    --enable-smpcoll \
                     --enable-base-cache
 
 build.args-append   VERBOSE=1
@@ -67,6 +68,23 @@
 use_parallel_build  no
 conflicts           lammpi
 
+# 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
+    reinplace -E "s|${destroot}||g" ${destroot}/${prefix}/bin/mpicc
+    reinplace -E "s|${destroot}||g" ${destroot}/${prefix}/etc/mpicxx.conf
+    reinplace -E "s|${destroot}||g" ${destroot}/${prefix}/etc/mpicc.conf
+
+    file delete ${destroot}/${prefix}/sbin/mpeuninstall
+}
+
 # As MPICH creates compiler wrappers, there are lots of
 # variants for what compiler the user would like to wrap.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110825/5cdb6c24/attachment.html>


More information about the macports-changes mailing list