mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
Mk/Uses/go.mk: Allow overriding the Go port
This is intended to be used for regression testing of USES=go ports with lang/go-devel. Submitted by: dg@syrec.org Differential Revision: https://reviews.freebsd.org/D20570
This commit is contained in:
parent
9a3c0ab0ca
commit
c76d322aa6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=504942
@ -36,6 +36,12 @@
|
||||
# GO_BUILDFLAGS
|
||||
# Additional build arguments to be passed to the `go install` command
|
||||
#
|
||||
# GO_PORT
|
||||
# The Go port to use. By default this is lang/go but can be set
|
||||
# to lang/go-devel in make.conf for testing with future Go versions.
|
||||
#
|
||||
# This variable should not be set by individual ports!
|
||||
#
|
||||
# MAINTAINER: jlaffaye@FreeBSD.org
|
||||
|
||||
.if !defined(_INCLUDE_USES_GO_MK)
|
||||
@ -83,7 +89,8 @@ GO_ENV+= GOPATH="${WRKDIR}" \
|
||||
GOBIN=""
|
||||
.endif
|
||||
|
||||
BUILD_DEPENDS+= ${GO_CMD}:lang/go
|
||||
GO_PORT?= lang/go
|
||||
BUILD_DEPENDS+= ${GO_CMD}:${GO_PORT}
|
||||
PLIST_SUB+= GO_PKGNAME=${GO_PKGNAME}
|
||||
|
||||
_USES_POST+= go
|
||||
|
Loading…
Reference in New Issue
Block a user