xref: /OK3568_Linux_fs/buildroot/package/zbar/zbar.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# zbar
4#
5################################################################################
6
7ZBAR_VERSION = 0.23.90
8ZBAR_SOURCE = zbar-$(ZBAR_VERSION).tar.bz2
9ZBAR_SITE = https://www.linuxtv.org/downloads/zbar
10ZBAR_LICENSE = LGPL-2.1+
11ZBAR_LICENSE_FILES = LICENSE.md
12ZBAR_INSTALL_STAGING = YES
13ZBAR_DEPENDENCIES = libv4l jpeg $(TARGET_NLS_DEPENDENCIES)
14# uses C99 features
15ZBAR_CONF_ENV = \
16	CFLAGS="$(TARGET_CFLAGS) -std=gnu99" \
17	LIBS=$(TARGET_NLS_LIBS)
18ZBAR_CONF_OPTS = \
19	--disable-doc \
20	--without-imagemagick \
21	--without-qt \
22	--without-qt5 \
23	--without-gtk \
24	--without-x \
25	--without-java
26
27ifeq ($(BR2_PACKAGE_DBUS),y)
28ZBAR_DEPENDENCIES += dbus
29ZBAR_CONF_OPTS += --with-dbus
30else
31ZBAR_CONF_OPTS += --without-dbus
32endif
33
34ifeq ($(BR2_PACKAGE_PYTHON3),y)
35ZBAR_DEPENDENCIES += host-python3 python3
36ZBAR_CONF_OPTS += --with-python=python3
37ZBAR_CONF_ENV += PYTHON_CONFIG="$(STAGING_DIR)/usr/bin/python3-config"
38else
39ZBAR_CONF_OPTS += --with-python=no
40endif
41
42$(eval $(autotools-package))
43