mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 03:23:10 -04:00
PR: 220395 Submitted by: kevans Reviewed by: lifanov (mentor) Approved by: lifanov (mentor) Differential Revision: https://reviews.freebsd.org/D11497
29 lines
617 B
Makefile
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>
|