aboutsummaryrefslogtreecommitdiffstats
path: root/www/erlang-cowboy/Makefile
blob: 7389c3aed28d82d487ce4ab01ec46d315bb6997e (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
# $FreeBSD$

PORTNAME=   cowboy
PORTVERSION=    1.0.1
CATEGORIES= www
PKGNAMEPREFIX=  erlang-

MAINTAINER= olgeni@FreeBSD.org
COMMENT=    Small, fast and modular HTTP server written in Erlang

LICENSE=    ISCL

BUILD_DEPENDS=  erlc:${PORTSDIR}/lang/erlang \
        erlang-cowlib>=1.0.0:${PORTSDIR}/devel/erlang-cowlib
RUN_DEPENDS=    erl:${PORTSDIR}/lang/erlang \
        erlang-cowlib>=1.0.0:${PORTSDIR}/devel/erlang-cowlib \
        erlang-ranch>=1.0.0:${PORTSDIR}/net/erlang-ranch

PLIST_SUB=  VERSION="${PORTVERSION}"

USES=       gmake
USE_GITHUB= yes
GH_ACCOUNT= ninenines

do-install:
    @${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}/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>