Files

58 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

USE_NOBTCFI-aarch64 = Yes# fortran
2007-09-15 18:44:36 +00:00
COMMENT= library for machine-independent, array-oriented data access
2001-05-06 01:58:40 +00:00
2025-09-08 19:16:01 +00:00
V= 4.9.3
NAME= netcdf
DISTNAME= ${NAME}-c-${V}
PKGNAME= ${NAME}-${V}
REVISION= 0
CATEGORIES= math
2025-09-08 19:16:01 +00:00
SHARED_LIBS= netcdf 11.0 # 23.0
2005-12-24 14:45:38 +00:00
HOMEPAGE= http://www.unidata.ucar.edu/software/netcdf/
MAINTAINER= Martin Reindl <martin@catai.org>
# BSD
PERMIT_PACKAGE= Yes
COMPILER= base-clang ports-gcc base-gcc
2025-09-08 19:16:01 +00:00
WANTLIB+= ${COMPILER_LIBCXX} aec blosc bz2 c crypto curl execinfo
WANTLIB+= hdf5 hdf5_hl iconv lz4 lzma m nghttp2 nghttp3 ngtcp2
WANTLIB+= ngtcp2_crypto_libressl pthread ssl snappy sz xml2 z zip zstd
# curl is needed for DAP support
LIB_DEPENDS= archivers/blosc \
2025-09-08 19:16:01 +00:00
archivers/libaec \
archivers/libzip \
2023-05-07 14:46:42 +00:00
math/hdf5 \
net/curl \
textproc/libxml
2025-09-08 19:16:01 +00:00
TEST_DEPENDS= devel/libsigsegv \
shells/bash \
textproc/gdiff
2004-02-01 12:22:05 +00:00
2023-09-27 09:27:52 +00:00
SITES= https://downloads.unidata.ucar.edu/netcdf-c/$V/
CONFIGURE_STYLE= gnu
2022-04-16 11:18:44 +00:00
CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib -lexecinfo" \
2025-09-08 19:16:01 +00:00
CPPFLAGS="-I${LOCALBASE}/include" \
2016-03-10 11:50:13 +00:00
CONFIGURE_ARGS+= --enable-shared \
--disable-doxygen \
--enable-netcdf-4 \
--enable-dap \
--prefix=${PREFIX}
TEST_ENV= CC=cc
USE_GMAKE= Yes
SEPARATE_BUILD= Yes
.include <bsd.port.mk>