aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/sysbench
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2012-06-01 21:18:21 +0800
committerbapt <bapt@FreeBSD.org>2012-06-01 21:18:21 +0800
commit4731dde58d46065936cb4e5d5cc90a1c28d51209 (patch)
tree7b84966f61227d2e957f51e93d2f7c00aadf0119 /benchmarks/sysbench
parent5288a5bc5ae68f669128326d195b9de6857de215 (diff)
downloadfreebsd-ports-gnome-4731dde58d46065936cb4e5d5cc90a1c28d51209.tar.gz
freebsd-ports-gnome-4731dde58d46065936cb4e5d5cc90a1c28d51209.tar.zst
freebsd-ports-gnome-4731dde58d46065936cb4e5d5cc90a1c28d51209.zip
Convert to new options framework
Diffstat (limited to 'benchmarks/sysbench')
-rw-r--r--benchmarks/sysbench/Makefile26
1 files changed, 13 insertions, 13 deletions
diff --git a/benchmarks/sysbench/Makefile b/benchmarks/sysbench/Makefile
index c7be93c5ecc2..625ff29cb412 100644
--- a/benchmarks/sysbench/Makefile
+++ b/benchmarks/sysbench/Makefile
@@ -19,26 +19,26 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USE_AUTOTOOLS= libtool
-OPTIONS= LARGEFILE "Enable Largefile support" on \
- MYSQL "Enable MySQL support" on \
- POSTGRESQL "Enable PostgreSQL support" off
+OPTIONS_DEFINE= LARGEFILE MYSQL PGSQL DOCS
+OTPIONS_DEFAULT= LARGEFILE MYSQL
+LARGEFILE_DESC= Enable Largefile support
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITHOUT_LARGEFILE)
-CONFIGURE_ARGS+= --disable-largefile
-.else
+.if ${PORT_OPTIONS:MLARGEFILE}
CONFIGURE_ARGS+= --enable-largefile
+.else
+CONFIGURE_ARGS+= --disable-largefile
.endif
-.if defined(WITHOUT_MYSQL)
-CONFIGURE_ARGS+= --with-mysql=no
-.else
+.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
CONFIGURE_ARGS+= --with-mysql
+.else
+CONFIGURE_ARGS+= --with-mysql=no
.endif
-.if defined(WITH_POSTGRESQL)
+.if ${PORT_OPTIONS:MPOSTGRESQL}
USE_PGSQL= yes
CONFIGURE_ARGS+= --with-pgsql
.else
@@ -49,10 +49,10 @@ post-configure:
@${REINPLACE_CMD} -e 's/^program_transform_name/#/' \
${WRKSRC}/Makefile ${WRKSRC}/sysbench/Makefile
-.if defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-install:
${RM} ${DOCSDIR}/manual.html
${RMDIR} ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>