Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2018 21:06:28 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r480819 - head/benchmarks/bombardier
Message-ID:  <201809272106.w8RL6S3v051993@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Thu Sep 27 21:06:28 2018
New Revision: 480819
URL: https://svnweb.freebsd.org/changeset/ports/480819

Log:
  - Simplify the Makefile with GO_* variables

Modified:
  head/benchmarks/bombardier/Makefile

Modified: head/benchmarks/bombardier/Makefile
==============================================================================
--- head/benchmarks/bombardier/Makefile	Thu Sep 27 20:42:29 2018	(r480818)
+++ head/benchmarks/bombardier/Makefile	Thu Sep 27 21:06:28 2018	(r480819)
@@ -16,19 +16,9 @@ USES=		go
 USE_GITHUB=	yes
 GH_ACCOUNT=	codesenberg
 
-PLIST_FILES=	bin/${PORTNAME}
+GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
+GO_BUILDFLAGS=	-ldflags "-X main.version=${PORTVERSION}"
 
-post-patch:
-	${MKDIR} ${WRKDIR}/src/github.com/${GH_ACCOUNT}
-	${LN} -s ${WRKSRC} ${WRKDIR}/src/github.com/${GH_ACCOUNT}/${PORTNAME}
-
-do-build:
-	cd ${WRKDIR}/src/github.com/${GH_ACCOUNT}/${PORTNAME} && \
-		GOPATH=${WRKDIR} go build -ldflags "-X main.version=${PORTVERSION}" .
-
-do-install:
-	${INSTALL_PROGRAM} \
-		${WRKDIR}/src/github.com/${GH_ACCOUNT}/${PORTNAME}/${PORTNAME} \
-		${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+PLIST_FILES=	bin/${PORTNAME}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809272106.w8RL6S3v051993>