summaryrefslogtreecommitdiff
path: root/www/erlang-hackney/Makefile
blob: 4f56946212bb0136cbf77d347f3a20ba763cfece (plain)
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
PORTNAME=	hackney
PORTVERSION=	1.8.6
CATEGORIES=	www
PKGNAMEPREFIX=	erlang-

MAINTAINER=	erlang@FreeBSD.org
COMMENT=	Simple HTTP client in Erlang

LICENSE=	APACHE20

USES=		erlang:rebar3
USE_GITHUB=	yes
GH_ACCOUNT=	benoitc

ERL_BUILD_DEPS=	dns/erlang-idna \
		devel/erlang-certifi \
		devel/erlang-ssl_verify_fun \
		devel/erlang-metrics \
		misc/erlang-mimerl
ERL_RUN_DEPS:=	${ERL_BUILD_DEPS}

OPTIONS_DEFINE=	DOCS

pre-build:
	@${MKDIR} ${WRKSRC}/_build/default/lib
.for lib in idna certifi ssl_verify_fun metrics mimerl
	@${LN} -s ${PREFIX}/lib/erlang/lib/${lib}-* ${WRKSRC}/_build/default/lib/${lib}
.endfor

.include <bsd.port.mk>