[64038] trunk/dports/sysutils/lirc
ecronin at macports.org
ecronin at macports.org
Sat Feb 20 07:41:06 PST 2010
Revision: 64038
http://trac.macports.org/changeset/64038
Author: ecronin at macports.org
Date: 2010-02-20 07:41:06 -0800 (Sat, 20 Feb 2010)
Log Message:
-----------
sysutils/lirc: add variant for iguanaIR device
Modified Paths:
--------------
trunk/dports/sysutils/lirc/Portfile
Added Paths:
-----------
trunk/dports/sysutils/lirc/files/
Modified: trunk/dports/sysutils/lirc/Portfile
===================================================================
--- trunk/dports/sysutils/lirc/Portfile 2010-02-20 15:40:30 UTC (rev 64037)
+++ trunk/dports/sysutils/lirc/Portfile 2010-02-20 15:41:06 UTC (rev 64038)
@@ -11,11 +11,7 @@
description Linux Infrared Remote Control
long_description \
LIRC is a package that allows you to decode and send infra-red \
- signals of many (but not all) commonly used remote controls. \
- NOTE: This port does not support any IR devices directly. You \
- must connect to a remote lircd (--connect=example.org:8765) or \
- listen for UDP packets (--driver=udp --device=<portnum>) for \
- lirc to be of any use locally.
+ signals of many (but not all) commonly used remote controls.
homepage http://www.lirc.org
master_sites sourceforge
@@ -29,6 +25,30 @@
--sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
--mandir=${prefix}/share/man
+notes \
+ NOTE: After installing you must configure an IR device for lirc \n \
+ to use. Most hardware devices are not supported on Mac OS X \n \
+ (known exceptions: IguanaIR)\; network sources (remote lircd, \n \
+ HD Homerun, etc) are fully supported. \n \
+ \n \
+ Please edit: \n \
+ '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper' \n \
+ and specify a valid driver or remote lircd to connect to. Examples \n \
+ for network, UDP, and IguanaIR are commented out.\n \
+ \n \
+ Any clients of lirc must be able to read and write the pipe at: \n \
+ ${prefix}/var/run/lircd
+
+variant iguanaIR \
+ description {Use IguanaIR USB device"} {
+ configure.args-delete --with-driver=udp
+ configure.args-append --with-driver=iguanaIR
+ depends_lib-append port:iguanaIR
+ patchfiles-append \
+ patch-daemons-hw_iguanaIR.c.diff \
+ patch-drivers-lirc.h.diff
+}
+
post-destroot {
xinstall -m 644 ${worksrcpath}/contrib/lircd.conf \
${destroot}${prefix}/etc/lircd.conf.sample
@@ -40,18 +60,11 @@
destroot.keepdirs ${destroot}${prefix}/var/log
}
-post-activate {
- ui_msg "Please edit:"
- ui_msg " '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper'"
- ui_msg "and specify a valid driver or remote lircd to connect to."
- ui_msg "Any clients of lirc must be able to read and write to:"
- ui_msg "${prefix}/var/run/lircd"
-}
-
startupitem.create yes
startupitem.start \
"#device=\"--connect=example.org:port\" # remote lircd" \
"#device=\"--driver=udp --device=port\" # UDP listener" \
+ "#device=\"--driver=iguanaIR --with-devdir=${prefix}/etc\" # iguanaIR" \
"${prefix}/sbin/lircd --permission=0666 \$\{device\}" \
"\[ -r ${prefix}/etc/lircmd.conf \] && \\" \
"\t${prefix}/sbin/lircmd"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100220/e00117b2/attachment.html>
More information about the macports-changes
mailing list