package/wpewebkit: use libavif if enabled

Make wpewebkit pick a value for the USE_AVIF option depending
on BR2_PACKAGE_LIBAVIF.

Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Adrian Perez de Castro
2024-05-22 12:16:07 +03:00
committed by Thomas Petazzoni
parent 9f458cd6c2
commit afbe0fe8f5

View File

@@ -28,8 +28,7 @@ WPEWEBKIT_CONF_OPTS = \
-DENABLE_INTROSPECTION=OFF \
-DENABLE_MINIBROWSER=OFF \
-DENABLE_WEB_RTC=OFF \
-DUSE_ATK=OFF \
-DUSE_AVIF=OFF
-DUSE_ATK=OFF
ifeq ($(BR2_PACKAGE_WPEWEBKIT_SANDBOX),y)
WPEWEBKIT_CONF_OPTS += \
@@ -61,6 +60,13 @@ else
WPEWEBKIT_CONF_OPTS += -DENABLE_MEDIA_STREAM=OFF
endif
ifeq ($(BR2_PACKAGE_LIBAVIF),y)
WPEWEBKIT_CONF_OPTS += -DUSE_AVIF=ON
WPEWEBKIT_DEPENDENCIES += libavif
else
WPEWEBKIT_CONF_OPTS += -DUSE_AVIF=OFF
endif
ifeq ($(BR2_PACKAGE_WPEWEBKIT_USE_GSTREAMER_GL),y)
WPEWEBKIT_CONF_OPTS += -DUSE_GSTREAMER_GL=ON
else