blob: 23cb528cd9b3918945f2fd207eabb264c26f10b1 (
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
|
# $FreeBSD$
PORTNAME= arduino-core
PORTVERSION= 1.6.12
PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= bsdports@kyle-evans.net
COMMENT= Core board support for Arduino devices
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/license.txt
USE_GITHUB= yes
GH_ACCOUNT= arduino
GH_PROJECT= Arduino
STRIP= # No stripping, uses Elf firmware
OPTIONS_DEFINE= DOCS EXAMPLES SAMD
OPTIONS_SUB= yes
NO_BUILD= yes
SAMD_DESC= Core support for SAMD boards (Zero/MKR1000)
SAMD_GH_TUPLE= arduino:ArduinoCore-samd:1.6.8:samd/hardware/arduino/samd
SAMD_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-hardware_arduino_samd_platform.txt
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
ARCH= x86_64
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%ARCH%%|${ARCH}|g' -e 's|%%OSREL%%|${OSREL:R}|g' ${WRKSRC}/hardware/package_index_bundled.json
do-install:
(cd ${WRKSRC}/ && ${COPYTREE_SHARE} "hardware" ${STAGEDIR}${PREFIX}/arduino ${FIND_EXPR})
.include <bsd.port.post.mk>
|