|
Lines 2-8
Link Here
|
| 2 |
|
2 |
|
| 3 |
PORTNAME= arduino-builder |
3 |
PORTNAME= arduino-builder |
| 4 |
PORTVERSION= 1.3.21 |
4 |
PORTVERSION= 1.3.21 |
| 5 |
PORTREVISION= 2 |
5 |
PORTREVISION= 3 |
| 6 |
CATEGORIES= devel |
6 |
CATEGORIES= devel |
| 7 |
|
7 |
|
| 8 |
MAINTAINER= bsdports@kyle-evans.net |
8 |
MAINTAINER= bsdports@kyle-evans.net |
|
Lines 20-32
Link Here
|
| 20 |
stretchr:testify:v1.1.3:stretchr/src/github.com/stretchr/testify \ |
20 |
stretchr:testify:v1.1.3:stretchr/src/github.com/stretchr/testify \ |
| 21 |
jstemmer:go-junit-report:833f8ea:jstemmer/src/github.com/jstemmer/go-junit-report |
21 |
jstemmer:go-junit-report:833f8ea:jstemmer/src/github.com/jstemmer/go-junit-report |
| 22 |
|
22 |
|
|
|
23 |
OPTIONS_DEFINE= TOOLS |
| 24 |
OPTIONS_DEFAULT=TOOLS |
| 25 |
|
| 26 |
TOOLS_DESC= Add arduino-tools for a standalone build setup |
| 27 |
TOOLS_RUN_DEPENDS= arduino-tools>=${_COMPAT_VER}:devel/arduino-tools |
| 28 |
TOOLS_PLIST_FILES= arduino/arduino-builder.options |
| 29 |
|
| 23 |
GO_ENV+= GOPATH=${WRKSRC} |
30 |
GO_ENV+= GOPATH=${WRKSRC} |
| 24 |
STRIP= # stripping can break go binaries |
31 |
STRIP= # stripping can break go binaries |
|
|
32 |
_COMPAT_VER= 1.6.12 |
| 33 |
_IDE_VER= 10612 |
| 25 |
|
34 |
|
| 26 |
PLIST_FILES= arduino/hardware/platform.keys.rewrite.txt \ |
35 |
PLIST_FILES= arduino/hardware/platform.keys.rewrite.txt \ |
| 27 |
arduino/hardware/platform.txt \ |
36 |
arduino/hardware/platform.txt \ |
| 28 |
bin/${PORTNAME} |
37 |
bin/${PORTNAME} |
| 29 |
|
38 |
|
|
|
39 |
do-patch-TOOLS-on: |
| 40 |
${CP} ${FILESDIR}/arduino-builder.options.in ${WRKSRC}/arduino-builder.options |
| 41 |
${REINPLACE_CMD} -e 's|%%IDEVER%%|${_IDE_VER}|' \ |
| 42 |
-e 's|%%PREFIX%%|${PREFIX}|' \ |
| 43 |
${WRKSRC}/arduino-builder.options |
| 44 |
|
| 30 |
do-build: |
45 |
do-build: |
| 31 |
@( cd ${WRKSRC} ; ${SETENV} ${GO_ENV} go build arduino.cc/arduino-builder ) |
46 |
@( cd ${WRKSRC} ; ${SETENV} ${GO_ENV} go build arduino.cc/arduino-builder ) |
| 32 |
|
47 |
|
|
Lines 34-37
Link Here
|
| 34 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
49 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
| 35 |
(cd ${WRKSRC}/src/arduino.cc/builder && ${COPYTREE_SHARE} "hardware" ${STAGEDIR}${PREFIX}/arduino ${FIND_EXPR}) |
50 |
(cd ${WRKSRC}/src/arduino.cc/builder && ${COPYTREE_SHARE} "hardware" ${STAGEDIR}${PREFIX}/arduino ${FIND_EXPR}) |
| 36 |
|
51 |
|
|
|
52 |
do-install-TOOLS-on: |
| 53 |
${INSTALL_DATA} ${WRKSRC}/arduino-builder.options ${STAGEDIR}${PREFIX}/arduino/arduino-builder.options |
| 54 |
|
| 37 |
.include <bsd.port.mk> |
55 |
.include <bsd.port.mk> |