diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-01 13:18:21 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-01 13:18:21 +0000 |
commit | bf82f7adb78bef13e8050caa7d4b6ffa98c72543 (patch) | |
tree | fb65e9fdad39ec89dc7d665b97072497abd6d72c /benchmarks/sysbench/Makefile | |
parent | Add description for GNUPLOT (diff) |
Convert to new options framework
Notes
Notes:
svn path=/head/; revision=297949
Diffstat (limited to '')
-rw-r--r-- | benchmarks/sysbench/Makefile | 26 |
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> |