# -*- 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           R 1.0

# For this to build on macos-14 or later, a recent fix to g95 is required: https://trac.macports.org/ticket/71068
R.setup             github mjwoods RNetCDF 2.9-2 v
revision            2
extract.rename      yes
maintainers         nomaintainer
license             GPL-2+
description         Interface to NetCDF file formats
long_description    {*}${description}
checksums           rmd160  628f6a9cbf35787941ef172ce18ed27089da0f4d \
                    sha256  84587fce4349afc51f1cbb293b61896a9302f241e96dc453748d8aa22ad0a590 \
                    size    159478

depends_lib-append  port:netcdf \
                    port:udunits2

build.args-append   --configure-args="--with-nc-config --without-nc-config-static"

depends_test-append port:R-bit64 \
                    port:R-pbdMPI \
                    port:R-Rmpi

test.run            yes
