2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-25 16:15:40 +02:00
|
|
|
#
|
|
|
|
# zxing
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2013-12-13 04:15:55 +01:00
|
|
|
ZXING_VERSION = 2.3.0
|
2012-03-25 16:15:40 +02:00
|
|
|
ZXING_SITE = http://zxing.googlecode.com/files
|
|
|
|
ZXING_SOURCE = ZXing-$(ZXING_VERSION).zip
|
2014-01-02 14:01:48 +01:00
|
|
|
ZXING_LICENSE = Apache-2.0
|
2012-08-19 22:08:44 +02:00
|
|
|
ZXING_LICENSE_FILES = COPYING
|
2012-03-25 16:15:40 +02:00
|
|
|
ZXING_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifneq ($(BR2_ENABLE_LOCALE),y)
|
2014-02-01 22:03:01 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
2012-03-25 16:15:40 +02:00
|
|
|
ZXING_DEPENDENCIES += libiconv
|
2014-02-01 22:03:01 +01:00
|
|
|
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
|
2012-03-25 16:15:40 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define ZXING_EXTRACT_CMDS
|
|
|
|
unzip -d $(BUILD_DIR) $(DL_DIR)/$(ZXING_SOURCE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ZXING_BUILD_CMDS
|
2014-02-01 22:03:01 +01:00
|
|
|
$(MAKE) -C $(@D)/cpp/core/src $(TARGET_CONFIGURE_OPTS) $(ZING_MAKE_OPT)
|
2012-03-25 16:15:40 +02:00
|
|
|
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
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(generic-package))
|