summaryrefslogtreecommitdiff
path: root/benchmarks/sysbench/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/sysbench/options.mk')
-rw-r--r--benchmarks/sysbench/options.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/benchmarks/sysbench/options.mk b/benchmarks/sysbench/options.mk
new file mode 100644
index 00000000000..0dfa63c1aa8
--- /dev/null
+++ b/benchmarks/sysbench/options.mk
@@ -0,0 +1,20 @@
+# $NetBSD: options.mk,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.sysbench
+PKG_SUPPORTED_OPTIONS+= mysql pgsql
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mmysql)
+CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client:Q}
+. include "../../mk/mysql.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-mysql
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+CONFIGURE_ARGS+= --with-pgsql=${PGSQL_PREFIX:Q}
+. include "../../mk/pgsql.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-pgsql
+.endif