eda35c429b
Fix the following build failure with python raised since its activation
by commit cfc80eeeb4
:
In file included from /home/giuliobenetti/autobuild/run/instance-2/output-1/host/include/python3.9/Python.h:63,
from python/zbarmodule.h:24,
from python/zbarmodule.c:24:
/home/giuliobenetti/autobuild/run/instance-2/output-1/host/include/python3.9/pyport.h:741:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
741 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
Fixes:
- http://autobuild.buildroot.org/results/43a8c8d5403c329f2d754ed09807a53772174397
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
43 lines
1.0 KiB
Makefile
43 lines
1.0 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_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))
|