diff options
Diffstat (limited to 'devel/arduino-builder')
| -rw-r--r-- | devel/arduino-builder/Makefile | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/devel/arduino-builder/Makefile b/devel/arduino-builder/Makefile index 9fb4d259bb96..d8a1fa3c5507 100644 --- a/devel/arduino-builder/Makefile +++ b/devel/arduino-builder/Makefile @@ -2,7 +2,7 @@ PORTNAME= arduino-builder PORTVERSION= 1.3.21 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MAINTAINER= bsdports@kyle-evans.net @@ -20,13 +20,28 @@ GH_TUPLE= go-errors:errors:a418503:goerrors/src/github.com/go-errors/errors \ stretchr:testify:v1.1.3:stretchr/src/github.com/stretchr/testify \ jstemmer:go-junit-report:833f8ea:jstemmer/src/github.com/jstemmer/go-junit-report +OPTIONS_DEFINE= TOOLS +OPTIONS_DEFAULT=TOOLS + +TOOLS_DESC= Add arduino-tools for a standalone build setup +TOOLS_RUN_DEPENDS= arduino-tools>=${_COMPAT_VER}:devel/arduino-tools +TOOLS_PLIST_FILES= arduino/arduino-builder.options + GO_ENV+= GOPATH=${WRKSRC} STRIP= # stripping can break go binaries +_COMPAT_VER= 1.6.12 +_IDE_VER= 10612 PLIST_FILES= arduino/hardware/platform.keys.rewrite.txt \ arduino/hardware/platform.txt \ bin/${PORTNAME} +do-patch-TOOLS-on: + ${CP} ${FILESDIR}/arduino-builder.options.in ${WRKSRC}/arduino-builder.options + ${REINPLACE_CMD} -e 's|%%IDEVER%%|${_IDE_VER}|' \ + -e 's|%%PREFIX%%|${PREFIX}|' \ + ${WRKSRC}/arduino-builder.options + do-build: @( cd ${WRKSRC} ; ${SETENV} ${GO_ENV} go build arduino.cc/arduino-builder ) @@ -34,4 +49,7 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} (cd ${WRKSRC}/src/arduino.cc/builder && ${COPYTREE_SHARE} "hardware" ${STAGEDIR}${PREFIX}/arduino ${FIND_EXPR}) +do-install-TOOLS-on: + ${INSTALL_DATA} ${WRKSRC}/arduino-builder.options ${STAGEDIR}${PREFIX}/arduino/arduino-builder.options + .include <bsd.port.mk> |
