From owner-svn-ports-all@FreeBSD.ORG Sat Jul 21 09:17:06 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 395301065670; Sat, 21 Jul 2012 09:17:06 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 19E738FC16; Sat, 21 Jul 2012 09:17:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6L9H5pU011168; Sat, 21 Jul 2012 09:17:05 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6L9H5UQ011162; Sat, 21 Jul 2012 09:17:05 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201207210917.q6L9H5UQ011162@svn.freebsd.org> From: Pawel Pekala Date: Sat, 21 Jul 2012 09:17:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r301269 - in head/devel: . arduino-irremote arduino-irremote/files X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2012 09:17:06 -0000 Author: pawel Date: Sat Jul 21 09:17:05 2012 New Revision: 301269 URL: http://svn.freebsd.org/changeset/ports/301269 Log: A Multi-Protocol Infrared Remote Library for the Arduino 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. WWW: http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html PR: ports/163806 Submitted by: Craig Leres Added: head/devel/arduino-irremote/ head/devel/arduino-irremote/Makefile (contents, props changed) head/devel/arduino-irremote/distinfo (contents, props changed) head/devel/arduino-irremote/files/ head/devel/arduino-irremote/files/patch-IRremoteInt.h (contents, props changed) head/devel/arduino-irremote/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Jul 21 09:06:31 2012 (r301268) +++ head/devel/Makefile Sat Jul 21 09:17:05 2012 (r301269) @@ -52,6 +52,7 @@ SUBDIR += apr2 SUBDIR += arduino SUBDIR += arduino-glcd + SUBDIR += arduino-irremote SUBDIR += arduino-mk SUBDIR += argouml SUBDIR += argp-standalone Added: head/devel/arduino-irremote/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arduino-irremote/Makefile Sat Jul 21 09:17:05 2012 (r301269) @@ -0,0 +1,62 @@ +# New ports collection makefile for: arduino-irremote +# Date created: 02 Apr 2011 +# Whom: Craig Leres +# +# $FreeBSD$ +# + +PORTNAME= arduino-irremote +PORTVERSION= 0.1 +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 + +LICENSE= LGPL21 + +RUN_DEPENDS= arduino:${PORTSDIR}/devel/arduino + +WRKSRC= ${WRKDIR}/IRremote +USE_ZIP= yes +USE_DOS2UNIX= yes + +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 +PLIST_DIRS= arduino/libraries/IRremote + +.include + +.if ${PORT_OPTIONS:MEXAMPLES} +PLIST_FILES+= ${EXAMPLESDIR_REL}/IRrecord/IRrecord.pde \ + ${EXAMPLESDIR_REL}/IRrecvDemo/IRrecvDemo.pde \ + ${EXAMPLESDIR_REL}/IRrecvDump/IRrecvDump.pde \ + ${EXAMPLESDIR_REL}/IRrelay/IRrelay.pde \ + ${EXAMPLESDIR_REL}/IRsendDemo/IRsendDemo.pde \ + ${EXAMPLESDIR_REL}/IRtest/IRtest.pde +PLIST_DIRS+= ${EXAMPLESDIR_REL}/IRrecord \ + ${EXAMPLESDIR_REL}/IRrecvDemo \ + ${EXAMPLESDIR_REL}/IRrecvDump \ + ${EXAMPLESDIR_REL}/IRrelay \ + ${EXAMPLESDIR_REL}/IRsendDemo \ + ${EXAMPLESDIR_REL}/IRtest \ + ${EXAMPLESDIR_REL} +.endif + +do-install: + ${MKDIR} ${PREFIX}/arduino/libraries/IRremote + ${INSTALL_DATA} ${WRKSRC}/IRremote.cpp ${PREFIX}/arduino/libraries/IRremote + ${INSTALL_DATA} ${WRKSRC}/IRremote.h ${PREFIX}/arduino/libraries/IRremote + ${INSTALL_DATA} ${WRKSRC}/IRremoteInt.h ${PREFIX}/arduino/libraries/IRremote + ${INSTALL_DATA} ${WRKSRC}/keywords.txt ${PREFIX}/arduino/libraries/IRremote +.if ${PORT_OPTIONS:MEXAMPLES} + ${MKDIR} ${EXAMPLESDIR} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR} +.endif + +.include Added: head/devel/arduino-irremote/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arduino-irremote/distinfo Sat Jul 21 09:17:05 2012 (r301269) @@ -0,0 +1,2 @@ +SHA256 (IRremote.zip) = 2eff9847285330796b1fc8bf007f4a2f16dea7546ba1fcbaef1592a2235a60d4 +SIZE (IRremote.zip) = 23732 Added: head/devel/arduino-irremote/files/patch-IRremoteInt.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arduino-irremote/files/patch-IRremoteInt.h Sat Jul 21 09:17:05 2012 (r301269) @@ -0,0 +1,22 @@ +$FreeBSD$ + +--- 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 ++#else + #include ++#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 Added: head/devel/arduino-irremote/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/arduino-irremote/pkg-descr Sat Jul 21 09:17:05 2012 (r301269) @@ -0,0 +1,7 @@ +A Multi-Protocol Infrared Remote Library for the Arduino + +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. + +WWW: http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html