Date: Wed, 19 Dec 2018 02:19:38 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r487783 - in head/science: . h5z-zfp h5z-zfp/files Message-ID: <201812190219.wBJ2Jc38021941@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Wed Dec 19 02:19:38 2018 New Revision: 487783 URL: https://svnweb.freebsd.org/changeset/ports/487783 Log: New port: science/h5z-zfp: Registered ZFP compression plugin for HDF5 Added: head/science/h5z-zfp/ head/science/h5z-zfp/Makefile (contents, props changed) head/science/h5z-zfp/distinfo (contents, props changed) head/science/h5z-zfp/files/ head/science/h5z-zfp/files/patch-src_Makefile (contents, props changed) head/science/h5z-zfp/pkg-descr (contents, props changed) Modified: head/science/Makefile Modified: head/science/Makefile ============================================================================== --- head/science/Makefile Wed Dec 19 01:56:08 2018 (r487782) +++ head/science/Makefile Wed Dec 19 02:19:38 2018 (r487783) @@ -95,6 +95,7 @@ SUBDIR += gtamsanalyzer SUBDIR += gwyddion SUBDIR += h5utils + SUBDIR += h5z-zfp SUBDIR += harminv SUBDIR += hdf SUBDIR += hdf5 Added: head/science/h5z-zfp/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/h5z-zfp/Makefile Wed Dec 19 02:19:38 2018 (r487783) @@ -0,0 +1,38 @@ +# $FreeBSD$ + +PORTNAME= h5z-zfp +DISTVERSIONPREFIX= v +DISTVERSION= 0.9.0 +CATEGORIES= science + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Registered ZFP compression plugin for HDF5 + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= bash:shells/bash +LIB_DEPENDS= libhdf5.so:science/hdf5 \ + libzfp.so:devel/zfp + +USES= gmake localbase +USE_GITHUB= yes +GH_ACCOUNT= LLNL +GH_PROJECT= ${PORTNAME:tu} +USE_LDCONFIG= yes + +MAKE_ARGS= SHELL=${LOCALBASE}/bin/bash \ + HDF5_HOME=${STAGEDIR}${LOCALBASE} HDF5_LIB=${LOCALBASE}/lib \ + ZFP_HOME=${STAGEDIR}${LOCALBASE} ZFP_LIB=${LOCALBASE}/lib \ + PREPATH=-Wl,-rpath= SOEXT=so SHFLAG=-shared + +CFLAGS+= -fPIC + +PLIST_FILES= include/H5Zzfp.h \ + include/H5Zzfp_lib.h \ + include/H5Zzfp_plugin.h \ + include/H5Zzfp_props.h \ + lib/libh5zzfp.so \ + plugin/libh5zzfp.so + +.include <bsd.port.mk> Added: head/science/h5z-zfp/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/h5z-zfp/distinfo Wed Dec 19 02:19:38 2018 (r487783) @@ -0,0 +1,3 @@ +TIMESTAMP = 1545184047 +SHA256 (LLNL-H5Z-ZFP-v0.9.0_GH0.tar.gz) = 91d566e2d0175c929f114ce100151478450cfedee2d15fc99eb61fd931d9f389 +SIZE (LLNL-H5Z-ZFP-v0.9.0_GH0.tar.gz) = 123091 Added: head/science/h5z-zfp/files/patch-src_Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/h5z-zfp/files/patch-src_Makefile Wed Dec 19 02:19:38 2018 (r487783) @@ -0,0 +1,49 @@ +--- src/Makefile.orig 2018-04-06 16:34:55 UTC ++++ src/Makefile +@@ -30,33 +30,33 @@ H5Zzfp_props_f.o H5Zzfp_props_f.mod: H5Z + $(FC) -c $< -o $@ $(FCFLAGS) -I$(H5Z_ZFP_BASE) -I$(ZFP_INC) -I$(HDF5_INC) + + # The filter member of the filter library +-libh5zzfp.a(H5Zzfp_lib.o): H5Zzfp_lib.o +- $(AR) cr libh5zzfp.a $< ++libh5zzfp-s.$(SOEXT)(H5Zzfp_lib.o): H5Zzfp_lib.o ++ $(CC) -shared -o libh5zzfp-s.$(SOEXT) $< + + # The C properties interface member of the filter library +-libh5zzfp.a(H5Zzfp_props.o): H5Zzfp_props.o +- $(AR) cr libh5zzfp.a $< ++libh5zzfp-s.$(SOEXT)(H5Zzfp_props.o): H5Zzfp_props.o ++ $(CC) -shared -o libh5zzfp-s.$(SOEXT) $< + + # The Fortran properties interface member of the filter library +-libh5zzfp.a(H5Zzfp_props_f.o): H5Zzfp_props_f.o +- $(AR) cr libh5zzfp.a $< ++libh5zzfp-s.$(SOEXT)(H5Zzfp_props_f.o): H5Zzfp_props_f.o ++ $(CC) -shared -o libh5zzfp-s.$(SOEXT) $< + + # Alias target for filter library, conditionally includes Fortran +-LIBOBJ = libh5zzfp.a(H5Zzfp_lib.o) libh5zzfp.a(H5Zzfp_props.o) ++LIBOBJ = libh5zzfp-s.$(SOEXT)(H5Zzfp_lib.o) libh5zzfp-s.$(SOEXT)(H5Zzfp_props.o) + ifneq ($(FC),) +-LIBOBJ += libh5zzfp.a(H5Zzfp_props_f.o) ++LIBOBJ += libh5zzfp-s.$(SOEXT)(H5Zzfp_props_f.o) + endif + lib: $(LIBOBJ) + + all: lib plugin + + install: all +- $(INSTALL) -d $(PREFIX)/{plugin,include,lib} +- $(INSTALL) plugin/libh5zzfp.$(SOEXT) $(PREFIX)/plugin +- $(INSTALL) libh5zzfp.a $(PREFIX)/lib +- $(INSTALL) -m 644 H5Zzfp.h H5Zzfp_lib.h H5Zzfp_plugin.h H5Zzfp_props.h $(PREFIX)/include ++ $(INSTALL) -d $(DESTDIR)$(PREFIX)/{plugin,include,lib} ++ $(INSTALL) plugin/libh5zzfp.$(SOEXT) $(DESTDIR)$(PREFIX)/plugin ++ $(INSTALL) libh5zzfp-s.$(SOEXT) $(DESTDIR)$(PREFIX)/lib/libh5zzfp.so ++ $(INSTALL) -m 644 H5Zzfp.h H5Zzfp_lib.h H5Zzfp_plugin.h H5Zzfp_props.h $(DESTDIR)$(PREFIX)/include + ifneq ($(FC),) +- $(INSTALL) -m 644 *.[mM][oO][dD] $(PREFIX)/include ++ $(INSTALL) -m 644 *.[mM][oO][dD] $(DESTDIR)$(PREFIX)/include + endif + + clean: Added: head/science/h5z-zfp/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/science/h5z-zfp/pkg-descr Wed Dec 19 02:19:38 2018 (r487783) @@ -0,0 +1,10 @@ +H5Z-ZFP is a compression filter for HDF5 using the ZFP compression library, +supporting lossy compression of floating point and integer data to meet bitrate, +accuracy, and/or precision targets. The filter uses the registered HDF5 filter +ID, 32013. It supports single and double precision floating point and integer +data chunked in 1, 2 or 3 dimensions. The filter will function on datasets of +more than 3 dimensions, albiet at the probable expense of compression +performance, as long as the chunking is such that no more than 3 dimensions of a +chunk are non-unity. + +WWW: https://h5z-zfp.readthedocs.io/en/latest/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812190219.wBJ2Jc38021941>