blob: 9f2db913ddd0ead3f1041ad58b33c8a92bd964ef (
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
|
# $NetBSD: options.mk,v 1.1 2013/02/17 16:15:42 fhajny Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.cfengine3
PKG_OPTIONS_REQUIRED_GROUPS= db
PKG_OPTIONS_GROUP.db= qdbm tokyocabinet
PKG_SUPPORTED_OPTIONS= qdbm tokyocabinet mysql pgsql
PKG_SUGGESTED_OPTIONS= tokyocabinet
.include "../../mk/bsd.options.mk"
### MySQL support
.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+= --with-mysql=${MYSQL_PREFIX}
.include "../../mk/mysql.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-mysql
.endif
### PostgreSQL support
.if !empty(PKG_OPTIONS:Mpgsql)
CONFIGURE_ARGS+= --with-postgresql=${PGSQL_PREFIX}
.include "../../mk/pgsql.buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-postgresql
.endif
### QDBM *or* Tokyo Cabinet support
.if !empty(PKG_OPTIONS:Mqdbm)
CONFIGURE_ARGS+= --with-qdbm=${BUILDLINK_PREFIX.qdbm}
.include "../../databases/qdbm/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mtokyocabinet)
CONFIGURE_ARGS+= --with-tokyocabinet=${BUILDLINK_PREFIX.tokyocabinet}
.include "../../databases/tokyocabinet/buildlink3.mk"
.endif
|