From 3726f942547e374490d375baf83216d7644a7162 Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Sat, 29 Jun 2019 03:51:13 +0000 Subject: 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 --- net/wireguard-go/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'net/wireguard-go') 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} -- cgit v1.2.3