COMMENT =	visual browser for netCDF files

DISTNAME =	ncview-2.1.11

CATEGORIES =	geo

HOMEPAGE =	https://cirrus.ucsd.edu/ncview/

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

# GPLv3
PERMIT_PACKAGE =	Yes

WANTLIB = netcdf udunits2 png
WANTLIB += ICE SM X11 Xaw Xt c expat m

SITES =		https://cirrus.ucsd.edu/~pierce/ncview/

# clang fails on undefined symbols, even as header files are included
COMPILER =		ports-gcc

LIB_DEPENDS =		math/netcdf math/udunits graphics/png

SEPARATE_BUILD =	Yes (build in a directory other than WRKSRC)
CONFIGURE_ARGS =	--with-png_incdir=$(LOCALBASE)/include \
			--with-png_libdir=$(LOCALBASE)/lib

CONFIGURE_STYLE =	gnu

.include <bsd.port.mk>
