summaryrefslogtreecommitdiff
path: root/net/wireguard-go
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-06-29 03:51:13 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-06-29 03:51:13 +0000
commit3726f942547e374490d375baf83216d7644a7162 (patch)
tree8c7c440762c72012824110ba9cdd44c8c1765017 /net/wireguard-go
parentNew port: net/ntpsec: Network Time Protocol suite, refactored (diff)
Convert all Go ports to USES=go
This allows for port testing with lang/go-devel via GO_PORT, setting up the Go build environment in a single place, and is step one in simplifying Go ports that often define too complicated do-build targets themselves. USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and 'no_targets' for ports with composite builds that call 'go' themselves and do not need the do-build/do-install targets of USES=go. PR: 238849 Submitted by: dg@syrec.org (also D20745) Reviewed by: mat, tobik Exp-run by: antoine Differential Revision: https://reviews.freebsd.org/D20746
Notes
Notes: svn path=/head/; revision=505321
Diffstat (limited to 'net/wireguard-go')
-rw-r--r--net/wireguard-go/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/wireguard-go/Makefile b/net/wireguard-go/Makefile
index 7317d2ace419..76fc282edd6d 100644
--- a/net/wireguard-go/Makefile
+++ b/net/wireguard-go/Makefile
@@ -12,16 +12,14 @@ COMMENT= WireGuard implementation in Go
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-BUILD_DEPENDS= go:lang/go
-
-USES= gmake tar:xz
+USES= gmake go:modules,no_targets tar:xz
USE_GITHUB= nodefault
GH_TUPLE= golang:crypto:b7391e95e576:crypto/vendor/golang.org/x/crypto \
golang:net:1272bf9dcd53:net/vendor/golang.org/x/net \
golang:sys:f7bb7a8bee54:sys/vendor/golang.org/x/sys
-MAKE_ENV+= GOFLAGS=-mod=vendor
+MAKE_ENV+= GOFLAGS="${GO_BUILDFLAGS}"
PLIST_FILES= bin/${PORTNAME}