2010-05-27 12:49:07 +02:00
|
|
|
# $NetBSD: options.mk,v 1.4 2010/05/27 10:49:07 adam Exp $
|
2007-03-05 16:55:25 +01:00
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.sysbench
|
2007-03-06 22:53:55 +01:00
|
|
|
PKG_SUPPORTED_OPTIONS+= mysql pgsql doc
|
2007-03-05 16:55:25 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
2010-05-27 12:49:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
|
2007-03-05 16:55:25 +01:00
|
|
|
. include "../../mk/mysql.buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
2010-05-27 12:49:07 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pgsql=${PGSQL_PREFIX}
|
2007-03-05 16:55:25 +01:00
|
|
|
. include "../../mk/pgsql.buildlink3.mk"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pgsql
|
|
|
|
.endif
|
2007-03-06 22:53:55 +01:00
|
|
|
|
|
|
|
.if !empty(PKG_OPTIONS:Mdoc)
|
|
|
|
. include "../../textproc/libxslt/buildlink3.mk"
|
|
|
|
BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
|
|
|
|
.endif
|