devel/arduino-irremote: Update to 2.1.0

PR:		210367
Submitted by:	leres@ee.lbl.gov (maintainer)
This commit is contained in:
Boris Samorodov 2016-10-11 21:16:25 +00:00
parent 71468d8866
commit adf0f97a6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=423798
4 changed files with 24 additions and 39 deletions

View file

@ -2,11 +2,8 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= arduino-irremote PORTNAME= arduino-irremote
PORTVERSION= 0.1 PORTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= devel CATEGORIES= devel
MASTER_SITES= http://files.arcfn.com/files/
DISTNAME= IRremote
MAINTAINER= leres@ee.lbl.gov MAINTAINER= leres@ee.lbl.gov
COMMENT= Multi-protocol infrared remote library for the Arduino COMMENT= Multi-protocol infrared remote library for the Arduino
@ -15,23 +12,30 @@ LICENSE= LGPL21
RUN_DEPENDS= arduino:devel/arduino RUN_DEPENDS= arduino:devel/arduino
WRKSRC= ${WRKDIR}/IRremote USES= dos2unix
USES= zip dos2unix USE_GITHUB= yes
GH_ACCOUNT= z3t0
GH_PROJECT= Arduino-IRremote
GH_TAGNAME= 2.1.0
NO_BUILD= yes NO_BUILD= yes
PLIST_FILES= arduino/libraries/IRremote/IRremote.cpp \ FILES= IRremote.cpp IRremote.h IRremoteInt.h irPronto.cpp \
arduino/libraries/IRremote/IRremote.h \ irRecv.cpp irSend.cpp ir_Aiwa.cpp ir_Denon.cpp \
arduino/libraries/IRremote/IRremoteInt.h \ ir_Dish.cpp ir_JVC.cpp ir_LG.cpp ir_Mitsubishi.cpp \
arduino/libraries/IRremote/keywords.txt ir_NEC.cpp ir_Panasonic.cpp ir_RC5_RC6.cpp \
ir_Samsung.cpp ir_Sanyo.cpp ir_Sharp.cpp ir_Sony.cpp \
ir_Template.cpp ir_Whynter.cpp keywords.txt \
PLIST_FILES= ${FILES:S,^,arduino/libraries/IRremote/,}
PORTEXAMPLES= * PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES OPTIONS_DEFINE= EXAMPLES
do-install: do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/arduino/libraries/IRremote ${MKDIR} ${STAGEDIR}${PREFIX}/arduino/libraries/IRremote
(cd ${WRKSRC} && ${INSTALL_DATA} IRremote.cpp IRremote.h IRremoteInt.h \ (cd ${WRKSRC} && ${INSTALL_DATA} ${FILES} \
keywords.txt ${STAGEDIR}${PREFIX}/arduino/libraries/IRremote) ${STAGEDIR}${PREFIX}/arduino/libraries/IRremote)
${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

View file

@ -1,2 +1,3 @@
SHA256 (IRremote.zip) = 2eff9847285330796b1fc8bf007f4a2f16dea7546ba1fcbaef1592a2235a60d4 TIMESTAMP = 1465001274
SIZE (IRremote.zip) = 23732 SHA256 (z3t0-Arduino-IRremote-2.1.0_GH0.tar.gz) = 4cd26f5037590e99b3d065f17c4327542625a986fe421e25288209e713aece5b
SIZE (z3t0-Arduino-IRremote-2.1.0_GH0.tar.gz) = 50373

View file

@ -1,20 +0,0 @@
--- IRremoteInt.h.orig 2009-09-05 23:55:48.000000000 -0700
+++ IRremoteInt.h 2011-12-27 15:40:59.000000000 -0800
@@ -12,12 +12,16 @@
#ifndef IRremoteint_h
#define IRremoteint_h
+#if defined(ARDUINO) && ARDUINO >= 100
+#include <Arduino.h>
+#else
#include <WProgram.h>
+#endif
#define CLKFUDGE 5 // fudge factor for clock interrupt overhead
#define CLK 256 // max value for clock (timer 2)
#define PRESCALE 8 // timer2 clock prescale
-#define SYSCLOCK 16000000 // main Arduino clock
+#define SYSCLOCK F_CPU // main Arduino clock
#define CLKSPERUSEC (SYSCLOCK/PRESCALE/1000000) // timer clocks per microsecond
#define ERR 0

View file

@ -1,7 +1,7 @@
A Multi-Protocol Infrared Remote Library for the Arduino Infrared remote library for Arduino: send and receive infrared
signals with multiple protocols
This IR remote library, written by Ken Shirriff, lets you both send This library enables you to send and receive using infra-red signals
and receive IR remote codes in multiple protocols. It supports NEC, on an Arduino.
Sony SIRC, Philips RC5, Philips RC6, and raw protocols.
WWW: http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html WWW: http://z3t0.github.io/Arduino-IRremote/