summaryrefslogtreecommitdiff
path: root/databases/elixir-ecto/Makefile
blob: 6246197be57a05d322ba0ad2730756d9334de049 (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
31
32
33
34
35
36
37
38
39
40

PORTNAME=	ecto
PORTVERSION=	2.2.10
DISTVERSIONPREFIX=	v
CATEGORIES=	databases
PKGNAMEPREFIX=	elixir-

MAINTAINER=	erlang@FreeBSD.org
COMMENT=	Database wrapper and language integrated query for Elixir

LICENSE=	APACHE20

USES=		elixir
USE_GITHUB=	yes
GH_ACCOUNT=	elixir-ecto

OPTIONS_DEFINE=	POSTGREX MARIAEX DOCS
OPTIONS_SUB=	yes
POSTGREX_DESC=	PostgreSQL adapter support
MARIAEX_DESC=	MySQL adapter support

MIX_BUILD_NAME=	shared
MIX_BUILD_DEPS=	devel/elixir-decimal \
		devel/elixir-poison \
		devel/erlang-poolboy

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPOSTGREX}
MIX_BUILD_DEPS+=databases/elixir-postgrex
.endif

.if ${PORT_OPTIONS:MMARIAEX}
MIX_BUILD_DEPS+=databases/elixir-mariaex
.endif

MIX_RUN_DEPS:=	${MIX_BUILD_DEPS}
MIX_REWRITE=	yes

.include <bsd.port.mk>