diff options
author | rmind <rmind@pkgsrc.org> | 2007-03-06 21:53:55 +0000 |
---|---|---|
committer | rmind <rmind@pkgsrc.org> | 2007-03-06 21:53:55 +0000 |
commit | 04fec34dd8c64ceeb9c065c8b471886f3dfa76b5 (patch) | |
tree | 4f05e9c53965d54a4a5b02411ffcf378b5da91e6 /benchmarks/sysbench | |
parent | cfce1e9fa530b3a7318263eca7a866ff287c89ff (diff) | |
download | pkgsrc-04fec34dd8c64ceeb9c065c8b471886f3dfa76b5.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/sysbench')
-rw-r--r-- | benchmarks/sysbench/Makefile | 10 | ||||
-rw-r--r-- | benchmarks/sysbench/PLIST | 4 | ||||
-rw-r--r-- | benchmarks/sysbench/options.mk | 22 |
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 |