git: 0712f6ed9a50 - main - graphics/py-imagecodecs: Add ALL option

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=0712f6ed9a500118f7608043b9cc6c733952d0d1

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

    graphics/py-imagecodecs: Add ALL option
---
 graphics/py-imagecodecs/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/graphics/py-imagecodecs/Makefile b/graphics/py-imagecodecs/Makefile
index 5070269f21fc..54e1fa2c0647 100644
--- a/graphics/py-imagecodecs/Makefile
+++ b/graphics/py-imagecodecs/Makefile
@@ -33,6 +33,14 @@ USE_PYTHON=	autoplist concurrent pep517
 
 CPPFLAGS+=	-I${LOCALBASE}/include/jxrlib -I${LOCALBASE}/include/openjpeg-2.5
 
+OPTIONS_DEFINE=	ALL
+ALL_DESC=	All optional dependencies
+
+# Remove graphics/py-tifffile from RUN_DEPENDS to avoid cyclic dependency
+ALL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}matplotlib>=0:math/py-matplotlib@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}numcodecs>=0:misc/py-numcodecs@${PY_FLAVOR}
+#			${PYTHON_PKGNAMEPREFIX}tifffile>=0:graphics/py-tifffile@${PY_FLAVOR}
+
 post-install:
 	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +