mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
39 lines
805 B
Makefile
39 lines
805 B
Makefile
# $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>
|