# -*- 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 PortSystem 1.0 PortGroup compilers 1.0 PortGroup github 1.0 github.setup nco nco 5.2.9 revision 2 maintainers {takeshi @tenomoto} \ {me.com:remko.scharroo @remkos} \ openmaintainer license GPL-3 categories science description The netCDF Operators compilers.choose cc cxx if {${os.major} > 12} { compilers.setup -clang33 -clang34 -gcc } else { compilers.setup -clang33 -clang34 } checksums rmd160 c8f3c750d9bc26814868993aeaab40a5667c9104 \ sha256 a7ba0b5cf328c6a4a8d6c8edf5bfc04629109580fc56b80baa86c0dec82cd021 \ size 6840905 homepage http://nco.sourceforge.net/ long_description \ Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), \ performs an operation (e.g., averaging, hyperslabbing, or renaming), \ and outputs a processed netCDF file. Although most users of netCDF \ and HDF data are involved in scientific research, these data formats, \ and thus NCO, are generic and are equally useful in fields like finance. \ This version is OPeNDAP/DODS enabled, so it can be given \ URLs to read remote datasets as if they were local netCDF files. depends_lib port:curl \ port:gettext \ port:netcdf \ port:udunits2 \ port:gsl depends_build port:antlr \ port:bison \ port:m4 \ port:texinfo depends_run port:wget configure.env HAVE_ANTLR=yes ANTLR_ROOT=${prefix} \ PATH_TO_NCGEN=${prefix}/bin/ncgen configure.cppflags-append -I${prefix}/include/udunits2 \ -I${prefix}/include \ -DENABLE_NETCDF4 configure.args --disable-dependency-tracking \ --mandir=${prefix}/share/man \ --disable-shared \ --disable-openmp if {[gcc_variant_isset] || [clang_variant_isset]} { default_variants-append +openmp } post-destroot { xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name} foreach f {ANNOUNCE ChangeLog LICENSE TODO VERSION *.txt *.pdf} { xinstall -m 0644 {*}[glob ${worksrcpath}/doc/${f}] \ ${destroot}${prefix}/share/doc/${name} } } variant openmp description {enable support for OpenMP} { configure.args-delete --disable-openmp configure.args-append --enable-openmp --disable-ncoxx compiler.whitelist macports-clang-7.0 macports-clang-6.0 macports-clang-5.0 \ macports-clang-3.7 \ macports-gcc-8 macports-gcc-7 macports-gcc-6 macports-gcc-5 \ macports-gcc-4.8 macports-gcc-4.7 macports-gcc-4.6 macports-gcc-4.5 \ macports-gcc-4.4 macports-gcc-4.3 compiler.fallback macports-clang-7.0 } github.livecheck.regex {([^"rba]+)}