- Simplify the Makefile with GO_* variables
This commit is contained in:
parent
d5ff68dac6
commit
20d2d686b4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=480819
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user