blob: 1ea0340fa021996d7bd74ed5f28e65cabdde95d3 (
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
|
# Created by: Craig Leres <leres@FreeBSD.org>
# $FreeBSD$
PORTNAME= arduino-bsd-mk
PORTVERSION= 1.0
CATEGORIES= devel
MASTER_SITES= https://xse.com/leres/arduino/arduino-bsd-mk/ \
LOCAL/leres/arduino-bsd-mk
MAINTAINER= leres@FreeBSD.org
COMMENT= Build Arduino sketches from the command line on FreeBSD
LICENSE= BSD2CLAUSE
RUN_DEPENDS= arduino:devel/arduino \
avr-gcc:devel/avr-gcc
USES= python:2.7,run shebangfix
SHEBANG_FILES= arduino-boards.py
NO_BUILD= yes
NO_MTREE= yes
PORTEXAMPLES= *
PLIST_FILES= ${ALL_FILES} ${ALL_SCRIPTS:R} man/man7/bsd.arduino.mk.7.gz
OPTIONS_DEFINE+= EXAMPLES
ALL_FILES= arduino-bsd-mk/bsd.arduino.mk
ALL_SCRIPTS= arduino-bsd-mk/scripts/arduino-boards.py \
arduino-bsd-mk/scripts/arduino-version.sh \
arduino-bsd-mk/scripts/gcc-version.sh
pre-patch:
# Honor PREFIX in the man page
${REINPLACE_CMD} -e 's,/usr/local/,${PREFIX}/,' ${WRKSRC}/bsd.arduino.mk.7
post-install:
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}$/${EXAMPLESDIR})
.include <bsd.port.mk>
|