Ignore:
Timestamp:
Feb 20, 2010, 3:41:06 PM (9 years ago)
Author:
ecronin@…
Message:

sysutils/lirc: add variant for iguanaIR device

Location:
trunk/dports/sysutils/lirc
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/lirc/Portfile

    r36536 r64038  
    1212long_description \
    1313    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     NOTE: This port does not support any IR devices directly.  You \
    16     must connect to a remote lircd (--connect=example.org:8765) or \
    17     listen for UDP packets (--driver=udp --device=<portnum>) for \
    18     lirc to be of any use locally.
     14    signals of many (but not all) commonly used remote controls.
    1915
    2016homepage        http://www.lirc.org
     
    3026                --mandir=${prefix}/share/man
    3127
     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
    3252post-destroot {
    3353    xinstall -m 644 ${worksrcpath}/contrib/lircd.conf \
     
    4161}
    4262
    43 post-activate {
    44     ui_msg "Please edit:"
    45     ui_msg "  '${prefix}/etc/LaunchDaemons/org.macports.${name}/${name}.wrapper'"
    46     ui_msg "and specify a valid driver or remote lircd to connect to."
    47     ui_msg "Any clients of lirc must be able to read and write to:"
    48     ui_msg "${prefix}/var/run/lircd"
    49 }
    50 
    5163startupitem.create  yes
    5264startupitem.start   \
    5365    "#device=\"--connect=example.org:port\"  # remote lircd" \
    5466    "#device=\"--driver=udp --device=port\"  # UDP listener" \
     67    "#device=\"--driver=iguanaIR --with-devdir=${prefix}/etc\"  # iguanaIR" \
    5568    "${prefix}/sbin/lircd --permission=0666 \$\{device\}" \
    5669    "\[ -r ${prefix}/etc/lircmd.conf \] && \\" \
Note: See TracChangeset for help on using the changeset viewer.