diff --git a/science/hdf/Makefile b/science/hdf/Makefile index d704ede5fd12..0972e8ad6f8d 100644 --- a/science/hdf/Makefile +++ b/science/hdf/Makefile @@ -1,55 +1,47 @@ PORTNAME= hdf -DISTVERSION= 4.3.0 -PORTREVISION= 2 +PORTVERSION= 4.3.1 PORTEPOCH= 1 CATEGORIES= science archivers graphics -MASTER_SITES= https://github.com/HDFGroup/hdf4/releases/download/hdf${DISTVERSION}/ -DISTNAME= hdf${DISTVERSION} +MASTER_SITES= https://github.com/HDFGroup/hdf4/releases/download/hdf${PORTVERSION}/ +DISTNAME= hdf${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Hierarchical Data Format library (from NCSA) -WWW= https://www.hdfgroup.org/solutions/hdf4/ +WWW= https://www.hdfgroup.org/solutions/hdf4/ \ + https://github.com/HDFGroup/hdf4 LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -NOT_FOR_ARCHS= aarch64 armv6 armv7 +NOT_FOR_ARCHS= aarch64 armv6 armv7 NOT_FOR_ARCHS_REASON= fails to compile: no machine type has been defined LIB_DEPENDS= libsz.so:science/libaec USES= fortran jpeg libtool -USE_LDCONFIG= yes - -WRKSRC= ${WRKDIR}/hdfsrc -GNU_CONFIGURE= yes +FFLAGS+= -fallow-argument-mismatch CONFIGURE_ARGS= --enable-shared \ --with-jpeg=${LOCALBASE} \ --with-szlib=${LOCALBASE} - +GNU_CONFIGURE= yes INSTALL_TARGET= install-strip TEST_TARGET= check +USE_LDCONFIG= yes +WRKSRC= ${WRKDIR}/hdf-${PORTVERSION} -OPTIONS_DEFINE= JAVA -OPTIONS_DEFAULT= JAVA -OPTIONS_SUB= yes +PLIST_SUB= PORTVERSION=${PORTVERSION} + +CONFLICTS_INSTALL= netcdf-4.[0-9]* + +OPTIONS_DEFINE= JAVA +OPTIONS_DEFAULT=JAVA +OPTIONS_SUB= yes JAVA_CONFIGURE_ENABLE= java -JAVA_USES= java:build -JAVA_VARS= JAVA_VERSION=17 JAVA_CONFIGURE_ENV= JAVA_HOME=${JAVA_HOME} \ PATH=${JAVA_HOME}/bin:${PATH} JAVA_MAKE_ENV= PATH=${JAVA_HOME}/bin:${PATH} +JAVA_USES= java:build -.include - -.if ${GCC_DEFAULT} >= 10 -# workaround for Type mismatch between actual argument at (1) and actual argument at (2) (CHARACTER(0)/INTEGER(4)). -# in theory, this should set FCFLAGS, but the port does not conform -FFLAGS+= -fallow-argument-mismatch -.endif - -CONFLICTS_INSTALL= netcdf-4.[0-9]* - -.include +.include diff --git a/science/hdf/distinfo b/science/hdf/distinfo index a2c3b55e4c1c..b328eceb5155 100644 --- a/science/hdf/distinfo +++ b/science/hdf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1727142524 -SHA256 (hdf4.3.0.tar.gz) = 282b244a819790590950f772095abcaeef405b0f17d2ee1eb5039da698cf938b -SIZE (hdf4.3.0.tar.gz) = 18408537 +TIMESTAMP = 1779520112 +SHA256 (hdf4.3.1.tar.gz) = a2c69eb752aee385b73d4255e4387134dd5e182780d64da0a5cb0d6e1d3dea3b +SIZE (hdf4.3.1.tar.gz) = 9366549 diff --git a/science/hdf/pkg-descr b/science/hdf/pkg-descr index 31226f04054e..19a726a0ee67 100644 --- a/science/hdf/pkg-descr +++ b/science/hdf/pkg-descr @@ -1,17 +1,8 @@ -HDF4 (originally known as HDF) is file format for storing scientific data -and a software library that provides high-level APIs and a low-level data -access interface. +HDF4 is a library and multi-object file format for storing and managing data +between machines. HDF4 is a very different technology than HDF5. The HDF Group +recommends that, other than for working with existing HDF4 data, new +applications use HDF5 since HDF5 addresses important deficiencies of HDF4. -HDF technologies at present include two data management formats (HDF4 and -HDF5) and libraries, a modular data browser/editor, associated tools and -utilities, and a conversion library. Both HDF4 and HDF5 were designed to -be a general scientific format, adaptable to virtually any scientific or -engineering application, and also have been used successfully in non- -technical areas. The Open Source format is a key technological foundation -for HDF core technologies. It allows users to collaborate with The HDF -Group regarding functionality requirements and permits users' experience -and knowledge to be incorporated into the HDF product when appropriate. - -It also permits users and organizations without adequate technology -resources to use a sophisticated and robust data management tool for no -charge. +Although The HDF Group maintains HDF4 by fixing defects and porting it to new +operating environments, there is no longer any new development occurring. HDF4 +is considered deprecated and new products should be developed in HDF5. diff --git a/science/hdf/pkg-plist b/science/hdf/pkg-plist index 8160e961785f..6a8729fe6d01 100644 --- a/science/hdf/pkg-plist +++ b/science/hdf/pkg-plist @@ -1,62 +1,62 @@ bin/gif2hdf bin/h4cc bin/h4redeploy bin/hdf24to8 bin/hdf2gif bin/hdf2jpeg bin/hdf8to24 bin/hdfcomp bin/hdfed bin/hdfimport bin/hdfls bin/hdfpack bin/hdftopal bin/hdftor8 bin/hdfunpac bin/hdiff bin/hdp bin/hrepack bin/jpeg2hdf bin/ncdump bin/ncgen bin/paltohdf bin/r8tohdf bin/ristosds bin/vmake bin/vshow include/H4api_adpt.h include/df.h include/h4config.h include/hbitio.h include/hcomp.h include/hdatainfo.h include/hdf.h include/hdf2netcdf.h include/herr.h include/hfile.h include/hlimits.h include/hntdefs.h include/hproto.h include/htags.h include/mfan.h include/mfdatainfo.h include/mfgr.h include/mfhdf.h include/netcdf.h include/vg.h -%%JAVA%%lib/jarhdf-4.2.17-1.jar +%%JAVA%%lib/jarhdf-%%PORTVERSION%%.jar lib/libdf.a lib/libdf.so lib/libdf.so.2 lib/libdf.so.2.0.0 lib/libhdf4.settings %%JAVA%%lib/libhdf_java.a %%JAVA%%lib/libhdf_java.so %%JAVA%%lib/libhdf_java.so.0 %%JAVA%%lib/libhdf_java.so.0.0.0 lib/libmfhdf.a lib/libmfhdf.so lib/libmfhdf.so.3 lib/libmfhdf.so.3.0.0 share/man/man1/ncdump.1.gz share/man/man1/ncgen.1.gz