aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2018-09-28 05:06:28 +0800
committerdanilo <danilo@FreeBSD.org>2018-09-28 05:06:28 +0800
commitcaa691e7d4131ebdaa6b954f94ba3b7fc8e3debe (patch)
tree5f5b4f3652507786bd99dfa528f3c86c9ea4cfb9
parenta4e075f3b73080688d6490acf83be003ae33c500 (diff)
downloadfreebsd-ports-gnome-caa691e7d4131ebdaa6b954f94ba3b7fc8e3debe.tar.gz
freebsd-ports-gnome-caa691e7d4131ebdaa6b954f94ba3b7fc8e3debe.tar.zst
freebsd-ports-gnome-caa691e7d4131ebdaa6b954f94ba3b7fc8e3debe.zip
- Simplify the Makefile with GO_* variables
-rw-r--r--benchmarks/bombardier/Makefile16
1 files changed, 3 insertions, 13 deletions
diff --git a/benchmarks/bombardier/Makefile b/benchmarks/bombardier/Makefile
index 8f63db42b32a..155b7ee61af4 100644
--- a/benchmarks/bombardier/Makefile
+++ b/benchmarks/bombardier/Makefile
@@ -16,19 +16,9 @@ USES= go
USE_GITHUB= yes
GH_ACCOUNT= codesenberg
-PLIST_FILES= bin/${PORTNAME}
-
-post-patch:
- ${MKDIR} ${WRKDIR}/src/github.com/${GH_ACCOUNT}
- ${LN} -s ${WRKSRC} ${WRKDIR}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_BUILDFLAGS= -ldflags "-X main.version=${PORTVERSION}"
-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>