From: llandwerlin at gmail.com <llandwerlin@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/7] package: added lirc
Date: Wed, 20 Jan 2010 01:05:32 +0100 [thread overview]
Message-ID: <1263945936-8613-3-git-send-email-llandwerlin@gmail.com> (raw)
In-Reply-To: <20100119201528.3733.74306.stgit@localhost.localdomain>
From: Lionel Landwerlin <llandwerlin@gmail.com>
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
package/Config.in | 1 +
package/lirc/Config.in | 37 +++++++++++++++++++++++++++++++++++++
package/lirc/S70lircd | 24 ++++++++++++++++++++++++
package/lirc/lirc.mk | 39 +++++++++++++++++++++++++++++++++++++++
4 files changed, 101 insertions(+), 0 deletions(-)
create mode 100644 package/lirc/Config.in
create mode 100644 package/lirc/S70lircd
create mode 100644 package/lirc/lirc.mk
diff --git a/package/Config.in b/package/Config.in
index 6adf913..f5d38c5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -251,6 +251,7 @@ source "package/iostat/Config.in"
source "package/libaio/Config.in"
source "package/libraw1394/Config.in"
source "package/libusb/Config.in"
+source "package/lirc/Config.in"
source "package/lm-sensors/Config.in"
source "package/lvm2/Config.in"
source "package/mdadm/Config.in"
diff --git a/package/lirc/Config.in b/package/lirc/Config.in
new file mode 100644
index 0000000..112d00d
--- /dev/null
+++ b/package/lirc/Config.in
@@ -0,0 +1,37 @@
+config BR2_PACKAGE_LIRC
+ bool "lirc"
+ help
+ LIRC is a package that supports receiving and sending IR
+ signals of the most common IR remote controls. It contains a
+ daemon that decodes and sends IR signals, a mouse daemon
+ that translates IR signals to mouse movements and a couple
+ of user programs that allow to control your computer with a
+ remote control.
+
+ A list of supported hardware is available on the main page.
+
+ http://www.lirc.org/
+
+if BR2_PACKAGE_LIRC
+
+choice
+ prompt "lirc drivers"
+ default BR2_PACKAGE_LIRC_ALL
+
+ help
+ Select the drivers to build in lirc. There is 3 choices, all
+ of them, one of them, none of them. By selecting 'one of
+ them', you will have to select which one in the next item.
+
+ config BR2_PACKAGE_LIRC_ALL
+ bool "all"
+
+ config BR2_PACKAGE_LIRC_USERSPACE
+ bool "userspace"
+
+ config BR2_PACKAGE_LIRC_NONE
+ bool "none"
+endchoice
+
+endif # BR2_PACKAGE_LIRC
+
diff --git a/package/lirc/S70lircd b/package/lirc/S70lircd
new file mode 100644
index 0000000..770bef5
--- /dev/null
+++ b/package/lirc/S70lircd
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+LIRCD=/usr/sbin/lircd
+PID_FILE=/var/run/lircd.pid
+LIRCFLAGS="-o /dev/lircd -P $PID_FILE"
+
+case "$1" in
+ start)
+ echo -n "Starting daemon lircd: "
+ start-stop-daemon --start --quiet --pidfile $PID_FILE --exec $LIRCD -- $LIRCFLAGS
+ echo "done"
+ ;;
+ stop)
+ echo -n "Shutting down daemon lircd: "
+ start-stop-daemon --stop --quiet --pidfile $PID_FILE --exec $LIRCD
+ echo "done"
+ ;;
+ *)
+ echo "Usage: $0 {start|stop}"
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/package/lirc/lirc.mk b/package/lirc/lirc.mk
new file mode 100644
index 0000000..d19f5cd
--- /dev/null
+++ b/package/lirc/lirc.mk
@@ -0,0 +1,39 @@
+#############################################################
+#
+# lirc
+#
+#############################################################
+
+LIRC_VERSION = 0.8.6
+LIRC_SOURCE = lirc-$(LIRC_VERSION).tar.bz2
+LIRC_SITE = http://prdownloads.sourceforge.net/lirc
+LIRC_LIBTOOL_PATCH = NO
+LIRC_INSTALL_STAGING = YES
+LIRC_INSTALL_TARGET = YES
+
+LIRC_CONF_OPT = --without-x
+
+ifeq ($(BR2_PACKAGE_LIRC_ALL),y)
+LIRC_CONF_OPT += --with-driver=all
+endif
+ifeq ($(BR2_PACKAGE_LIRC_USERSPACE),y)
+LIRC_CONF_OPT += --with-driver=userspace
+endif
+ifeq ($(BR2_PACKAGE_LIRC_NONE),y)
+LIRC_CONF_OPT += --with-driver=none
+endif
+
+define LIRC_INSTALL_TARGET_SCRIPTS
+ mkdir -p $(TARGET_DIR)/etc/init.d
+ $(INSTALL) -m 0755 package/lirc/S70lircd $(TARGET_DIR)/etc/init.d/
+endef
+
+LIRC_POST_INSTALL_TARGET_HOOKS += LIRC_INSTALL_TARGET_SCRIPTS
+
+define LIRC_UNINSTALL_TARGET_SCRIPTS
+ rm -f $(TARGET_DIR)/etc/init.d/S70lircd
+endef
+
+LIRC_POST_UNINSTALL_TARGET_HOOKS += LIRC_UNINSTALL_TARGET_SCRIPTS
+
+$(eval $(call AUTOTARGETS,package,lirc))
--
1.6.5.7
next prev parent reply other threads:[~2010-01-20 0:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-19 20:15 [Buildroot] [PATCH] Bump DirectFB to 1.4.3 Paulius Zaleckas
2010-01-20 0:05 ` [Buildroot] [PATCH 1/7] directfb: some cleanup in config file llandwerlin at gmail.com
2010-01-28 16:11 ` Peter Korsgaard
2010-01-20 0:05 ` llandwerlin at gmail.com [this message]
2010-01-20 0:05 ` [Buildroot] [PATCH 4/7] directfb: added support for lirc llandwerlin at gmail.com
2010-01-20 0:05 ` [Buildroot] [PATCH 5/7] sawman: bump to 1.4.3 llandwerlin at gmail.com
2010-01-28 16:12 ` Peter Korsgaard
2010-01-20 0:05 ` [Buildroot] [PATCH 6/7] pixman: bump to 0.16.4 llandwerlin at gmail.com
2010-01-28 16:14 ` Peter Korsgaard
2010-01-28 16:54 ` Lionel Landwerlin
2010-01-20 0:05 ` [Buildroot] [PATCH 7/7] cairo: Bump to 1.8.8 llandwerlin at gmail.com
2010-01-20 0:07 ` [Buildroot] [PATCH] Bump DirectFB to 1.4.3 Lionel Landwerlin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1263945936-8613-3-git-send-email-llandwerlin@gmail.com \
--to=llandwerlin@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox