diff options
-rw-r--r-- | benchmarks/sysbench/Makefile | 10 | ||||
-rw-r--r-- | benchmarks/sysbench/PLIST | 4 | ||||
-rw-r--r-- | benchmarks/sysbench/options.mk | 22 | ||||
-rw-r--r-- | mk/defaults/options.description | 1 |
4 files changed, 24 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 diff --git a/mk/defaults/options.description b/mk/defaults/options.description index da0ae13f32d..e78f0b7e590 100644 --- a/mk/defaults/options.description +++ b/mk/defaults/options.description @@ -62,6 +62,7 @@ djbfft-pentium Optimize for Pentium{,MMX} processors. djbfft-ppro Optimize for Pentium{Pro,II,III} processors. djbfft-sparc Optimize for UltraSPARC-{I,II} processors. djbware-errno-hack Patch to #include <errno.h> for correctness. +doc Include the documentation. domainscale drac Enable DRAC support. drupal-xmlservices Enable XML-based services. |