aboutsummaryrefslogtreecommitdiff
path: root/package/zxing/zxing.mk
diff options
context:
space:
mode:
authorGravatar Frank Hunleth <fhunleth@troodon-software.com>2012-03-25 14:15:40 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2012-06-24 18:36:37 +0200
commit47aa58a4ddd3774fa78acffbf85384c558b7f2dd (patch)
treeffe5bfc27e1611955d14fbc207dad1cd1de53fd5 /package/zxing/zxing.mk
parent5016aa02fb51dbd73461f65ed8c7d9b52539a988 (diff)
downloadbuildroot-47aa58a4ddd3774fa78acffbf85384c558b7f2dd.tar.gz
buildroot-47aa58a4ddd3774fa78acffbf85384c558b7f2dd.tar.bz2
New package: zxing
[Peter: build using make instead of scons, fixup whitespace, target install] Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/zxing/zxing.mk')
-rw-r--r--package/zxing/zxing.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/zxing/zxing.mk b/package/zxing/zxing.mk
new file mode 100644
index 0000000000..9bde4b7535
--- /dev/null
+++ b/package/zxing/zxing.mk
@@ -0,0 +1,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 $(call GENTARGETS))