summaryrefslogtreecommitdiffstats
path: root/devel/goprotobuf/Makefile
blob: 805d6de21ce6b265281926a5cfe35f874155988c (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
# New ports collection makefile for:	goprotobuf
# Date created:		2012-01-22
# Whom:			Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	goprotobuf
PORTVERSION=	20120409
CATEGORIES=	devel
MASTER_SITES=	LOCAL/jlaffaye

MAINTAINER=	ahze@FreeBSD.org
COMMENT=	Go support for Google's protocol buffers

LICENSE=	BSD

RUN_DEPENDS=	protoc:${PORTSDIR}/devel/protobuf

USE_GO=		yes
GO_PKGNAME=	code.google.com/p/goprotobuf
GO_TARGET=	${GO_PKGNAME}/proto ${GO_PKGNAME}/protoc-gen-go

do-install:
	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/protoc-gen-go ${LOCALBASE}/bin
	${MKDIR} ${GO_LOCAL_LIBDIR}/${GO_PKGNAME}
	(cd ${GO_WRKDIR_PKG}/${GO_PKGNAME}/ && ${COPYTREE_SHARE} \* ${GO_LOCAL_LIBDIR}/${GO_PKGNAME})
	${MKDIR} ${GO_LOCAL_SRCDIR}/${GO_PKGNAME}/proto
	(cd ${GO_WRKSRC}/proto && ${COPYTREE_SHARE} \*	\
		${GO_LOCAL_SRCDIR}/${GO_PKGNAME}/proto)

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/lang/go/files/bsd.go.mk"
.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud