aboutsummaryrefslogtreecommitdiffstats
path: root/databases/elixir-ecto/Makefile
blob: 77662706bfef4c0beaef3b58274e956d5359974c (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
41
# $FreeBSD$

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

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

LICENSE=    APACHE20

USES=       elixir
USE_GITHUB= yes
GH_ACCOUNT= elixir-lang

OPTIONS_DEFINE= POSTGREX MARIAEX
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>