aboutsummaryrefslogtreecommitdiff
path: root/devel/erlang-protobuffs/Makefile
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2015-05-05 10:33:57 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2015-05-05 10:33:57 +0000
commit8519328476dbd9c91b678b28ed59ca3cea4dae10 (patch)
tree9d6596e2269b9e130f7aa3e67c24cf5f273903bb /devel/erlang-protobuffs/Makefile
parent9a0b474491e9aa2a37dce11576029276c8f6fd02 (diff)
downloadports-8519328476dbd9c91b678b28ed59ca3cea4dae10.tar.gz
ports-8519328476dbd9c91b678b28ed59ca3cea4dae10.zip
Notes
Diffstat (limited to 'devel/erlang-protobuffs/Makefile')
-rw-r--r--devel/erlang-protobuffs/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/devel/erlang-protobuffs/Makefile b/devel/erlang-protobuffs/Makefile
new file mode 100644
index 000000000000..670f7318e90f
--- /dev/null
+++ b/devel/erlang-protobuffs/Makefile
@@ -0,0 +1,40 @@
+# $FreeBSD$
+
+PORTNAME= protobuffs
+PORTVERSION= 0.8.1p5
+CATEGORIES= devel
+PKGNAMEPREFIX= erlang-
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Protocol Buffers interface for Erlang
+
+BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
+ rebar:${PORTSDIR}/devel/rebar
+RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
+
+PLIST_SUB= VERSION="${PORTVERSION}"
+
+USE_GITHUB= yes
+GH_ACCOUNT= basho
+GH_PROJECT= erlang_protobuffs
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/src/protobuffs.app.src
+ @${RM} ${WRKSRC}/src/*.bak ${WRKSRC}/src/*.orig
+
+do-install:
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
+.endif
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/ebin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/src
+ ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/ebin
+ ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/src
+
+.include <bsd.port.mk>