[147800] trunk/dports/science/netcdf/Portfile
takeshi at macports.org
takeshi at macports.org
Fri Apr 15 23:19:31 PDT 2016
Revision: 147800
https://trac.macports.org/changeset/147800
Author: takeshi at macports.org
Date: 2016-04-15 23:19:31 -0700 (Fri, 15 Apr 2016)
Log Message:
-----------
netcdf: depend on hdf5-18. See #51089
Modified Paths:
--------------
trunk/dports/science/netcdf/Portfile
Modified: trunk/dports/science/netcdf/Portfile
===================================================================
--- trunk/dports/science/netcdf/Portfile 2016-04-16 06:15:48 UTC (rev 147799)
+++ trunk/dports/science/netcdf/Portfile 2016-04-16 06:19:31 UTC (rev 147800)
@@ -7,10 +7,9 @@
PortGroup cmake 1.0
PortGroup muniversal 1.0
-mpi.enforce_variant hdf5
github.setup Unidata netcdf-c 4.4.0 v
-revision 1
+revision 2
epoch 3
name netcdf
maintainers takeshi openmaintainer
@@ -40,12 +39,23 @@
-DENABLE_DAP=OFF
test.run yes
-test.target check
+test.target test
default_variants +netcdf4 +dap
+if {[variant_isset netcdf4]} {
+ mpi.enforce_variant hdf5-18
+ configure.cflags-append -I${prefix}/include/hdf5-18
+ configure.ldflags-append -L${prefix}/lib/hdf5-18
+ configure.args-append -DHDF5_INCLUDE_DIR=${prefix}/include/hdf5-18 \
+ -DHDF5_C_LIBRARY=${prefix}/lib/hdf5-18/libhdf5.dylib \
+ -DHDF5_HL_LIBRARY=${prefix}/lib/hdf5-18/libhdf5_hl.dylib \
+ -DHDF5_C_LIBRARIES=${prefix}/lib/hdf5-18/libhdf5.dylib \
+ -DHDF5_HL_LIBRARIES=${prefix}/lib/hdf5-18/libhdf5_hl.dylib
+}
+
variant netcdf4 description {enable support for netcdf-4 API} {
- depends_lib-append port:hdf5
+ depends_lib-append port:hdf5-18
configure.args-delete -DENABLE_NETCDF_4=OFF
configure.args-append -DENABLE_NETCDF_4=ON
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160415/8c11a5ce/attachment.html>
More information about the macports-changes
mailing list