1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/devel/goprotobuf/Makefile
Julien Laffaye e88fbe1383 - Update to 20120409
PR:		ports/167316
Submitted by:	jlaffaye
Approved by:	ahze (maintainer timeout)
2012-05-14 22:02:57 +00:00

35 lines
947 B
Makefile

# 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>