aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-11-01 06:50:43 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-11-01 10:36:07 +0000
commit7605224ac113f2f5e03b9dbce519d151fd9270ef (patch)
tree6a6bc8b313ae1928b39d331696c990a24387ae0d
parent247eb950f81b9562446bbd38cde29692d52ab15e (diff)
devel/py-zfp: New port: High throughput library for compressed floating-point arrays
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-zfp/Makefile25
-rw-r--r--devel/py-zfp/distinfo3
-rw-r--r--devel/py-zfp/files/patch-CMakeLists.txt8
-rw-r--r--devel/py-zfp/pkg-descr4
5 files changed, 41 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 647778df374a..09a1f8aa3f0c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5585,6 +5585,7 @@
SUBDIR += py-zc.buildout
SUBDIR += py-zclockfile
SUBDIR += py-zconfig
+ SUBDIR += py-zfp
SUBDIR += py-zict
SUBDIR += py-zipp
SUBDIR += py-zope.app.basicskin
diff --git a/devel/py-zfp/Makefile b/devel/py-zfp/Makefile
new file mode 100644
index 000000000000..9874fb5ff7f9
--- /dev/null
+++ b/devel/py-zfp/Makefile
@@ -0,0 +1,25 @@
+PORTNAME= zfp
+DISTVERSION= 1.0.0
+CATEGORIES= devel science
+MASTER_SITES= https://github.com/LLNL/${PORTNAME}/releases/download/${DISTVERSION}/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= High throughput library for compressed floating-point arrays
+WWW= https://computing.llnl.gov/projects/zfp
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/scikit-build-cmake/LICENSE
+
+BUILD_DEPENDS= ${PYNUMPY}
+LIB_DEPENDS= libzfp.so:devel/zfp
+RUN_DEPENDS= ${PYNUMPY}
+
+USES= cmake localbase:ldflags python
+USE_PYTHON= cython flavors
+
+WRKSRC_SUBDIR= python
+
+PLIST_FILES= ${PYTHON_SITELIBDIR}/zfpy${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/devel/py-zfp/distinfo b/devel/py-zfp/distinfo
new file mode 100644
index 000000000000..dace46c794cb
--- /dev/null
+++ b/devel/py-zfp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660978478
+SHA256 (zfp-1.0.0.tar.gz) = 0ea08ae3e50e3c92f8b8cf41ba5b6e2de8892bc4a4ca0c59b8945b6c2ab617c4
+SIZE (zfp-1.0.0.tar.gz) = 180465
diff --git a/devel/py-zfp/files/patch-CMakeLists.txt b/devel/py-zfp/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..8e349e8ec025
--- /dev/null
+++ b/devel/py-zfp/files/patch-CMakeLists.txt
@@ -0,0 +1,8 @@
+--- CMakeLists.txt.orig 2022-08-01 21:04:02 UTC
++++ CMakeLists.txt
+@@ -1,3 +1,5 @@
++cmake_minimum_required(VERSION 3.9)
++
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/scikit-build-cmake)
+ include(UseCython)
+ include(FindPythonExtensions)
diff --git a/devel/py-zfp/pkg-descr b/devel/py-zfp/pkg-descr
new file mode 100644
index 000000000000..f14c4ca260e1
--- /dev/null
+++ b/devel/py-zfp/pkg-descr
@@ -0,0 +1,4 @@
+zfp is a BSD licensed open source C/C++ library for compressed floating-point
+arrays that support very high throughput read and write random access. zfp was
+written by Peter Lindstrom, Markus Salasoo, and Matt Larsen at Lawrence
+Livermore National Laboratory.