summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorrmind <rmind>2007-03-06 21:53:55 +0000
committerrmind <rmind>2007-03-06 21:53:55 +0000
commit7eb0d3ef67ac04b730ba4bde0ddd8f6c56a1f46a (patch)
tree4f05e9c53965d54a4a5b02411ffcf378b5da91e6 /benchmarks
parentcad773d96209bd0045859e9a9380ae0226ef6b3f (diff)
downloadpkgsrc-7eb0d3ef67ac04b730ba4bde0ddd8f6c56a1f46a.tar.gz
- Add a general description of "doc" option.
- sysbench: Add a "doc" option, now it could be installed without documentation. Thanks xtraeme@ for comments and review.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/sysbench/Makefile10
-rw-r--r--benchmarks/sysbench/PLIST4
-rw-r--r--benchmarks/sysbench/options.mk22
3 files changed, 23 insertions, 13 deletions
diff --git a/benchmarks/sysbench/Makefile b/benchmarks/sysbench/Makefile
index 8c397fd2a9a..ca355b34196 100644
--- a/benchmarks/sysbench/Makefile
+++ b/benchmarks/sysbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $
+# $NetBSD: Makefile,v 1.2 2007/03/06 21:53:56 rmind Exp $
DISTNAME= sysbench-0.4.8
CATEGORIES= benchmarks
@@ -8,9 +8,6 @@ MAINTAINER= fuyuki@hadaly.org
HOMEPAGE= http://sysbench.sourceforge.net/
COMMENT= Modular, cross-platform and multi-threaded benchmark tool
-BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt
-BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
-
GNU_CONFIGURE= yes
PTHREAD_AUTO_VARS= yes
MAKE_FLAGS+= bin_SCRIPTS= # don't install problematic scripts
@@ -21,11 +18,6 @@ MAKE_FLAGS+= bin_SCRIPTS= # don't install problematic scripts
CFLAGS+= -D_NETBSD_SOURCE # hack for ulong along with patch-aa
.endif
-post-build:
- ${PREFIX}/bin/xsltproc -o ${WRKSRC}/doc/manual.html \
- ${PREFIX}/share/xsl/docbook/xhtml/docbook.xsl \
- ${WRKSRC}/doc/manual.xml
-
.include "options.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/benchmarks/sysbench/PLIST b/benchmarks/sysbench/PLIST
index 4aa11e51841..ee226512fca 100644
--- a/benchmarks/sysbench/PLIST
+++ b/benchmarks/sysbench/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $
+@comment $NetBSD: PLIST,v 1.2 2007/03/06 21:53:56 rmind Exp $
bin/sysbench
-share/doc/sysbench/manual.html
+${DOC}share/doc/sysbench/manual.html
@dirrm share/doc/sysbench
diff --git a/benchmarks/sysbench/options.mk b/benchmarks/sysbench/options.mk
index 0dfa63c1aa8..d86fbc869b9 100644
--- a/benchmarks/sysbench/options.mk
+++ b/benchmarks/sysbench/options.mk
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1.1.1 2007/03/05 15:55:25 rmind Exp $
+# $NetBSD: options.mk,v 1.2 2007/03/06 21:53:56 rmind Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.sysbench
-PKG_SUPPORTED_OPTIONS+= mysql pgsql
+PKG_SUPPORTED_OPTIONS+= mysql pgsql doc
.include "../../mk/bsd.options.mk"
@@ -18,3 +18,21 @@ CONFIGURE_ARGS+= --with-pgsql=${PGSQL_PREFIX:Q}
.else
CONFIGURE_ARGS+= --without-pgsql
.endif
+
+.if !empty(PKG_OPTIONS:Mdoc)
+PLIST_SUBST+= DOC=
+. include "../../textproc/libxslt/buildlink3.mk"
+BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl
+.else
+PLIST_SUBST+= DOC="@comment "
+.endif
+
+do-install:
+.if !empty(PKG_OPTIONS:Mdoc)
+ ${PREFIX}/bin/xsltproc -o ${WRKSRC}/doc/manual.html \
+ ${PREFIX}/share/xsl/docbook/xhtml/docbook.xsl \
+ ${WRKSRC}/doc/manual.xml
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sysbench
+ ${INSTALL_DATA} ${WRKSRC}/doc/manual.xml \
+ ${PREFIX}/share/doc/sysbench
+.endif