1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/net/cf/Makefile
Jean-Sébastien Pédron 46b99691d5 net/cf: Update to 6.24.0
The port now uses a `go build` link flag to set the version (as returned
by `cf --version`) of the produced executable. This gets rid of the
previous patching; it didn't work anymore with the new source code
anyway.

Approved by:	swills, antoine (mentor)
Differential Revision:	https://reviews.freebsd.org/D9650
2017-02-26 15:01:41 +00:00

45 lines
899 B
Makefile

# $FreeBSD$
PORTNAME= cf
PORTVERSION= 6.24.0
DISTVERSIONPREFIX= v
CATEGORIES= net
MAINTAINER= swills@FreeBSD.org
COMMENT= CLI for Cloud Foundry written in Go
LICENSE= APACHE20
BUILD_DEPENDS= ${LOCALBASE}/bin/go-bindata:devel/go-bindata
USE_GITHUB= yes
GH_ACCOUNT= cloudfoundry
GH_PROJECT= cli
USES= go
GO_PKGNAME= code.cloudfoundry.org/cli
PLIST_FILES= bin/cf
PORTDOCS= CHANGELOG.md LICENSE NOTICE README.md
STRIP= # stripping can break go binaries
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_MAN} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
.endfor
post-install:
${MV} ${STAGEDIR}${PREFIX}/bin/cli ${STAGEDIR}${PREFIX}/bin/cf
.include <bsd.port.mk>