git: 57d57ab258cc - main - graphics/py-tifffile: Add CODECS, PLOT, XML and ZARR options

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 25 Jul 2024 04:20:24 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=57d57ab258cc7b5e7d1ea7698849c9201fdc784f

commit 57d57ab258cc7b5e7d1ea7698849c9201fdc784f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-07-25 04:18:20 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-07-25 04:18:20 +0000

    graphics/py-tifffile: Add CODECS, PLOT, XML and ZARR options
---
 graphics/py-tifffile/Makefile | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/graphics/py-tifffile/Makefile b/graphics/py-tifffile/Makefile
index fe90e34468ba..0e5ba9a311bd 100644
--- a/graphics/py-tifffile/Makefile
+++ b/graphics/py-tifffile/Makefile
@@ -21,4 +21,17 @@ USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
+OPTIONS_DEFINE=	CODECS PLOT XML ZARR
+CODECS_DESC=	Codec for compression and predictor schemes
+PLOT_DESC=	Plotting support
+XML_DESC=	Validate and print XML
+ZARR_DESC=	Access zarr store
+
+CODECS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}imagecodecs>=2023.8.12:graphics/py-imagecodecs@${PY_FLAVOR}
+PLOT_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR}
+XML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}defusedxml>=0:devel/py-defusedxml@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR}
+ZARR_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}fsspec>=0:devel/py-fsspec@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}zarr>=0:devel/py-zarr@${PY_FLAVOR}
+
 .include <bsd.port.mk>