# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup Unidata netcdf-c 4.4.1.1 v
maintainers {takeshi @tenomoto} openmaintainer
description libraries for array-oriented scientific data
NetCDF (network Common Data Form) is a set of software libraries \
and machine-independent data formats that support the creation, \
access, and sharing of array-oriented scientific data.
homepage http://www.unidata.ucar.edu/software/netcdf/
checksums rmd160 dbae2d5a99c918bc5adfc0e247a672b1b6730162 \
sha256 c4f1a18d8c813d00aa06bbe72f585c303b8d56595a4e991d271254ee9fa76786
patchfiles patch-CMakeLists.txt.diff
configure.args-append -DENABLE_NETCDF_4=OFF \
-DCMAKE_PREFIX_PATH=${worksrcpath}/cmake/modules
default_variants +netcdf4 +dap
if {[variant_isset netcdf4]} {
variant netcdf4 description {enable support for netcdf-4 API} {
depends_lib-append port:hdf5
configure.args-delete -DENABLE_NETCDF_4=OFF
configure.args-append -DENABLE_NETCDF_4=ON
variant hdf4 description {enable support for hdf4} {
depends_lib-append port:hdf4 \
patchfiles-append patch-liblib-CMakeLists.txt.diff
configure.args-append -DENABLE_HDF4=ON