ports/163806: New port: devel/arduino-lib-irremote: A Multi-Protocol Infrared Remote Library for the Arduino
Craig Leres
leres at ee.lbl.gov
Thu Feb 23 02:50:14 UTC 2012
The following reply was made to PR ports/163806; it has been noted by GNATS.
From: Craig Leres <leres at ee.lbl.gov>
To: bug-followup at FreeBSD.org
Cc: Michael Scheidell <scheidell at FreeBSD.org>
Subject: Re: ports/163806: New port: devel/arduino-lib-irremote: A Multi-Protocol
Infrared Remote Library for the Arduino
Date: Wed, 22 Feb 2012 18:43:41 -0800
Sorry, I didn't realize you were waiting for me to re-submit the shar.
This version is named arduino-irremote, I fixed the ordering in the
Makefil and added USE_DOS2UNIX (thanks!)
I'll also try "attaching" the shar the send-pr does (without mime at all!)
Craig
--- arduino-irremote-0.1-10.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# files/patch-IRremoteInt.h
# pkg-descr
# distinfo
# Makefile
#
echo x - files/patch-IRremoteInt.h
sed 's/^X//' >files/patch-IRremoteInt.h <<
'29931596181fcef18a74f698a7ef74c6'
X--- IRremoteInt.h.orig 2009-09-05 23:55:48.000000000 -0700
X+++ IRremoteInt.h 2011-12-27 15:40:59.000000000 -0800
X@@ -12,12 +12,16 @@
X #ifndef IRremoteint_h
X #define IRremoteint_h
X
X+#if defined(ARDUINO) && ARDUINO >= 100
X+#include <Arduino.h>
X+#else
X #include <WProgram.h>
X+#endif
X
X #define CLKFUDGE 5 // fudge factor for clock interrupt overhead
X #define CLK 256 // max value for clock (timer 2)
X #define PRESCALE 8 // timer2 clock prescale
X-#define SYSCLOCK 16000000 // main Arduino clock
X+#define SYSCLOCK F_CPU // main Arduino clock
X #define CLKSPERUSEC (SYSCLOCK/PRESCALE/1000000) // timer clocks per
microsecond
X
X #define ERR 0
29931596181fcef18a74f698a7ef74c6
echo x - pkg-descr
sed 's/^X//' >pkg-descr << '7f9555c3c1089940396b503dd37f3979'
XA Multi-Protocol Infrared Remote Library for the Arduino
X
XThis IR remote library, written by Ken Shirriff, lets you both send
Xand receive IR remote codes in multiple protocols. It supports NEC,
XSony SIRC, Philips RC5, Philips RC6, and raw protocols.
X
XWWW:
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
7f9555c3c1089940396b503dd37f3979
echo x - distinfo
sed 's/^X//' >distinfo << '57677d168a5ec21bdf22c9501f075a8f'
XSHA256 (IRremote.zip) =
2eff9847285330796b1fc8bf007f4a2f16dea7546ba1fcbaef1592a2235a60d4
XSIZE (IRremote.zip) = 23732
57677d168a5ec21bdf22c9501f075a8f
echo x - Makefile
sed 's/^X//' >Makefile << 'b67911656ef5d18c4ae36cb6741b7965'
X# New ports collection makefile for: arduino-irremote
X# Date created: 02 Apr 2011
X# Whom: Craig Leres <leres at ee.lbl.gov>
X#
X# $FreeBSD$
X#
X
XPORTNAME= arduino-irremote
XPORTVERSION= 0.1
XCATEGORIES= devel
XMASTER_SITES= http://files.arcfn.com/files/
XDISTNAME= IRremote
X
XMAINTAINER= leres at ee.lbl.gov
XCOMMENT= Build Arduino sketches from the command line
X
XLICENSE= LGPL21
X
XRUN_DEPENDS= arduino:${PORTSDIR}/devel/arduino
X
XWRKSRC= ${WRKDIR}/IRremote
XUSE_ZIP= yes
XUSE_DOS2UNIX= yes
X
XNO_BUILD= yes
X
XPLIST_FILES= arduino/libraries/IRremote/IRremote.cpp \
X arduino/libraries/IRremote/IRremote.h \
X arduino/libraries/IRremote/IRremoteInt.h \
X arduino/libraries/IRremote/keywords.txt
XPLIST_DIRS= arduino/libraries/IRremote
X
X.if !defined(NOPORTEXAMPLES)
XPLIST_FILES+= ${EXAMPLESDIR_REL}/IRrecord/IRrecord.pde \
X ${EXAMPLESDIR_REL}/IRrecvDemo/IRrecvDemo.pde \
X ${EXAMPLESDIR_REL}/IRrecvDump/IRrecvDump.pde \
X ${EXAMPLESDIR_REL}/IRrelay/IRrelay.pde \
X ${EXAMPLESDIR_REL}/IRsendDemo/IRsendDemo.pde \
X ${EXAMPLESDIR_REL}/IRtest/IRtest.pde
XPLIST_DIRS+= ${EXAMPLESDIR_REL}/IRrecord \
X ${EXAMPLESDIR_REL}/IRrecvDemo \
X ${EXAMPLESDIR_REL}/IRrecvDump \
X ${EXAMPLESDIR_REL}/IRrelay \
X ${EXAMPLESDIR_REL}/IRsendDemo \
X ${EXAMPLESDIR_REL}/IRtest \
X ${EXAMPLESDIR_REL}
X.endif
X
Xdo-install:
X ${MKDIR} ${PREFIX}/arduino/libraries/IRremote
X ${INSTALL_DATA} ${WRKSRC}/IRremote.cpp
${PREFIX}/arduino/libraries/IRremote
X ${INSTALL_DATA} ${WRKSRC}/IRremote.h ${PREFIX}/arduino/libraries/IRremote
X ${INSTALL_DATA} ${WRKSRC}/IRremoteInt.h
${PREFIX}/arduino/libraries/IRremote
X ${INSTALL_DATA} ${WRKSRC}/keywords.txt
${PREFIX}/arduino/libraries/IRremote
X.if !defined(NOPORTEXAMPLES)
X ${MKDIR} ${EXAMPLESDIR}
X ${MKDIR} ${EXAMPLESDIR}/IRrecord
X ${INSTALL_DATA} ${WRKSRC}/examples/IRrecord/IRrecord.pde
${EXAMPLESDIR}/IRrecord
X ${MKDIR} ${EXAMPLESDIR}/IRrecvDemo
X ${INSTALL_DATA} ${WRKSRC}/examples/IRrecvDemo/IRrecvDemo.pde
${EXAMPLESDIR}/IRrecvDemo
X ${MKDIR} ${EXAMPLESDIR}/IRrecvDump
X ${INSTALL_DATA} ${WRKSRC}/examples/IRrecvDump/IRrecvDump.pde
${EXAMPLESDIR}/IRrecvDump
X ${MKDIR} ${EXAMPLESDIR}/IRrelay
X ${INSTALL_DATA} ${WRKSRC}/examples/IRrelay/IRrelay.pde
${EXAMPLESDIR}/IRrelay
X ${MKDIR} ${EXAMPLESDIR}/IRsendDemo
X ${INSTALL_DATA} ${WRKSRC}/examples/IRsendDemo/IRsendDemo.pde
${EXAMPLESDIR}/IRsendDemo
X ${MKDIR} ${EXAMPLESDIR}/IRtest
X ${INSTALL_DATA} ${WRKSRC}/examples/IRtest/IRtest.pde ${EXAMPLESDIR}/IRtest
X.endif
X
X.include <bsd.port.mk>
b67911656ef5d18c4ae36cb6741b7965
exit
--- arduino-irremote-0.1-10.shar ends here ---
More information about the freebsd-ports-bugs
mailing list