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>
(cherry picked from commit 84ad5c22d0)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Julien Olivain 2024-05-09 21:37:36 +02:00 committed by Peter Korsgaard
parent 5dcf2d8849
commit fe189deeed

View File

@ -18,7 +18,6 @@ ZBAR_CONF_ENV = \
LIBS=$(TARGET_NLS_LIBS)
ZBAR_CONF_OPTS = \
--disable-doc \
--without-imagemagick \
--without-qt \
--without-qt5 \
--without-gtk \
@ -32,6 +31,13 @@ else
ZBAR_CONF_OPTS += --without-dbus
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)
ZBAR_DEPENDENCIES += host-python3 python3
ZBAR_CONF_OPTS += --with-python=python3