[108293] trunk/dports/science/netcdf/Portfile
takeshi at macports.org
takeshi at macports.org
Wed Jul 17 16:32:59 PDT 2013
Revision: 108293
https://trac.macports.org/changeset/108293
Author: takeshi at macports.org
Date: 2013-07-17 16:32:59 -0700 (Wed, 17 Jul 2013)
Log Message:
-----------
netcdf: call the call to grep libhdf5.settings if +netcdf4 is set, closing #39785
Modified Paths:
--------------
trunk/dports/science/netcdf/Portfile
Modified: trunk/dports/science/netcdf/Portfile
===================================================================
--- trunk/dports/science/netcdf/Portfile 2013-07-17 22:56:44 UTC (rev 108292)
+++ trunk/dports/science/netcdf/Portfile 2013-07-17 23:32:59 UTC (rev 108293)
@@ -29,12 +29,14 @@
patchfiles patch-configure.diff
-set hdf5cc [exec grep "C Compiler" ${prefix}/lib/libhdf5.settings | awk {BEGIN{FS="/"}{print $NF}}]
-if {${hdf5cc}=="openmpicc"} {
- default_variants +openmpi
-} elseif {[variant_isset openmpi]} {
- ui_error "Install hdf5-18 +openmpi"
- return -code error "hdf5-18 +openmpi not installed"
+if {[variant_isset netcdf4]} {
+ set hdf5cc [exec grep "C Compiler" ${prefix}/lib/libhdf5.settings | awk {BEGIN{FS="/"}{print $NF}}]
+ if {${hdf5cc}=="openmpicc"} {
+ default_variants +openmpi
+ } elseif {[variant_isset openmpi]} {
+ ui_error "Install hdf5-18 +openmpi"
+ return -code error "hdf5-18 +openmpi not installed"
+ }
}
configure.cppflags-append -DNDEBUG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130717/3469ae29/attachment.html>
More information about the macports-changes
mailing list