blob: 52d4e9adb9edabefdda540a262974ecf4658a08c (
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
41
42
43
44
45
46
47
48
49
50
|
# $NetBSD: options.mk,v 1.1 2015/08/30 17:41:51 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libzdb
PKG_SUPPORTED_OPTIONS= ssl libzdb-sqliteunlock
PKG_SUGGESTED_OPTIONS= ssl mysql pgsql sqlite
PKG_OPTIONS_NONEMPTY_SETS= database
PKG_OPTIONS_SET.database= mysql pgsql sqlite
.include "../../mk/bsd.options.mk"
###
### Support using a MySQL database server
###
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config
.else
CONFIGURE_ARGS+= --without-mysql
.endif
###
### Support using a PostgreSQL database server
###
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
CONFIGURE_ARGS+= --with-postgresql=${BUILDLINK_PREFIX.postgresql-lib}
.else
CONFIGURE_ARGS+= --without-postgresql
.endif
###
### Support using a SQLite database
###
.if !empty(PKG_OPTIONS:Msqlite)
. include "../../databases/sqlite3/buildlink3.mk"
CONFIGURE_ARGS+= --with-sqlite=${BUILDLINK_PREFIX.sqlite3}
. if !empty(PKG_OPTIONS:Mlibzdb-sqliteunlock)
CONFIGURE_ARGS+= --enable-sqliteunlock
. endif
.else
CONFIGURE_ARGS+= --without-sqlite
.endif
###
### Support OpenSSL cryptographic library
###
.if !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+= --enable-openssl
. include "../../security/openssl/buildlink3.mk"
.endif
|