summaryrefslogtreecommitdiffstats
path: root/devel/go-bindata/Makefile
blob: f014d1d2e6927d1e2753a4be0e750c1e442428f4 (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
# $FreeBSD$

PORTNAME=	go-bindata
PORTVERSION=	3.1.0
DISTVERSIONPREFIX=	v
CATEGORIES=	devel

MAINTAINER=	swills@FreeBSD.org
COMMENT=	Generates Go code from any file

BUILD_DEPENDS=	${LOCALBASE}/bin/go:lang/go

USE_GITHUB=	yes
GH_ACCOUNT=	jteeuwen
GH_TAGNAME=	a0ff256
GH_SUBDIR=	src/github.com/jteeuwen/go-bindata

PLIST_FILES=	bin/go-bindata

PORTDOCS=	CONTRIBUTING.md LICENSE README.md

OPTIONS_DEFINE=	DOCS

do-build:
	cd ${WRKSRC} ; \
		${SETENV} GOPATH=${WRKSRC} go build -o bin/go-bindata ./go-bindata/

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} \
		${STAGEDIR}${PREFIX}/bin/
	${MKDIR} ${STAGEDIR}${DOCSDIR}

do-install-DOCS-on:
.for x in ${PORTDOCS}
	${INSTALL_DATA} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/${x} \
		${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>
OpenPOWER on IntegriCloud