summaryrefslogtreecommitdiff
path: root/package/irda-utils/irda-utils.mk
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-08 00:07:16 -0500
committerPeter Korsgaard <jacmet@sunsite.dk>2011-01-14 13:25:34 +0100
commit86f2543c8ce2467847d397f52f570f0480b2f2a7 (patch)
treeb055bf14880b11ba22b4948a6e789cd9c200d1d3 /package/irda-utils/irda-utils.mk
parent921f75e2607e7f3d16b7ba8ee62ed68a3632eeb7 (diff)
irda-utils: new package for IrDA devices
[Peter: Small tweaks, add patch descriptions] Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/irda-utils/irda-utils.mk')
-rw-r--r--package/irda-utils/irda-utils.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/irda-utils/irda-utils.mk b/package/irda-utils/irda-utils.mk
new file mode 100644
index 000000000..e1935c68b
--- /dev/null
+++ b/package/irda-utils/irda-utils.mk
@@ -0,0 +1,46 @@
+#############################################################
+#
+# irda-utils
+#
+#############################################################
+
+IRDA_UTILS_VERSION = 0.9.18
+IRDA_UTILS_SOURCE = irda-utils-$(IRDA_UTILS_VERSION).tar.gz
+IRDA_UTILS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/irda
+
+IRDA_UTILS_CFLAGS = $(TARGET_CFLAGS) -I.
+ifeq ($(BR2_USE_MMU),)
+IRDA_UTILS_CFLAGS += -DNO_FORK=1
+endif
+
+define IRDA_UTILS_BUILD_CMDS
+ $(MAKE) \
+ CC="$(TARGET_CC)" \
+ CFLAGS="$(IRDA_UTILS_CFLAGS)" \
+ SYS_INCLUDES= \
+ DIRS="irattach irdaping irnetd" \
+ V=1 -C $(@D)
+endef
+
+define IRDA_UTILS_CLEAN_CMDS
+ $(MAKE) -C $(@D) clean
+endef
+
+IRDA_UTILS_SBINS- =
+IRDA_UTILS_SBINS-y =
+IRDA_UTILS_SBINS-$(BR2_PACKAGE_IRDA_UTILS_IRATTACH) += irattach
+IRDA_UTILS_SBINS-$(BR2_PACKAGE_IRDA_UTILS_IRDAPING) += irdaping
+IRDA_UTILS_SBINS-$(BR2_PACKAGE_IRDA_UTILS_IRNETD) += irnetd
+IRDA_UTILS_SBINS- += $(IRDA_UTILS_SBINS-y)
+
+define IRDA_UTILS_INSTALL_TARGET_CMDS
+ for i in $(IRDA_UTILS_SBINS-y); do \
+ $(INSTALL) -m 0755 -D $(@D)/$$i/$$i $(TARGET_DIR)/usr/sbin/$$i; \
+ done
+endef
+
+define IRDA_UTILS_UNINSTALL_TARGET_CMDS
+ rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,$(IRDA_UTILS_SBINS-))
+endef
+
+$(eval $(call GENTARGETS,package,irda-utils))