diff options
author | nikita <nikita@pkgsrc.org> | 2020-04-25 19:40:55 +0000 |
---|---|---|
committer | nikita <nikita@pkgsrc.org> | 2020-04-25 19:40:55 +0000 |
commit | 638580685d21d7e1b8e3e267cf9cf5cc7748a85a (patch) | |
tree | 2ea1548b25dbdf4aea3c347dc81f934fee7debee /wm/fvwm | |
parent | aacdcd4c29dc12be754edef5c687d96325302467 (diff) | |
download | pkgsrc-638580685d21d7e1b8e3e267cf9cf5cc7748a85a.tar.gz |
wm/fvwm: Add doc keyword for optionally not generating the fvwm.1 page
Diffstat (limited to 'wm/fvwm')
-rw-r--r-- | wm/fvwm/Makefile | 7 | ||||
-rw-r--r-- | wm/fvwm/PLIST | 6 | ||||
-rw-r--r-- | wm/fvwm/options.mk | 17 |
3 files changed, 18 insertions, 12 deletions
diff --git a/wm/fvwm/Makefile b/wm/fvwm/Makefile index ba591626980..3f78d78e964 100644 --- a/wm/fvwm/Makefile +++ b/wm/fvwm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.47 2020/04/25 19:22:15 nikita Exp $ +# $NetBSD: Makefile,v 1.48 2020/04/25 19:40:55 nikita Exp $ DISTNAME= fvwm-${FVWM_VER} PKGREVISION= 3 @@ -43,11 +43,6 @@ DEPENDS+= ${PYPKGPREFIX}-xdg-[0-9]*:../../devel/py-xdg CONFIGURE_ENV+= PYTHON=${PYTHONBIN} CONFIGURE_ENV+= ac_cv_path_PYTHON=${PYTHONBIN:Q} -# 2 manpages want xsltproc. -CONFIGURE_ARGS+= --enable-mandoc -BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl -BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt - .include "options.mk" BUILDLINK_DEPMETHOD.libXt?= build diff --git a/wm/fvwm/PLIST b/wm/fvwm/PLIST index 8a7edcc8545..9a8237fef05 100644 --- a/wm/fvwm/PLIST +++ b/wm/fvwm/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.5 2019/09/21 13:56:15 ng0 Exp $ +@comment $NetBSD: PLIST,v 1.6 2020/04/25 19:40:55 nikita Exp $ @pkgdir share/doc/fvwm2/commands @pkgdir share/doc/fvwm2/fvwm @pkgdir share/doc/fvwm2/images/svg_rendering @@ -72,8 +72,8 @@ man/man1/fvwm-menu-headlines.1 man/man1/fvwm-menu-xlock.1 man/man1/fvwm-perllib.1 man/man1/fvwm-root.1 -man/man1/fvwm.1 -man/man1/fvwm2.1 +${PLIST.doc}man/man1/fvwm.1 +${PLIST.doc}man/man1/fvwm2.1 man/man1/xpmroot.1 share/fvwm2/ConfigFvwmBacker share/fvwm2/ConfigFvwmButtons diff --git a/wm/fvwm/options.mk b/wm/fvwm/options.mk index d35264c1012..263180b3c55 100644 --- a/wm/fvwm/options.mk +++ b/wm/fvwm/options.mk @@ -1,13 +1,14 @@ -# $NetBSD: options.mk,v 1.6 2020/04/25 19:22:15 nikita Exp $ +# $NetBSD: options.mk,v 1.7 2020/04/25 19:40:55 nikita Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.fvwm PKG_SUPPORTED_OPTIONS= gtk xrender xcursor xft2 fribidi debug svg -PKG_SUGGESTED_OPTIONS+= svg xft2 xrender xcursor +PKG_SUPPORTED_OPTIONS+= doc +PKG_SUGGESTED_OPTIONS+= svg xft2 xrender xcursor doc PKG_OPTIONS_LEGACY_VARS+= FVWM2_USE_GTK:gtk .include "../../mk/bsd.options.mk" -PLIST_VARS+= gtk fribidi +PLIST_VARS+= gtk fribidi doc .if !empty(PKG_OPTIONS:Mgtk) . include "../../x11/gtk/buildlink3.mk" @@ -56,3 +57,13 @@ CONFIGURE_ARGS+= --disable-debug-msgs .else CONFIGURE_ARGS+= --disable-rsvg .endif + +.if !empty(PKG_OPTIONS:Mdoc) +# 2 manpages want xsltproc. +CONFIGURE_ARGS+= --enable-mandoc +BUILD_DEPENDS+= docbook-xsl-[0-9]*:../../textproc/docbook-xsl +BUILD_DEPENDS+= libxslt-[0-9]*:../../textproc/libxslt +PLIST.doc= yes +.else +CONFIGURE_ARGS+= --disable-mandoc +.endif |