aboutsummaryrefslogtreecommitdiff
path: root/devel/arduino-irremote/Makefile
blob: 407687639fb65c974b16f490bb66ba304dd7d521 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Created by: Craig Leres <leres@FreeBSD.org>
# $FreeBSD$

PORTNAME=	arduino-irremote
PORTVERSION=	2.1.0
PORTREVISION=	1
CATEGORIES=	devel

MAINTAINER=	leres@FreeBSD.org
COMMENT=	Multi-protocol infrared remote library for the Arduino

LICENSE=	LGPL21

RUN_DEPENDS=	arduino:devel/arduino

USES=		dos2unix
USE_GITHUB=	yes
GH_ACCOUNT=	z3t0
GH_PROJECT=	Arduino-IRremote

NO_BUILD=	yes

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} ${FILES} \
		${STAGEDIR}${PREFIX}/arduino/libraries/IRremote)
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>