svn commit: r480819 - head/benchmarks/bombardier
Danilo Egea Gondolfo
danilo at FreeBSD.org
Thu Sep 27 21:06:29 UTC 2018
Author: danilo
Date: Thu Sep 27 21:06:28 2018
New Revision: 480819
URL: https://svnweb.freebsd.org/changeset/ports/480819
Log:
- Simplify the Makefile with GO_* variables
Modified:
head/benchmarks/bombardier/Makefile
Modified: head/benchmarks/bombardier/Makefile
==============================================================================
--- head/benchmarks/bombardier/Makefile Thu Sep 27 20:42:29 2018 (r480818)
+++ head/benchmarks/bombardier/Makefile Thu Sep 27 21:06:28 2018 (r480819)
@@ -16,19 +16,9 @@ USES= go
USE_GITHUB= yes
GH_ACCOUNT= codesenberg
-PLIST_FILES= bin/${PORTNAME}
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_BUILDFLAGS= -ldflags "-X main.version=${PORTVERSION}"
-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}
+PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list