Ticket #23770: Portfile

File Portfile, 2.9 KB (added by tomldavis@…, 15 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name            iguanaIR
6version         1.0pre2
7revision        0
8categories      sysutils
9maintainers     verizon.net:tomldavis
10platforms       darwin
11license         LGPLv2.1
12description     Driver for IguanaWorks USB IR Transceiver
13
14long_description \
15                The IguanaWorks USB IR Transceiver, available for purchase at the IguanaWorks \
16                website, is a simple USB device that can communicate with most home electronics \
17                and remote controls via infrared (IR). The transceiver can both send and receive \
18                IR codes and is fully compatible with LIRC.
19               
20notes           \
21    ************************************************************************** \n\
22    * This note can be displayed at any time by executing the following command: \n\
23    *   >> port notes ${name} \n\
24    * \n\
25    * WARNING: Stop the iguanaIR daemon before uninstalling iguanaIR. \n\
26    * \n\
27    * Start the iguanaIR daemon (igdaemon) by executing the following command: \n\
28    *   >> sudo launchctl load -w /Library/LaunchDaemons/org.macports.iguanaIR.plist \n\
29    * \n\
30    * Stop the iguanaIR daemon (igdaemon) by executing the following command: \n\
31    *   >> sudo launchctl unload -w /Library/LaunchDaemons/org.macports.iguanaIR.plist \n\
32    * \n\
33    **************************************************************************
34   
35homepage        http://iguanaworks.net/projects/IguanaIR
36
37master_sites    http://iguanaworks.net/downloads
38
39use_bzip2       yes
40
41checksums       md5 719c41ab69350bc64e0fbfaadf604f13 \
42                sha1 5656e77fc82ca3a3e6b57223a8f7f8ef3d0e8f58 \
43                rmd160 5309808cd3b6620059c46a0ff62d3e5051f8b055
44               
45patchfiles      patch-compat.h.diff \
46                patch-daemon.c.diff \
47                patch-drivers-Makefile.in.diff \
48                patch-Make.settings.in.diff \
49                patch-Makefile.in.diff \
50                patch-README.txt.diff \
51                patch-configure.diff
52               
53configure.args  --disable-python   
54           
55depends_lib     port:popt \
56                port:libusb \
57                port:libusb-compat
58
59post-destroot {
60    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
61    xinstall -m 644 ${worksrcpath}/docs/TroubleShooting \
62        ${destroot}${prefix}/share/doc/${name}/TroubleShooting
63    xinstall -m 644 ${worksrcpath}/docs/faq \
64        ${destroot}${prefix}/share/doc/${name}/faq
65    xinstall -m 644 ${worksrcpath}/README.txt \
66        ${destroot}${prefix}/share/doc/${name}/README.txt
67    xinstall -m 644 ${worksrcpath}/docs/hardware \
68        ${destroot}${prefix}/share/doc/${name}/hardware
69    xinstall -m 644 ${worksrcpath}/docs/lirc \
70        ${destroot}${prefix}/share/doc/${name}/lirc
71}
72
73
74startupitem.create  yes
75startupitem.executable ${prefix}/bin/igdaemon --no-daemon --driver-dir=${prefix}/lib/iguanaIR
76