aboutsummaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-05-03 15:24:02 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-05-03 15:24:02 +0000
commitdb5f6428373ed0c4b214d65b15c3e93396448594 (patch)
treed703e3d78aa1dade7e29d44ca772eb2791b8cf1f /benchmarks
parent856212a41b290370c84bf1c5544eb0e72c3964bc (diff)
downloadports-db5f6428373ed0c4b214d65b15c3e93396448594.tar.gz
ports-db5f6428373ed0c4b214d65b15c3e93396448594.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>
Notes
Notes: svn path=/head/; revision=352920
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/sysbench/Makefile43
-rw-r--r--benchmarks/sysbench/pkg-plist3
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%%