1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/net/cf/Makefile
Jean-Sébastien Pédron 4588c462dd net/cf: Take maintainership
Approved by:	swills
Sponsored by:	Pivotal Software, Inc
2018-06-20 15:41:09 +00:00

44 lines
870 B
Makefile

# $FreeBSD$
PORTNAME= cf
PORTVERSION= 6.37.0
DISTVERSIONPREFIX= v
CATEGORIES= net
MAINTAINER= dumbbell@FreeBSD.org
COMMENT= CLI for Cloud Foundry written in Go
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
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= 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>