aboutsummaryrefslogtreecommitdiffstats
path: root/devel/erlang-protobuffs/Makefile
blob: 21cb9fea4ece3e27e1ee735c0fc27ecda0ea7fe1 (plain) (blame)
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
35
36
37
38
39
40
# $FreeBSD$

PORTNAME=   protobuffs
PORTVERSION=    0.8.1p5
PORTREVISION=   1
CATEGORIES= devel
PKGNAMEPREFIX=  erlang-

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Protocol Buffers interface for Erlang

BUILD_DEPENDS=  erlc:${PORTSDIR}/lang/erlang
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/${PORTNAME}-${PORTVERSION}
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
    ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
    ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src

.include <bsd.port.mk>