pkgsrc/misc/koffice/options.mk
markd 170460640e Update to koffice 1.5.0
This version sports OpenDocument as the default file format,
accessibility, a new project planning tool KPlato, professional color
support and adjustment layers in Krita and the long awaited Kexi 1.0.
2006-04-12 12:37:35 +00:00

27 lines
860 B
Makefile

# $NetBSD: options.mk,v 1.2 2006/04/12 12:37:35 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-pgsql-includes=${PGSQL_PREFIX}/include
CONFIGURE_ARGS+= --with-pgsql-libraries=${PGSQL_PREFIX}/lib
CONFIGURE_ARGS+= --with-pqxx-includes=${BUILDLINK_PREFIX.libpqxx}/include
CONFIGURE_ARGS+= --with-pqxx-libraries=${BUILDLINK_PREFIX.libpqxx}/lib
PLIST_SUBST+= HAVE_PGSQL=
.else
CONFIGURE_ARGS+= --disable-pgsql
PLIST_SUBST+= HAVE_PGSQL="@comment "
.endif