summaryrefslogtreecommitdiff
path: root/databases/p5-App-Sqitch/options.mk
blob: 754f6eea43806c77e0d991b445091a3cee8a0350 (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
# $NetBSD: options.mk,v 1.2 2022/08/14 17:21:50 schmonz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.sqitch

PKG_SUPPORTED_OPTIONS+=	mysql odbc oracle pgsql sqlite
PKG_SUGGESTED_OPTIONS=	sqlite

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+=		p5-DBD-mysql>=4.018:../../databases/p5-DBD-mysql
# MySQL::Config: '0'
BUILD_PARAMS+=		--with mysql
.endif

.if !empty(PKG_OPTIONS:Modbc)
DEPENDS+=		p5-DBD-ODBC>=1.59:../../databases/p5-DBD-ODBC
BUILD_PARAMS+=		--with odbc
.endif

.if !empty(PKG_OPTIONS:Moracle)
DEPENDS+=		p5-DBD-Oracle>=1.23:../../databases/p5-DBD-Oracle
BUILD_PARAMS+=		--with oracle
.endif

.if !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+=		p5-DBD-postgresql>=2.0:../../databases/p5-DBD-postgresql
BUILD_PARAMS+=		--with postgres
.endif

.if !empty(PKG_OPTIONS:Msqlite)
DEPENDS+=		p5-DBD-SQLite>=1.37:../../databases/p5-DBD-SQLite
BUILD_PARAMS+=		--with sqlite
.endif