blob: 0c8b81dbcf46fb852cdf0eea40564599aca6b8c5 (
plain)
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
63
64
65
|
PORTNAME= arduino-tools
PORTVERSION= 1.8.2
PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= # Mostly metaport - installs files, no build
DISTFILES= #
EXTRACT_ONLY= #
MAINTAINER= kevans@FreeBSD.org
COMMENT= Brings together all of the tool dependencies used for Arduino 1.6+
LICENSE= BSD3CLAUSE
RUN_DEPENDS= arduino-avrdude:devel/arduino-avrdude \
bossac:devel/bossa \
avr-as:devel/binutils@avr \
avr-gcc:devel/avr-gcc \
${LOCALBASE}/avr/include/avr/io.h:devel/avr-libc \
gcc-arm-embedded>0:devel/gcc-arm-embedded \
${LOCALBASE}/arduino/tools-builder/ctags/${CTAGS_VERS}/ctags:devel/arduino-ctags \
arduino-core>=0:devel/arduino-core \
arduinoOTA:devel/arduinoOTA \
openocd:devel/openocd
NO_BUILD= yes
NO_ARCH= yes
ARMGCC_VERS= 4.9.2
AVRDUDE_VERS= 6.3.0-arduino9
AVRGCC_VERS= 4.9.2-atmel3.5.4-arduino2
BOSSAC_VERS= 1.7.0
CMSIS_VERS= ${PORTVERSION}
CTAGS_VERS= 5.8-arduino11
OCD_VERS= 0.9.0-arduino5-static
OTA_VERS= 1.1.1
PLIST_SUB+= ARMGCC_VERS=${ARMGCC_VERS} \
AVRDUDE_VERS=${AVRDUDE_VERS} \
AVRGCC_VERS=${AVRGCC_VERS} \
BOSSAC_VERS=${BOSSAC_VERS} \
CMSIS_VERS=${CMSIS_VERS} \
OCD_VERS=${OCD_VERS} \
OTA_VERS=${OTA_VERS}
_STD_TOOLS_= arduinoOTA:${OTA_VERS} \
avr-gcc:${AVRGCC_VERS} \
avrdude:${AVRDUDE_VERS} \
bossac:${BOSSAC_VERS} \
openocd:${OCD_VERS}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/arduino/tools-builder/CMSIS/${CMSIS_VERS}
${MKDIR} ${STAGEDIR}${PREFIX}/arduino/tools-builder/arm-none-eabi-gcc/${ARMGCC_VERS}
${LN} -s ../../../hardware/arduino/sam/system/CMSIS/CMSIS ${STAGEDIR}${PREFIX}/arduino/tools-builder/CMSIS/${CMSIS_VERS}/CMSIS
${LN} -s ../../../hardware/arduino/sam/system/CMSIS/Device ${STAGEDIR}${PREFIX}/arduino/tools-builder/CMSIS/${CMSIS_VERS}/Device
${LN} -s ../../../../gcc-arm-embedded/bin ${STAGEDIR}${PREFIX}/arduino/tools-builder/arm-none-eabi-gcc/${ARMGCC_VERS}/bin
${LN} -s ../../../../etc ${STAGEDIR}${PREFIX}/arduino/tools-builder/arm-none-eabi-gcc/${ARMGCC_VERS}/etc
.for _tool in ${_STD_TOOLS_}
${MKDIR} ${STAGEDIR}${PREFIX}/arduino/tools-builder/${_tool:C/:.*//}/${_tool:C/.*://}
${LN} -s ../../../../bin ${STAGEDIR}${PREFIX}/arduino/tools-builder/${_tool:C/:.*//}/${_tool:C/.*://}/bin
${LN} -s ../../../../etc ${STAGEDIR}${PREFIX}/arduino/tools-builder/${_tool:C/:.*//}/${_tool:C/.*://}/etc
.endfor
.include <bsd.port.mk>
|