summaryrefslogtreecommitdiffstats
path: root/package/zxing/zxing.mk
blob: 54383e71ad908896a5017966aa2ab3260fb903ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#############################################################
#
# zxing
#
#############################################################
ZXING_VERSION = 2.0
ZXING_SITE = http://zxing.googlecode.com/files
ZXING_SOURCE = ZXing-$(ZXING_VERSION).zip
ZXING_INSTALL_STAGING = YES

ifneq ($(BR2_ENABLE_LOCALE),y)
ZXING_DEPENDENCIES += libiconv
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)
endef

define ZXING_INSTALL_STAGING_CMDS
	$(MAKE) -C $(@D)/cpp/core/src DESTDIR=$(STAGING_DIR) install
endef

define ZXING_UNINSTALL_STAGING_CMDS
	$(MAKE) -C $(@D)/cpp/core/src DESTDIR=$(STAGING_DIR) uninstall
endef

define ZXING_INSTALL_TARGET_CMDS
	$(MAKE) -C $(@D)/cpp/core/src DESTDIR=$(TARGET_DIR) install
endef

define ZXING_UNINSTALL_TARGET_CMDS
	$(MAKE) -C $(@D)/cpp/core/src DESTDIR=$(TARGET_DIR) uninstall
endef

$(eval $(generic-package))