diff options
Diffstat (limited to 'devel/erlang-msgpack/Makefile')
-rw-r--r-- | devel/erlang-msgpack/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/devel/erlang-msgpack/Makefile b/devel/erlang-msgpack/Makefile new file mode 100644 index 000000000000..bd6574f53497 --- /dev/null +++ b/devel/erlang-msgpack/Makefile @@ -0,0 +1,42 @@ +# $FreeBSD$ + +PORTNAME= msgpack-erlang +PORTVERSION= 0.3.3 +CATEGORIES= devel + +MAINTAINER= olgeni@FreeBSD.org +COMMENT= MessagePack (de)serializer for Erlang + +LICENSE= APACHE20 + +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= msgpack +GH_PROJECT= msgpack-erlang + +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + +post-patch: + @${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/src/msgpack.app.src + +do-install: +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} +.endif + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION} + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/ebin + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/include + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/src + ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/ebin + ${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/include + ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/msgpack-${PORTVERSION}/src + +.include <bsd.port.mk> |