Files
ports/graphics/py-willow/Makefile
T
Po-Chuan Hsieh 78d345a8d0 graphics/py-willow: Enable HEIF option after b280ef6a26 and 2e5b12893e
- Bump PORTREVISION for dependency change
2024-11-15 18:17:13 +08:00

40 lines
1.3 KiB
Makefile

PORTNAME= willow
PORTVERSION= 1.9.0
PORTREVISION= 2
CATEGORIES= graphics python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Wrapper that combines multiple Python image libraries into one API
WWW= https://willow.wagtail.org/latest/ \
https://github.com/wagtail/Willow
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}defusedxml>=0.7<1.0:devel/py-defusedxml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}filetype>=1.0.7:devel/py-filetype@${PY_FLAVOR}
USES= python:3.9+
USE_PYTHON= autoplist concurrent pep517
NO_ARCH= yes
OPTIONS_DEFINE= HEIF
OPTIONS_MULTI= BACKEND
OPTIONS_MULTI_BACKEND= PILLOW WAND OPENCV
OPTIONS_DEFAULT=HEIF PILLOW
HEIF_DESC= HEIF support
OPENCV_DESC= Use OpenCV as backend
PILLOW_DESC= Use Pillow as backend
WAND_DESC= Use Wand as backend
HEIF_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow-heif>=0.13.0<1.0.0:graphics/py-pillow-heif@${PY_FLAVOR}
OPENCV_RUN_DEPENDS= opencv>=0:graphics/opencv
PILLOW_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=9.1.0<12.0.0:graphics/py-pillow@${PY_FLAVOR}
WAND_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wand>=0.6<1.0:graphics/py-wand@${PY_FLAVOR}
.include <bsd.port.mk>