svn commit: r478076 - head/Mk/Uses

Julien Laffaye jlaffaye at FreeBSD.org
Sat Aug 25 17:26:17 UTC 2018


Author: jlaffaye
Date: Sat Aug 25 17:26:16 2018
New Revision: 478076
URL: https://svnweb.freebsd.org/changeset/ports/478076

Log:
  Add GO_BUILDFLAGS variable to Uses/go.mk
  
  PR:		225812
  Submitted by:	David O'Rourke <dor.bsd at xm0.uk>

Modified:
  head/Mk/Uses/go.mk

Modified: head/Mk/Uses/go.mk
==============================================================================
--- head/Mk/Uses/go.mk	Sat Aug 25 16:28:18 2018	(r478075)
+++ head/Mk/Uses/go.mk	Sat Aug 25 17:26:16 2018	(r478076)
@@ -24,6 +24,9 @@
 #	Addional LDFLAGS variables to be passed to the C compiler by the `go`
 #	command
 #
+# GO_BUILDFLAGS
+#	Additional build arguments to be passed to the `go install` command
+#
 # MAINTAINER: jlaffaye at FreeBSD.org
 
 .if !defined(_INCLUDE_USES_GO_MK)
@@ -40,6 +43,7 @@ GOOBJ=	6
 # Settable variables
 GO_PKGNAME?=	${PORTNAME}
 GO_TARGET?=	${GO_PKGNAME}
+GO_BUILDFLAGS+=	-v
 CGO_CFLAGS+=	-I${LOCALBASE}/include
 CGO_LDFLAGS+=	-L${LOCALBASE}/lib
 
@@ -76,7 +80,8 @@ post-extract:
 
 .if !target(do-build)
 do-build:
-	@(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install -v ${GO_TARGET})
+	@(cd ${GO_WRKSRC}; \
+		${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} install ${GO_BUILDFLAGS} ${GO_TARGET})
 .endif
 
 .if !target(do-install)


More information about the svn-ports-all mailing list