aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-05-07 16:03:17 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-05-07 16:03:17 +0000
commit89746c2e8a10590c3c3d26866f85a1955d42d682 (patch)
treeb59491784e947b6178bb4e1d9b9d7f850694e27d
parent9f76fc7c279337c70785676a5b50dc9749d28a95 (diff)
downloadports-89746c2e8a10590c3c3d26866f85a1955d42d682.tar.gz
ports-89746c2e8a10590c3c3d26866f85a1955d42d682.zip
science/netcdf: Update to 4.9.2
- Convert REINPLACE_CMD to patch file Changes: https://github.com/Unidata/netcdf-c/releases
-rw-r--r--science/netcdf/Makefile10
-rw-r--r--science/netcdf/distinfo6
-rw-r--r--science/netcdf/files/patch-configure29
-rw-r--r--science/netcdf/pkg-plist2
4 files changed, 36 insertions, 11 deletions
diff --git a/science/netcdf/Makefile b/science/netcdf/Makefile
index aaf9395bd61d..bdd098d707d4 100644
--- a/science/netcdf/Makefile
+++ b/science/netcdf/Makefile
@@ -1,7 +1,6 @@
PORTNAME= netcdf
-PORTVERSION= 4.9.0
+PORTVERSION= 4.9.2
DISTVERSIONPREFIX= c-
-PORTREVISION= 3
CATEGORIES= science
MASTER_SITES= https://downloads.unidata.ucar.edu/netcdf-c/${PORTVERSION}/ \
LOCAL/sunpoet
@@ -14,7 +13,8 @@ LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
LIB_DEPENDS= libcurl.so:ftp/curl \
- libhdf5.so:science/hdf5
+ libhdf5.so:science/hdf5 \
+ libzstd.so:archivers/zstd
USES= gmake libtool localbase ncurses pathfix pkgconfig:run
@@ -40,10 +40,6 @@ DOXYGEN_CONFIGURE_ENABLE= doxygen
SZIP_LIB_DEPENDS= libsz.so:science/libaec
SZIP_LIBS= -lsz
-post-patch:
- @${REINPLACE_CMD} -e 's|-ldl ||g' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e '/ int fileno(FILE\*);/d' ${WRKSRC}/libdispatch/d*.c ${WRKSRC}/ncgen/ncgen* ${WRKSRC}/ncgen3/ncgen* ${WRKSRC}/oc2/ocdump.c
-
post-build-DOXYGEN-on:
cd ${WRKSRC}/docs/ && ${LOCALBASE}/bin/doxygen .
diff --git a/science/netcdf/distinfo b/science/netcdf/distinfo
index 860d8bf11ee2..b16ec475946e 100644
--- a/science/netcdf/distinfo
+++ b/science/netcdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1655829816
-SHA256 (netcdf-c-4.9.0.tar.gz) = 4c956022b79c08e5e14eee8df51b13c28e6121c2b7e7faadc21b375949400b49
-SIZE (netcdf-c-4.9.0.tar.gz) = 7103958
+TIMESTAMP = 1683227589
+SHA256 (netcdf-c-4.9.2.tar.gz) = cf11babbbdb9963f09f55079e0b019f6d0371f52f8e1264a5ba8e9fdab1a6c48
+SIZE (netcdf-c-4.9.2.tar.gz) = 7142536
diff --git a/science/netcdf/files/patch-configure b/science/netcdf/files/patch-configure
new file mode 100644
index 000000000000..3c679e058432
--- /dev/null
+++ b/science/netcdf/files/patch-configure
@@ -0,0 +1,29 @@
+--- configure.orig 2023-03-14 20:35:12 UTC
++++ configure
+@@ -18321,7 +18321,7 @@ then :
+ printf %s "(cached) " >&6
+ else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-ldl $LIBS"
++LIBS="$LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -18427,7 +18427,7 @@ then :
+ printf %s "(cached) " >&6
+ else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-ldl $LIBS"
++LIBS="$LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -23316,7 +23316,7 @@ then :
+ printf %s "(cached) " >&6
+ else $as_nop
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-ldl $LIBS"
++LIBS="$LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
diff --git a/science/netcdf/pkg-plist b/science/netcdf/pkg-plist
index 8638bc41e23d..3ae918a1a42c 100644
--- a/science/netcdf/pkg-plist
+++ b/science/netcdf/pkg-plist
@@ -18,7 +18,7 @@ lib/libnetcdf.a
lib/libnetcdf.settings
lib/libnetcdf.so
lib/libnetcdf.so.19
-lib/libnetcdf.so.19.1.0
+lib/libnetcdf.so.19.2.2
libdata/pkgconfig/netcdf.pc
man/man1/nccopy.1.gz
man/man1/ncdump.1.gz