summaryrefslogtreecommitdiff
path: root/package/irda-utils/irda.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/irda-utils/irda.mk')
-rw-r--r--package/irda-utils/irda.mk57
1 files changed, 57 insertions, 0 deletions
diff --git a/package/irda-utils/irda.mk b/package/irda-utils/irda.mk
new file mode 100644
index 000000000..61d642655
--- /dev/null
+++ b/package/irda-utils/irda.mk
@@ -0,0 +1,57 @@
+#############################################################
+#
+# 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_SOURCE)
+IRDA_UTILS_DIR:=$(BUILD_DIR)/irda-utils-$(IRDA_UTILS_VERSION)
+
+ifeq ($(IRDA_IRATTACH),y)
+IRDA_DIRS += irattach
+endif
+ifeq ($(IRDA_IRDAPING),y)
+IRDA_DIRS += irdaping
+endif
+ifeq ($(IRDA_IRNETD),y)
+IRDA_DIRS += irnetd
+endif
+ifeq ($(IRDA_PSION),y)
+IRDA_DIRS += psion
+endif
+ifeq ($(IRDA_TEKRAM),y)
+IRDA_DIRS += tekram
+endif
+ifeq ($(IRDA_FINDCHIP),y)
+IRDA_DIRS += findchip
+endif
+ifeq ($(IRDA_IRDADUMP),y)
+IRDA_DIRS += irdadump
+endif
+ifeq ($(IRDA_SMCINIT),y)
+IRDA_DIRS += smcinit
+endif
+
+IRDA_UTILS_MAKE_OPT:=-e "DIRS=$(IRDA_DIRS)"
+IRDA_UTILS_MAKE_ENV:=CC=$(TARGET_CC) LD=$(TARGET_LD) AR=$(TARGET_AR) RANLIB=$(TARGET_RANLIB) ROOT=$(TARGET_DIR) PREFIX=$(TARGET_DIR)
+
+# Since there is no configure-script
+
+$(IRDA_UTILS_DIR)/.configured: $(IRDA_UTILS_DIR)/.patched
+ touch $@
+
+irda-utils: uclibc $(DL_DIR)/$(IRDA_UTILS_SOURCE) $(IRDA_UTILS_DIR)/.installed
+
+irda-utils-clean: $(IRDA_UTILS_DIR)/.clean
+
+irda-utils-dirclean: $(IRDA_UTILS_DIR)/.dirclean
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_IRDA_UTILS)),y)
+TARGETS+=irda-utils
+endif