COMMENT =		NCO manipulates and analyses data stored in netCDF format

V = 			5.3.6
DISTNAME =		nco-$V

DIST_TUPLE +=		github nco nco $V .

BUILD_DEPENDS =		print/texinfo
LIB_DEPENDS =		archivers/libaec \
			devel/gsl \
			math/netcdf \
			math/hdf5 \
			math/udunits \
			textproc/libxml \
			devel/gettext

CATEGORIES =		geo

HOMEPAGE =		https://nco.sourceforge.net/

MAINTAINER =		Marco van Hulten <marco@hulten.org>

# BSD-3-Clause
PERMIT_PACKAGE =	Yes

WANTLIB += aec blosc bz2 c crypto curl execinfo expat gsl gslcblas
WANTLIB += hdf5 hdf5_hl iconv intl m netcdf nghttp2 nghttp3 ngtcp2
WANTLIB += ngtcp2_crypto_libressl pthread ssl sz udunits2 xml2
WANTLIB += z zip zstd

SEPARATE_BUILD =	Yes
USE_GMAKE =		Yes
CONFIGURE_STYLE =	gnu
CONFIGURE_ENV =		NETCDF_INC=$(LOCALBASE)/include NETCDF_LIB=$(LOCALBASE)/lib

# Newer version of GNU texinfo than the one in base (4.8) is needed
MAKEINFO =		"${LOCALBASE}/bin/gmakeinfo"

.include <bsd.port.mk>
