ports/devel/arduinoOTA/Makefile
Richard Gallamore 6b38c75dd9 * Updated maintainer email address
PR:		220395
Submitted by:	kevans
Reviewed by:	lifanov (mentor)
Approved by:	lifanov (mentor)
Differential Revision:	https://reviews.freebsd.org/D11497
2017-07-06 01:39:08 +00:00

29 lines
617 B
Makefile

# $FreeBSD$
PORTNAME= arduinoOTA
PORTVERSION= 1.2.0
CATEGORIES= devel
MAINTAINER= kevans@FreeBSD.org
COMMENT= OTA upload tool for Arduino/ESP8266
LICENSE= GPLv3
BUILD_DEPENDS= go:lang/go
USE_GITHUB= yes
GH_ACCOUNT= arduino
GH_TAGNAME= c2b8306
PLIST_FILES= bin/${PORTNAME}
COMPILEINFO= ${OPSYS}${OSREL}-${ARCH}-${GH_TAGNAME}
STRIP= # stripping can break go binaries
do-build:
(cd ${WRKSRC} && ${SETENV} ${GO_ENV} go build -o ${PORTNAME} -ldflags "-X main.compileInfo=${COMPILEINFO}" main.go)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>