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