aboutsummaryrefslogtreecommitdiff
path: root/devel/arduino-openglcd/Makefile
blob: 885250bcee1f240c69b37622bb0027f430fabb65 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Created by: Craig Leres <leres@FreeBSD.org>

PORTNAME=	arduino-openglcd
DISTVERSION=	1.0rc3
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	https://bitbucket.org/bperrybap/openglcd/downloads/
DISTNAME=	openGLCD-v${DISTVERSION}

MAINTAINER=	leres@FreeBSD.org
COMMENT=	GLCD Graphical LCD Library

LICENSE=	GPLv3

RUN_DEPENDS=	arduino>=1.0.6:devel/arduino

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

NO_BUILD=	yes

OPTIONS_DEFINE=	DOCS EXAMPLES

FILES=	\
	Buildinfo.txt \
	ChangeLog.txt \
	License.txt \
	gText.cpp \
	glcd.cpp \
	glcd.h.compat \
	glcd_Device.cpp \
	keywords.txt \
	library.properties \
	openGLCD.h \
	openGLCD_Buildinfo.h \
	openGLCD_Config.h \
	readme.txt

DIRS=	\
	GPLdocs \
	bitmaps \
	config \
	device \
	fonts \
	include

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/arduino/libraries/glcd
	(cd ${WRKSRC} && ${COPYTREE_SHARE} "${FILES}" \
	    ${STAGEDIR}${PREFIX}/arduino/libraries/glcd "! -name *\.orig")
	(cd ${WRKSRC} && ${COPYTREE_SHARE} "${DIRS}" \
	    ${STAGEDIR}${PREFIX}/arduino/libraries/glcd)
do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . \
	    ${STAGEDIR}${DOCSDIR} "! -name *\.orig")
do-install-EXAMPLES-on:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \
	    ${STAGEDIR}${EXAMPLESDIR} "! -name *\.orig")

.include <bsd.port.mk>