summaryrefslogtreecommitdiff
path: root/net/nagios-base/options.mk
blob: 11dd3e83ccc1c517f614e473e89a1f318ea1dbfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# $NetBSD: options.mk,v 1.2 2008/07/21 00:35:42 tonnerre Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.nagios-base
PKG_SUPPORTED_OPTIONS=	mysql pgsql
.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mmysql)
CONFIGURE_ARGS+=	--with-mysql-lib=${PREFIX}/lib/mysql		\
			--with-mysql-inc=${PREFIX}/include/mysql	\
			--with-mysql-xdata
.include "../../mk/mysql.buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mpgsql)
CONFIGURE_ARGS+=	--with-pgsql-lib=${PREFIX}/pgsql \
			--with-pgsql-inc=${PREFIX}/pgsql \
			--with-pgsql-xdata
.include "../../mk/pgsql.buildlink3.mk"
.endif