mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
devel/arduino-irremote: Update to 2.1.0
PR: 210367 Submitted by: leres@ee.lbl.gov (maintainer)
This commit is contained in:
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
|
@ -2,11 +2,8 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= arduino-irremote
|
||||
PORTVERSION= 0.1
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.1.0
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://files.arcfn.com/files/
|
||||
DISTNAME= IRremote
|
||||
|
||||
MAINTAINER= leres@ee.lbl.gov
|
||||
COMMENT= Multi-protocol infrared remote library for the Arduino
|
||||
|
@ -15,23 +12,30 @@ LICENSE= LGPL21
|
|||
|
||||
RUN_DEPENDS= arduino:devel/arduino
|
||||
|
||||
WRKSRC= ${WRKDIR}/IRremote
|
||||
USES= zip dos2unix
|
||||
USES= dos2unix
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= z3t0
|
||||
GH_PROJECT= Arduino-IRremote
|
||||
GH_TAGNAME= 2.1.0
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
PLIST_FILES= arduino/libraries/IRremote/IRremote.cpp \
|
||||
arduino/libraries/IRremote/IRremote.h \
|
||||
arduino/libraries/IRremote/IRremoteInt.h \
|
||||
arduino/libraries/IRremote/keywords.txt
|
||||
FILES= IRremote.cpp IRremote.h IRremoteInt.h irPronto.cpp \
|
||||
irRecv.cpp irSend.cpp ir_Aiwa.cpp ir_Denon.cpp \
|
||||
ir_Dish.cpp ir_JVC.cpp ir_LG.cpp ir_Mitsubishi.cpp \
|
||||
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= *
|
||||
|
||||
OPTIONS_DEFINE= EXAMPLES
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/arduino/libraries/IRremote
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} IRremote.cpp IRremote.h IRremoteInt.h \
|
||||
keywords.txt ${STAGEDIR}${PREFIX}/arduino/libraries/IRremote)
|
||||
(cd ${WRKSRC} && ${INSTALL_DATA} ${FILES} \
|
||||
${STAGEDIR}${PREFIX}/arduino/libraries/IRremote)
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
SHA256 (IRremote.zip) = 2eff9847285330796b1fc8bf007f4a2f16dea7546ba1fcbaef1592a2235a60d4
|
||||
SIZE (IRremote.zip) = 23732
|
||||
TIMESTAMP = 1465001274
|
||||
SHA256 (z3t0-Arduino-IRremote-2.1.0_GH0.tar.gz) = 4cd26f5037590e99b3d065f17c4327542625a986fe421e25288209e713aece5b
|
||||
SIZE (z3t0-Arduino-IRremote-2.1.0_GH0.tar.gz) = 50373
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
and receive IR remote codes in multiple protocols. It supports NEC,
|
||||
Sony SIRC, Philips RC5, Philips RC6, and raw protocols.
|
||||
This library enables you to send and receive using infra-red signals
|
||||
on an Arduino.
|
||||
|
||||
WWW: http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
|
||||
WWW: http://z3t0.github.io/Arduino-IRremote/
|
||||
|
|
Loading…
Add table
Reference in a new issue