aboutsummaryrefslogtreecommitdiffstats
path: root/www/erlang-mochiweb-basho/Makefile
blob: b58188677c319473bc62de17b4208fa3427625ae (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=   mochiweb
PORTVERSION=    2.9.0p1
CATEGORIES= www devel
PKGNAMEPREFIX=  erlang-
PKGNAMESUFFIX=  -basho

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Erlang library for building lightweight HTTP servers (Basho fork)

LICENSE=    MIT

BUILD_DEPENDS=  erl:${PORTSDIR}/lang/erlang
RUN_DEPENDS:=   ${BUILD_DEPENDS}

CONFLICTS=  mochiweb-[0-9]*

PLIST_SUB=  VERSION="${PORTVERSION}"

USE_GITHUB= yes
GH_ACCOUNT= basho
GH_TAGNAME= ade2a9b # required

do-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    for FILE in CHANGES.md README.md; do \
        ${INSTALL_DATA} ${WRKSRC}/$${FILE} ${STAGEDIR}${DOCSDIR}; \
    done
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
    @${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}/include
    @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src
    ${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin
    ${INSTALL_DATA} ${WRKSRC}/include/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include
    ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/src

.include <bsd.port.mk>