summaryrefslogtreecommitdiffstats
path: root/package/irda-utils/irda.mk
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-09-05 03:40:47 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-09-05 03:40:47 +0000
commit7c48a8c33b2ea6fb424314e57f4b20e04bfe333c (patch)
treec8032310022390664d4117193e595f882c946968 /package/irda-utils/irda.mk
parent95387495822427b179b07b4ead711f3bed8d6acb (diff)
downloadbuildroot-novena-7c48a8c33b2ea6fb424314e57f4b20e04bfe333c.tar.gz
buildroot-novena-7c48a8c33b2ea6fb424314e57f4b20e04bfe333c.zip
Add irda-utils package, Courtesy of Benjamin Tietz
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