summaryrefslogtreecommitdiff
path: root/net/cf/Makefile
blob: 487f636171a199296526bf7d98aa088118fe85a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PORTNAME=	cf
PORTVERSION=	6.49.0
DISTVERSIONPREFIX=	v
PORTREVISION=	21
CATEGORIES=	net

MAINTAINER=	dumbbell@FreeBSD.org
COMMENT=	CLI for Cloud Foundry written in Go
WWW=		https://cloudfoundry.org/

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${LOCALBASE}/bin/go-bindata:devel/go-bindata

USE_GITHUB=	yes
GH_ACCOUNT=	cloudfoundry
GH_PROJECT=	cli
GH_TUPLE=	golang:sys:v0.6.0:sys

USES=		go

CONFLICTS_INSTALL=	lbl-cf # bin/cf

GO_BUILDFLAGS=	-ldflags="-X code.cloudfoundry.org/cli/version.binaryVersion=${PORTVERSION}"
GO_PKGNAME=	code.cloudfoundry.org/cli
GO_TARGET=	:cf

PLIST_FILES=	bin/cf

PORTDOCS=	NOTICE README.md

OPTIONS_DEFINE=	DOCS

pre-patch:
	${RM} -r ${WRKSRC}/vendor/golang.org/x/sys
	${LN} -s ${WRKDIR}/sys-* ${WRKSRC}/vendor/golang.org/x/sys

do-install-DOCS-on:
	${MKDIR} ${STAGEDIR}${DOCSDIR}
.for x in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/${x} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>