kumquat-buildroot/package/zbar/zbar.mk
Fabrice Fontaine 23e774d2de package/zbar: add ZBAR_CPE_ID_VENDOR
cpe:2.3🅰️zbar_project:zbar is a valid CPE identifier for this package:

  https://nvd.nist.gov/products/cpe/detail/438B9E70-F8E2-4318-83B5-46A0DF320CE3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-09-14 23:30:25 +02:00

44 lines
1.1 KiB
Makefile

################################################################################
#
# zbar
#
################################################################################
ZBAR_VERSION = 0.23.90
ZBAR_SOURCE = zbar-$(ZBAR_VERSION).tar.bz2
ZBAR_SITE = https://www.linuxtv.org/downloads/zbar
ZBAR_LICENSE = LGPL-2.1+
ZBAR_LICENSE_FILES = LICENSE.md
ZBAR_CPE_ID_VENDOR = zbar_project
ZBAR_INSTALL_STAGING = YES
ZBAR_DEPENDENCIES = libv4l jpeg $(TARGET_NLS_DEPENDENCIES)
# uses C99 features
ZBAR_CONF_ENV = \
CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
LIBS=$(TARGET_NLS_LIBS)
ZBAR_CONF_OPTS = \
--disable-doc \
--without-imagemagick \
--without-qt \
--without-qt5 \
--without-gtk \
--without-x \
--without-java
ifeq ($(BR2_PACKAGE_DBUS),y)
ZBAR_DEPENDENCIES += dbus
ZBAR_CONF_OPTS += --with-dbus
else
ZBAR_CONF_OPTS += --without-dbus
endif
ifeq ($(BR2_PACKAGE_PYTHON3),y)
ZBAR_DEPENDENCIES += host-python3 python3
ZBAR_CONF_OPTS += --with-python=python3
ZBAR_CONF_ENV += PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python3-config"
else
ZBAR_CONF_OPTS += --with-python=no
endif
$(eval $(autotools-package))