- Simplify the Makefile with GO_* variables

This commit is contained in:
Danilo Egea Gondolfo 2018-09-27 21:06:28 +00:00
parent d5ff68dac6
commit 20d2d686b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480819

View File

@ -16,19 +16,9 @@ USES= go
USE_GITHUB= yes
GH_ACCOUNT= codesenberg
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_BUILDFLAGS= -ldflags "-X main.version=${PORTVERSION}"
PLIST_FILES= bin/${PORTNAME}
post-patch:
${MKDIR} ${WRKDIR}/src/github.com/${GH_ACCOUNT}
${LN} -s ${WRKSRC} ${WRKDIR}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
do-build:
cd ${WRKDIR}/src/github.com/${GH_ACCOUNT}/${PORTNAME} && \
GOPATH=${WRKDIR} go build -ldflags "-X main.version=${PORTVERSION}" .
do-install:
${INSTALL_PROGRAM} \
${WRKDIR}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/${PORTNAME} \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>