aboutsummaryrefslogtreecommitdiff
path: root/net/cf/Makefile
diff options
context:
space:
mode:
authorDmitri Goutnik <dmgk@FreeBSD.org>2019-09-29 22:31:57 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2019-09-29 22:31:57 +0000
commit67c4b925b7fd606361a2152563b80da493232dfb (patch)
tree16884a4188ae95c6d4b3c8e73cfaf24404fd28e8 /net/cf/Makefile
parent34156e93e84fe00711fac9dbf19e33534dc665f9 (diff)
downloadports-67c4b925b7fd606361a2152563b80da493232dfb.tar.gz
ports-67c4b925b7fd606361a2152563b80da493232dfb.zip
Notes
Diffstat (limited to 'net/cf/Makefile')
-rw-r--r--net/cf/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/net/cf/Makefile b/net/cf/Makefile
index f744f4512e68..733a6dcada4d 100644
--- a/net/cf/Makefile
+++ b/net/cf/Makefile
@@ -18,7 +18,10 @@ GH_ACCOUNT= cloudfoundry
GH_PROJECT= cli
USES= go
+
+GO_BUILDFLAGS= -ldflags="-X code.cloudfoundry.org/cli/version.binaryVersion=${PORTVERSION}"
GO_PKGNAME= code.cloudfoundry.org/cli
+GO_TARGET= :cf
PLIST_FILES= bin/cf
@@ -26,18 +29,10 @@ PORTDOCS= NOTICE README.md
OPTIONS_DEFINE= DOCS
-do-build:
- (cd ${WRKDIR}; \
- ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} \
- install -v -ldflags="-X code.cloudfoundry.org/cli/version.binaryVersion=${PORTVERSION}" ${GO_TARGET})
-
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for x in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
.endfor
-post-install:
- ${MV} ${STAGEDIR}${PREFIX}/bin/cli ${STAGEDIR}${PREFIX}/bin/cf
-
.include <bsd.port.mk>