cwen 768314b651 netcdf: fix missing forward declarations that broke the build on big
endian arches. While here regen some patches.

OK martin@ (maintainer) and kmos@ (who tested on sparc64)
2020-04-04 19:26:43 +00:00

58 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.42 2020/04/04 19:26:43 cwen Exp $
COMMENT= library for machine-independent, array-oriented data access
V= 4.7.4
NAME= netcdf
DISTNAME= ${NAME}-c-${V}
PKGNAME= ${NAME}-${V}
REVISION= 1
CATEGORIES= math
SHARED_LIBS= netcdf 7.0 # 18.0
HOMEPAGE= http://www.unidata.ucar.edu/software/netcdf/
MAINTAINER= Martin Reindl <martin@catai.org>
# BSD
PERMIT_PACKAGE= Yes
WANTLIB= c m z pthread
WANTLIB+= curl crypto nghttp2 ssl
WANTLIB+= hdf5 hdf5_hl
BUILD_DEPENDS = devel/libexecinfo
LIB_DEPENDS = net/curl \
math/hdf5
TEST_DEPENDS= shells/bash \
textproc/gdiff
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES= ftp://ftp.unidata.ucar.edu/pub/netcdf/
CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="-I${LOCALBASE}/include"
CONFIGURE_ARGS+= --enable-shared \
--disable-doxygen \
--enable-netcdf-4 \
--enable-dap \
--prefix=${PREFIX}
USE_GMAKE= Yes
SEPARATE_BUILD= Yes
# https://github.com/Unidata/netcdf-c/issues/1347#issuecomment-467633543
# "Actually, I did not intend the .so files in netcdf-c/plugins to be
# installed. They are intended only for testing and examples"
post-install:
rm ${PREFIX}/lib/libh5bzip2.{a,la,so}
.include <bsd.port.mk>