# -*- 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 # $Id$ PortSystem 1.0 PortGroup mpi 1.0 PortGroup github 1.0 PortGroup cmake 1.0 PortGroup muniversal 1.0 github.setup Unidata netcdf-c 4.4.1 v revision 2 epoch 3 name netcdf maintainers takeshi openmaintainer platforms darwin categories science license Permissive description libraries for array-oriented scientific data long_description \ 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 6418550d9aca73640d819a1bf29687f1fb7eb75d \ sha256 728d62d85c870f0c205ef33d36cdb53cb074f9e0bb212a71ae78f32a829be66e compilers.choose cc cpp mpi.setup cmake.out_of_source yes patchfiles patch-CMakeLists.txt.diff configure.args-append -DENABLE_NETCDF_4=OFF \ -DENABLE_DAP=OFF test.run yes test.target test default_variants +netcdf4 +dap if {[variant_isset netcdf4]} { mpi.enforce_variant hdf5-18 configure.ldflags-append -L${prefix}/lib/hdf5-18/lib configure.args-append -DHDF5_INCLUDE_DIR=${prefix}/lib/hdf5-18/include \ -DHDF5_C_LIBRARY=${prefix}/lib/hdf5-18/lib/libhdf5.dylib \ -DHDF5_HL_LIBRARY=${prefix}/lib/hdf5-18/lib/libhdf5_hl.dylib \ -DHDF5_C_LIBRARIES=${prefix}/lib/hdf5-18/lib/libhdf5.dylib \ -DHDF5_HL_LIBRARIES=${prefix}/lib/hdf5-18/lib/libhdf5_hl.dylib } variant netcdf4 description {enable support for netcdf-4 API} { depends_lib-append port:hdf5-18 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 \ port:jpeg patchfiles-append patch-liblib-CMakeLIsts.txt.diff configure.args-append -DENABLE_HDF4=ON } variant dap description {enable dap} { depends_lib-append port:curl configure.args-delete -DENABLE_DAP=OFF configure.args-append -DENABLE_DAP=ON \ -DENABLE_DAP_REMOTE_TESTS=OFF } if { [variant_exists universal] && [variant_isset universal] } { pre-configure { # record configure date (as cmake does) but ensure date will be the same for achitectures # helps ensure libnetcdf.settings is the same for all architectures set date [exec "/bin/date"] reinplace "s|@CONFIG_DATE@|${date}|g" ${worksrcpath}/libnetcdf.settings.in } merger-post-destroot { foreach arch ${universal_archs_to_use} { reinplace "s|${build.dir}-${arch}|${build.dir}|g" ${destroot}-${arch}${prefix}/lib/libnetcdf.settings } } } if {[mpi_variant_isset]} { configure.cflags-append -DHDF5_PARALLEL configure.args-append -DENABLE_PARALLEL_TESTS=ON } notes " As of version 4.2 c++ and fortran interfaces are separate ports,\ netcdf-cxx and netcdf-fortran, respectively. " livecheck.regex archive/[join ${github.tag_prefix} ""](\[^"rba\]+)${extract.suffix}