config BR2_PACKAGE_ZXING
bool "zxing"
depends on BR2_INSTALL_LIBSTDCPP
- select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
help
ZXing (pronounced "zebra crossing") is an open-source,
multi-format 1D/2D barcode image processing library
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
endef
define ZXING_BUILD_CMDS
- $(MAKE) -C $(@D)/cpp/core/src $(TARGET_CONFIGURE_OPTS)
+ $(MAKE) -C $(@D)/cpp/core/src $(TARGET_CONFIGURE_OPTS) $(ZING_MAKE_OPT)
endef
define ZXING_INSTALL_STAGING_CMDS