28 lines
846 B
Makefile
28 lines
846 B
Makefile
|
# $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
|