Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2024 21:18:11 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 042ae37fbe5f - main - graphics/py-imagecodecs: Add py-imagecodecs 2024.6.1
Message-ID:  <202407242118.46OLIB2H064484@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=042ae37fbe5ff37b0978edf3289a5dc7dee19c79

commit 042ae37fbe5ff37b0978edf3289a5dc7dee19c79
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-24 21:15:32 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-24 21:15:32 +0000

    graphics/py-imagecodecs: Add py-imagecodecs 2024.6.1
    
    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.
---
 graphics/Makefile                 |  1 +
 graphics/py-imagecodecs/Makefile  | 39 +++++++++++++++++++++++++++++++++++++++
 graphics/py-imagecodecs/distinfo  |  3 +++
 graphics/py-imagecodecs/pkg-descr |  3 +++
 4 files changed, 46 insertions(+)

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407242118.46OLIB2H064484>