[97518] trunk/dports/science/cdo/Portfile
takeshi at macports.org
takeshi at macports.org
Fri Sep 7 14:21:33 PDT 2012
Revision: 97518
https://trac.macports.org/changeset/97518
Author: takeshi at macports.org
Date: 2012-09-07 14:21:29 -0700 (Fri, 07 Sep 2012)
Log Message:
-----------
cdo: added mpi variant to enable build when hdf5-18 is installed with +openmpi or +mpich2, closing #36017
Modified Paths:
--------------
trunk/dports/science/cdo/Portfile
Modified: trunk/dports/science/cdo/Portfile
===================================================================
--- trunk/dports/science/cdo/Portfile 2012-09-07 20:38:59 UTC (rev 97517)
+++ trunk/dports/science/cdo/Portfile 2012-09-07 21:21:29 UTC (rev 97518)
@@ -5,7 +5,7 @@
name cdo
version 1.5.5
-revision 1
+revision 2
platforms darwin
maintainers takeshi
license GPL-2
@@ -33,6 +33,11 @@
--with-hdf5=${prefix} \
--with-zlib=${prefix}
+# Test if hdf5-18 is installed with +openmpi or +mpich2
+if {[file exists ${prefix}/bin/h5pcc]} {
+ default_variants +mpi
+}
+
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
eval xinstall -m 644 [glob ${worksrcpath}/doc/*.pdf] ${destroot}${prefix}/share/doc/${name}/doc
@@ -48,6 +53,10 @@
configure.ldflags-append -lpng -lopenjpeg
}
+variant mpi description {compile with h5pcc} {
+ configure.cc ${prefix}/bin/h5pcc
+}
+
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex {Version ([0-9]+\.[0-9]+\.[0-9]+\.*[0-9]*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120907/b5a2a7e5/attachment.html>
More information about the macports-changes
mailing list