summaryrefslogtreecommitdiff
path: root/misc/koffice/options.mk
blob: c2e9258bf7b5a73670e2eebafab39d1669115b06 (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
# $NetBSD: options.mk,v 1.1 2005/06/27 02:06:45 markd Exp $

PKG_OPTIONS_VAR=        PKG_OPTIONS.koffice
PKG_SUPPORTED_OPTIONS=  mysql pgsql

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

.if !empty(PKG_OPTIONS:Mmysql)
.include "../../mk/mysql.buildlink3.mk"
PLIST_SUBST+=		HAVE_MYSQL=
.else
CONFIGURE_ARGS+=	--disable-mysql
PLIST_SUBST+=		HAVE_MYSQL="@comment "
.endif

.if !empty(PKG_OPTIONS:Mpgsql)
.include "../../mk/pgsql.buildlink3.mk"
.include "../../databases/libpqxx/buildlink3.mk"
CONFIGURE_ARGS+=	--with-pgsqlincdir=${PGSQL_PREFIX}/include
CONFIGURE_ARGS+=	--with-pgsqllibdir=${PGSQL_PREFIX}/lib
CONFIGURE_ARGS+=	--with-pqxxincdir=${BUILDLINK_PREFIX.libpqxx}/include
CONFIGURE_ARGS+=	--with-pqxxlibdir=${BUILDLINK_PREFIX.libpqxx}/lib
PLIST_SUBST+=		HAVE_PGSQL=
.else
CONFIGURE_ARGS+=	--disable-pgsql
PLIST_SUBST+=		HAVE_PGSQL="@comment "
.endif