summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Pizzamiglio <pizzamig@FreeBSD.org>2019-10-01 08:59:29 +0000
committerLuca Pizzamiglio <pizzamig@FreeBSD.org>2019-10-01 08:59:29 +0000
commite85b9be1ed05266c06cd127a8effafe5868b9988 (patch)
tree0d67213849a5bf15bb0ffdbcd320cd3961798fb2
parentwww/yarn: Update to 1.19.0 (diff)
sysutils/nomad-pot-driver: simplify Makefile
No functional changes introduced PR: 240948 Submitted by: dmgk@ MFH: 2019Q4 Sponsored by: trivago N.V.
Notes
Notes: svn path=/head/; revision=513466
Diffstat (limited to '')
-rw-r--r--sysutils/nomad-pot-driver/Makefile21
1 files changed, 4 insertions, 17 deletions
diff --git a/sysutils/nomad-pot-driver/Makefile b/sysutils/nomad-pot-driver/Makefile
index dc82ed037a0e..581b7c821782 100644
--- a/sysutils/nomad-pot-driver/Makefile
+++ b/sysutils/nomad-pot-driver/Makefile
@@ -16,27 +16,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= pot:sysutils/pot \
nomad:sysutils/nomad
-USES= compiler go
+USES= go
USE_GITHUB= yes
GH_ACCOUNT= trivago
GH_SUBDIR= src/github.com/trivago/nomad-pot-driver
+GO_TARGET= :${PREFIX}/libexec/nomad/plugins/nomad-pot-driver
+
PLIST_FILES= libexec/nomad/plugins/nomad-pot-driver
SUB_FILES= pkg-message
-do-build:
- @cd ${WRKSRC}/src/github.com/trivago/nomad-pot-driver && \
- ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
- -o bin/nomad-pot-driver
-
-do-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nomad/plugins
- ${INSTALL_SCRIPT} ${WRKSRC}/src/github.com/trivago/nomad-pot-driver/bin/nomad-pot-driver ${STAGEDIR}${PREFIX}/libexec/nomad/plugins
-
-.include <bsd.port.pre.mk>
-
-.if ${COMPILER_TYPE} == clang
-BUILD_ENV= CC=clang
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>