aboutsummaryrefslogtreecommitdiffstats
path: root/devel/arduino-irremote/Makefile
blob: c7605ceb535ac2c8f789dffa0da4fd982933efc6 (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
# Created by: Craig Leres <leres@ee.lbl.gov>
# $FreeBSD$

PORTNAME=   arduino-irremote
PORTVERSION=    0.1
PORTREVISION=   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:devel/arduino

WRKSRC=     ${WRKDIR}/IRremote
USES=       zip dos2unix

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
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)
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>