package/zbar: add the optional imagemagick dependency

When ImageMagick is selected, the "zbarimg" program is compiled and
installed on target. It allows to decode a QR code from an image file.

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Julien Olivain 2024-05-09 21:37:36 +02:00 committed by Thomas Petazzoni
parent b29fe22257
commit 84ad5c22d0

View File

@ -18,7 +18,6 @@ ZBAR_CONF_ENV = \
LIBS=$(TARGET_NLS_LIBS) LIBS=$(TARGET_NLS_LIBS)
ZBAR_CONF_OPTS = \ ZBAR_CONF_OPTS = \
--disable-doc \ --disable-doc \
--without-imagemagick \
--without-qt \ --without-qt \
--without-qt5 \ --without-qt5 \
--without-gtk \ --without-gtk \
@ -32,6 +31,13 @@ else
ZBAR_CONF_OPTS += --without-dbus ZBAR_CONF_OPTS += --without-dbus
endif endif
ifeq ($(BR2_PACKAGE_IMAGEMAGICK),y)
ZBAR_DEPENDENCIES += imagemagick
ZBAR_CONF_OPTS += --with-imagemagick
else
ZBAR_CONF_OPTS += --without-imagemagick
endif
ifeq ($(BR2_PACKAGE_PYTHON3),y) ifeq ($(BR2_PACKAGE_PYTHON3),y)
ZBAR_DEPENDENCIES += host-python3 python3 ZBAR_DEPENDENCIES += host-python3 python3
ZBAR_CONF_OPTS += --with-python=python3 ZBAR_CONF_OPTS += --with-python=python3