summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Bark <martin@barkynet.com>2014-02-01 21:03:01 +0000
committerPeter Korsgaard <peter@korsgaard.com>2014-02-02 10:52:27 +0100
commit95b623963a8c90e6776ba025869ee19bb98480b1 (patch)
tree8b20eb2e940955abd0025e37d4ec5e5846036dfe
parent71094c716d7d62171bef7d9a2e01875cb07fa81f (diff)
downloadbuildroot-95b623963a8c90e6776ba025869ee19bb98480b1.tar.gz
buildroot-95b623963a8c90e6776ba025869ee19bb98480b1.zip
zxing: don't select libiconv
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>
-rw-r--r--package/zxing/Config.in1
-rw-r--r--package/zxing/zxing.mk8
2 files changed, 7 insertions, 2 deletions
diff --git a/package/zxing/Config.in b/package/zxing/Config.in
index b69dfc9230..1e04635fab 100644
--- a/package/zxing/Config.in
+++ b/package/zxing/Config.in
@@ -4,7 +4,6 @@ comment "zxing needs a toolchain w/ C++"
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
diff --git a/package/zxing/zxing.mk b/package/zxing/zxing.mk
index 367a84f54a..5942167fde 100644
--- a/package/zxing/zxing.mk
+++ b/package/zxing/zxing.mk
@@ -12,7 +12,13 @@ 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
@@ -20,7 +26,7 @@ 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
OpenPOWER on IntegriCloud