diff options
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/py-imagecodecs/Makefile | 39 | ||||
-rw-r--r-- | graphics/py-imagecodecs/distinfo | 3 | ||||
-rw-r--r-- | graphics/py-imagecodecs/pkg-descr | 3 |
4 files changed, 46 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 4fa1f123b2fa..9f03289c5a8a 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -913,6 +913,7 @@ SUBDIR += py-haishoku SUBDIR += py-hiplot SUBDIR += py-hsluv + SUBDIR += py-imagecodecs SUBDIR += py-imageio SUBDIR += py-imageio-ffmpeg SUBDIR += py-imagesize diff --git a/graphics/py-imagecodecs/Makefile b/graphics/py-imagecodecs/Makefile new file mode 100644 index 000000000000..5070269f21fc --- /dev/null +++ b/graphics/py-imagecodecs/Makefile @@ -0,0 +1,39 @@ +PORTNAME= imagecodecs +PORTVERSION= 2024.6.1 +CATEGORIES= graphics python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Image transformation, compression, and decompression codecs +WWW= https://github.com/cgohlke/imagecodecs + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cython3>=3.0:lang/cython3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +LIB_DEPENDS= libdeflate.so:archivers/libdeflate \ + libjbig.so:graphics/jbigkit\ + libjpegxr.so:graphics/libjxr \ + liblcms2.so:graphics/lcms2 \ + libLerc.so:graphics/lerc \ + liblz4.so:archivers/liblz4 \ + libopenjp2.so:graphics/openjpeg \ + libpng16.so:graphics/png \ + libtiff.so:graphics/tiff \ + libwebp.so:graphics/webp \ + libzstd.so:archivers/zstd +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} + +USES= jpeg localbase python:3.9+ +USE_PYTHON= autoplist concurrent pep517 + +CPPFLAGS+= -I${LOCALBASE}/include/jxrlib -I${LOCALBASE}/include/openjpeg-2.5 + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include <bsd.port.mk> diff --git a/graphics/py-imagecodecs/distinfo b/graphics/py-imagecodecs/distinfo new file mode 100644 index 000000000000..c3faa6d05d91 --- /dev/null +++ b/graphics/py-imagecodecs/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1721822992 +SHA256 (imagecodecs-2024.6.1.tar.gz) = 0f3e94b7f51e2f78287b7ffae82cd850b1007639148894538274fa50bd179886 +SIZE (imagecodecs-2024.6.1.tar.gz) = 9459867 diff --git a/graphics/py-imagecodecs/pkg-descr b/graphics/py-imagecodecs/pkg-descr new file mode 100644 index 000000000000..ac29e778274b --- /dev/null +++ b/graphics/py-imagecodecs/pkg-descr @@ -0,0 +1,3 @@ +Imagecodecs is a Python library that provides block-oriented, in-memory buffer +transformation, compression, and decompression functions for use in Tifffile, +Czifile, Zarr, kerchunk, and other scientific image input/output packages. |