diff options
author | pawel <pawel@FreeBSD.org> | 2014-05-03 23:24:02 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-05-03 23:24:02 +0800 |
commit | c115823cec8e7209db94e561547758ae76203de0 (patch) | |
tree | d703e3d78aa1dade7e29d44ca772eb2791b8cf1f /benchmarks | |
parent | f6881f042052ab36da3c86ac09da3ee33e4eca44 (diff) | |
download | freebsd-ports-gnome-c115823cec8e7209db94e561547758ae76203de0.tar.gz freebsd-ports-gnome-c115823cec8e7209db94e561547758ae76203de0.tar.zst freebsd-ports-gnome-c115823cec8e7209db94e561547758ae76203de0.zip |
- Fix staging when DOCS=off [1]
- Switch to PLIST_FILES
- Use options helpers
PR: ports/188390 [1] (patch not used)
Submitted by: Alexey Markov <redrat@mail.ru>
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/sysbench/Makefile | 43 | ||||
-rw-r--r-- | benchmarks/sysbench/pkg-plist | 3 |
2 files changed, 14 insertions, 32 deletions
diff --git a/benchmarks/sysbench/Makefile b/benchmarks/sysbench/Makefile index 9c42bce76976..1ac34828cc7d 100644 --- a/benchmarks/sysbench/Makefile +++ b/benchmarks/sysbench/Makefile @@ -15,40 +15,25 @@ LICENSE_FILE= ${WRKSRC}/COPYING USE_AUTOTOOLS= libtool +PLIST_FILES= bin/sysbench +PORTDOCS= manual.html + OPTIONS_DEFINE= LARGEFILE MYSQL PGSQL DOCS OPTIONS_DEFAULT= LARGEFILE MYSQL -LARGEFILE_DESC= Enable Largefile support - -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MLARGEFILE} -CONFIGURE_ARGS+= --enable-largefile -.else -CONFIGURE_ARGS+= --disable-largefile -.endif - -.if ${PORT_OPTIONS:MMYSQL} -USE_MYSQL= yes -CONFIGURE_ARGS+= --with-mysql -.else -CONFIGURE_ARGS+= --with-mysql=no -.endif - -.if ${PORT_OPTIONS:MPOSTGRESQL} -USE_PGSQL= yes -CONFIGURE_ARGS+= --with-pgsql -.else -CONFIGURE_ARGS+= --with-pgsql=no -.endif + +LARGEFILE_DESC= Largefile support +LARGEFILE_CONFIGURE_ENABLE= largefile + +MYSQL_CONFIGURE_ON= --with-mysql +MYSQL_CONFIGURE_OFF= --with-mysql=no +MYSQL_USE= MYSQL=yes + +PGSQL_CONFIGURE_ON= --with-pgsql +PGSQL_CONFIGURE_OFF= --with-pgsql=no +PGSQL_USE= PGSQL=yes post-configure: @${REINPLACE_CMD} -e 's/^program_transform_name/#/' \ ${WRKSRC}/Makefile ${WRKSRC}/sysbench/Makefile -.if empty(PORT_OPTIONS:MDOCS) -post-install: - ${RM} ${DOCSDIR}/manual.html - ${RMDIR} ${DOCSDIR} -.endif - .include <bsd.port.mk> diff --git a/benchmarks/sysbench/pkg-plist b/benchmarks/sysbench/pkg-plist deleted file mode 100644 index 51447db0c25a..000000000000 --- a/benchmarks/sysbench/pkg-plist +++ /dev/null @@ -1,3 +0,0 @@ -bin/sysbench -%%PORTDOCS%%%%DOCSDIR%%/manual.html -%%PORTDOCS%%@dirrm %%DOCSDIR%% |