95b623963a
The zxing package currently selects libiconv when locale support is not available in the toolchain. This patch stops the zxing package selecting libiconv. The zxing package now uses uses libiconv if it's available otherwise iconv support is disabled in zxing. Signed-off-by: Martin Bark <martin@barkynet.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# zxing
|
|
#
|
|
################################################################################
|
|
|
|
ZXING_VERSION = 2.3.0
|
|
ZXING_SITE = http://zxing.googlecode.com/files
|
|
ZXING_SOURCE = ZXing-$(ZXING_VERSION).zip
|
|
ZXING_LICENSE = Apache-2.0
|
|
ZXING_LICENSE_FILES = COPYING
|
|
ZXING_INSTALL_STAGING = YES
|
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
ZXING_DEPENDENCIES += libiconv
|
|
else
|
|
# There is no locale support in the toolchain and libiconv
|
|
# is not available so disable iconv support in zxing
|
|
ZING_MAKE_OPT=CXXFLAGS+="-DNO_ICONV"
|
|
endif
|
|
endif
|
|
|
|
define ZXING_EXTRACT_CMDS
|
|
unzip -d $(BUILD_DIR) $(DL_DIR)/$(ZXING_SOURCE)
|
|
endef
|
|
|
|
define ZXING_BUILD_CMDS
|
|
$(MAKE) -C $(@D)/cpp/core/src $(TARGET_CONFIGURE_OPTS) $(ZING_MAKE_OPT)
|
|
endef
|
|
|
|
define ZXING_INSTALL_STAGING_CMDS
|
|
$(MAKE) -C $(@D)/cpp/core/src DESTDIR=$(STAGING_DIR) install
|
|
endef
|
|
|
|
define ZXING_INSTALL_TARGET_CMDS
|
|
$(MAKE) -C $(@D)/cpp/core/src DESTDIR=$(TARGET_DIR) install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|