package/python-pillow: fix webp DependencyException

As of baa3db0c34 webp mux/demux are no
longer optional for webp support in python-pillow. The
-Cwebpmux=enable/disable option no longer exists.

Fixes:
DependencyException:
The headers or library files could not be found for webp,
which was requested by the option flag --enable-webp

Fixes: baa3db0c34

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
James Hilliard 2024-10-31 16:15:35 -06:00 committed by Arnout Vandecappelle
parent 012bbb70c2
commit a97a592a73

View File

@ -58,16 +58,11 @@ else
PYTHON_PILLOW_BUILD_OPTS += -Ctiff=disable
endif
ifeq ($(BR2_PACKAGE_WEBP),y)
ifeq ($(BR2_PACKAGE_WEBP)$(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yyy)
PYTHON_PILLOW_DEPENDENCIES += webp
PYTHON_PILLOW_BUILD_OPTS += -Cwebp=enable
ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
PYTHON_PILLOW_BUILD_OPTS += -Cwebpmux=enable
else
PYTHON_PILLOW_BUILD_OPTS += -Cwebpmux=disable
endif
else
PYTHON_PILLOW_BUILD_OPTS += -Cwebp=disable -Cwebpmux=disable
PYTHON_PILLOW_BUILD_OPTS += -Cwebp=disable
endif
$(eval $(python-package))