source: trunk/dports/sysutils/lirc/Portfile @ 64038

Last change on this file since 64038 was 64038, checked in by ecronin@…, 9 years ago

sysutils/lirc: add variant for iguanaIR device

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Portfile 64038 2010-02-20 15:41:06Z ecronin@macports.org $
2
3PortSystem 1.0
4
5name            lirc
6version         0.8.3
7revision        1
8categories      sysutils net
9maintainers     ecronin
10platforms       darwin
11description     Linux Infrared Remote Control
12long_description \
13    LIRC is a package that allows you to decode and send infra-red \
14    signals of many (but not all) commonly used remote controls.
15
16homepage        http://www.lirc.org
17master_sites    sourceforge
18use_bzip2       yes
19checksums       md5 8e78eeded7b31e5ad02e328970437c0f \
20                sha1 4b5aec19fa9ee15bafaeb1f87c154a0d4e045dcc \
21                rmd160 8948efc3e9dc34426ea32a3c63da63c0efa7dce2
22livecheck.distname  LIRC
23
24configure.args  --with-driver=udp --with-devdir=${prefix}/var/run \
25                --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var \
26                --mandir=${prefix}/share/man
27
28notes \
29    NOTE: After installing you must configure an IR device for lirc \n \
30    to use.  Most hardware devices are not supported on Mac OS X \n \
31    (known exceptions: IguanaIR)\; network sources (remote lircd, \n \
32    HD Homerun, etc) are fully supported. \n \
33    \n \
34    Please edit: \n \
35      '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper' \n \
36    and specify a valid driver or remote lircd to connect to.  Examples \n \
37    for network, UDP, and IguanaIR are commented out.\n \
38    \n \
39    Any clients of lirc must be able to read and write the pipe at: \n \
40    ${prefix}/var/run/lircd
41
42variant iguanaIR \
43    description {Use IguanaIR USB device"} {
44    configure.args-delete   --with-driver=udp
45    configure.args-append   --with-driver=iguanaIR
46    depends_lib-append  port:iguanaIR
47    patchfiles-append \
48        patch-daemons-hw_iguanaIR.c.diff \
49        patch-drivers-lirc.h.diff
50}
51
52post-destroot {
53    xinstall -m 644 ${worksrcpath}/contrib/lircd.conf \
54        ${destroot}${prefix}/etc/lircd.conf.sample
55    xinstall -m 644 ${worksrcpath}/contrib/lircmd.conf \
56        ${destroot}${prefix}/etc/lircmd.conf.sample
57    xinstall -m 644 ${worksrcpath}/contrib/lircrc \
58        ${destroot}${prefix}/etc/lircrc.sample
59    xinstall -m 755 -d ${destroot}${prefix}/var/log
60    destroot.keepdirs ${destroot}${prefix}/var/log
61}
62
63startupitem.create  yes
64startupitem.start   \
65    "#device=\"--connect=example.org:port\"  # remote lircd" \
66    "#device=\"--driver=udp --device=port\"  # UDP listener" \
67    "#device=\"--driver=iguanaIR --with-devdir=${prefix}/etc\"  # iguanaIR" \
68    "${prefix}/sbin/lircd --permission=0666 \$\{device\}" \
69    "\[ -r ${prefix}/etc/lircmd.conf \] && \\" \
70    "\t${prefix}/sbin/lircmd"
71startupitem.stop    \
72    "killall -TERM lircd" \
73    "killall -TERM lircmd"
Note: See TracBrowser for help on using the repository browser.