FreeBSD Bugzilla – Attachment 196741 Details for
Bug 230864
Make %%PORTDOCS%%/%%PORTEXAMPLES%% less magical and require the use of the DOCS/EXAMPLES option for them to work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
base commit: r478528
port-docs-example-options-D13651.diff (text/plain), 354.06 KB, created by
Mathieu Arnold
on 2018-08-31 08:24:39 UTC
(
hide
)
Description:
base commit: r478528
Filename:
MIME Type:
Creator:
Mathieu Arnold
Created:
2018-08-31 08:24:39 UTC
Size:
354.06 KB
patch
obsolete
>base commit: r478528 >diff --git Mk/bsd.options.mk Mk/bsd.options.mk >index a6de56f09e91..69852cf29303 100644 >--- Mk/bsd.options.mk >+++ Mk/bsd.options.mk >@@ -410,18 +410,19 @@ PORT_OPTIONS+= ${OPTIONS_SLAVE} > # Sort options and eliminate duplicates > PORT_OPTIONS:= ${PORT_OPTIONS:O:u} > >-## Now some compatibility >-.if empty(PORT_OPTIONS:MDOCS) >-PLIST_SUB+= PORTDOCS="@comment " >-.else >-PLIST_SUB+= PORTDOCS="" >-.endif >- >-.if empty(PORT_OPTIONS:MEXAMPLES) >-PLIST_SUB+= PORTEXAMPLES="@comment " >-.else >-PLIST_SUB+= PORTEXAMPLES="" >-.endif >+_REALLY_ALL_POSSIBLE_OPTIONS:= ${COMPLETE_OPTIONS_LIST} ${_ALL_EXCLUDE} >+_REALLY_ALL_POSSIBLE_OPTIONS:= ${_REALLY_ALL_POSSIBLE_OPTIONS:O:u} >+ >+# Handle PORTDOCS and PORTEXAMPLES >+.for _type in DOCS EXAMPLES >+. if !empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) >+. if empty(PORT_OPTIONS:M${_type}) >+PLIST_SUB+= PORT${_type}="@comment " >+. else >+PLIST_SUB+= PORT${_type}="" >+. endif >+. endif >+.endfor > > .if defined(NO_OPTIONS_SORT) > ALL_OPTIONS= ${OPTIONS_DEFINE} >@@ -431,7 +432,7 @@ ALL_OPTIONS= ${OPTIONS_DEFINE} > _OPTIONS_${target}?= > .endfor > >-.for opt in ${COMPLETE_OPTIONS_LIST} ${_ALL_EXCLUDE:O:u} >+.for opt in ${_REALLY_ALL_POSSIBLE_OPTIONS} > # PLIST_SUB > PLIST_SUB?= > SUB_LIST?= >diff --git Mk/bsd.port.mk Mk/bsd.port.mk >index b327e320e234..54b9efbea35c 100644 >--- Mk/bsd.port.mk >+++ Mk/bsd.port.mk >@@ -4538,6 +4538,7 @@ ${TMPPLIST}: > @cd ${.CURDIR} && ${MAKE} generate-plist > > .for _type in EXAMPLES DOCS >+.if !empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) > .if !target(add-plist-${_type:tl}) > .if defined(PORT${_type}) && !empty(PORT_OPTIONS:M${_type}) > add-plist-${_type:tl}: >@@ -4551,6 +4552,7 @@ add-plist-${_type:tl}: > ${SED} -ne 's,^${STAGEDIR},,p' >> ${TMPPLIST} > .endif > .endif >+.endif > .endfor > > .if !target(add-plist-data) >diff --git Mk/bsd.sanity.mk Mk/bsd.sanity.mk >index 8707b0bb0d74..2c61e6a57593 100644 >--- Mk/bsd.sanity.mk >+++ Mk/bsd.sanity.mk >@@ -156,6 +156,12 @@ DEV_ERROR+= "USE_TCL and USE_TK are no longer supported, please use USES=tcl or > DEV_ERROR+= "USE_FPC=yes is no longer supported, please use USES=fpc" > .endif > >+.for _type in EXAMPLES DOCS >+. if defined(PORT${_type}) && empty(_REALLY_ALL_POSSIBLE_OPTIONS:M${_type}) >+DEV_ERROR+= "PORT${_type} does not do anything unless the ${_type} option is present." >+. endif >+.endfor >+ > SANITY_UNSUPPORTED= USE_OPENAL USE_FAM USE_MAKESELF USE_ZIP USE_LHA USE_CMAKE \ > USE_READLINE USE_ICONV PERL_CONFIGURE PERL_MODBUILD \ > USE_PERL5_BUILD USE_PERL5_RUN USE_DISPLAY USE_FUSE \ >diff --git archivers/brotli/Makefile archivers/brotli/Makefile >index d0f8656c95e3..ae0e7cc929d1 100644 >--- archivers/brotli/Makefile >+++ archivers/brotli/Makefile >@@ -24,6 +24,8 @@ GNU_CONFIGURE= yes > INSTALL_TARGET= install-strip > PLIST_SUB= SHLIBVER=${PORTVERSION} > >+OPTIONS_DEFINE= DOCS >+ > pre-configure: > (cd ${WRKSRC} && ./bootstrap) > >diff --git archivers/erlang-snappy/Makefile archivers/erlang-snappy/Makefile >index 9f0d5973fc04..f45c743d4624 100644 >--- archivers/erlang-snappy/Makefile >+++ archivers/erlang-snappy/Makefile >@@ -18,4 +18,6 @@ GH_ACCOUNT= skunkwerks > GH_PROJECT= snappy-erlang-nif > GH_TAGNAME= 0951a1b > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git archivers/lzop/Makefile archivers/lzop/Makefile >index 90e669b22e81..37b975e3cc81 100644 >--- archivers/lzop/Makefile >+++ archivers/lzop/Makefile >@@ -18,4 +18,6 @@ GNU_CONFIGURE= yes > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git archivers/zip-ada/Makefile archivers/zip-ada/Makefile >index dfa99967ca1a..b50d97c98781 100644 >--- archivers/zip-ada/Makefile >+++ archivers/zip-ada/Makefile >@@ -45,6 +45,8 @@ DEMOS= demo_csv_into_zip \ > test_llhc \ > test_lz77 > >+OPTIONS_DEFINE= EXAMPLES >+ > do-build: > (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -P zipada.gpr) > >diff --git astro/geographiclib/Makefile astro/geographiclib/Makefile >index c07fc6077c4a..75048a5b7b32 100644 >--- astro/geographiclib/Makefile >+++ astro/geographiclib/Makefile >@@ -26,7 +26,7 @@ CMAKE_ARGS= -DGEOGRAPHICLIB_DATA:STRING=${DATADIR:Q}\ > -DINSTALL_PYTHON_DIR:STRING=${PYTHON_SITELIBDIR:Q}\ > -DINSTALL_DOC_DIR:STRING=${DOCSDIR:Q} > >-OPTIONS_DEFINE= DOXYGEN PERL >+OPTIONS_DEFINE= DOXYGEN PERL DOCS > OPTIONS_DEFAULT= DOXYGEN PERL\ > GEOID_EGM96_5 GRAVITY_EGM96 GRAVITY_WGS84\ > MAGNETIC_WMM2015 MAGNETIC_IGRF12 >diff --git astro/opencpn/Makefile astro/opencpn/Makefile >index c2917704458e..6dcfe0cd165d 100644 >--- astro/opencpn/Makefile >+++ astro/opencpn/Makefile >@@ -34,6 +34,8 @@ LDFLAGS+= -Wl,--as-needed # ICE, SM, Xext > > BROKEN_aarch64= Fails to compile: use of undeclared identifier rand > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \ > ${WRKSRC}/src/mygdal/cpl_csv.cpp \ >diff --git audio/chromaprint/Makefile audio/chromaprint/Makefile >index e67d1b18ff0b..63477b5f4ca3 100644 >--- audio/chromaprint/Makefile >+++ audio/chromaprint/Makefile >@@ -23,7 +23,7 @@ CMAKE_ARGS= -DBUILD_TOOLS:BOOL=true \ > > WRKSRC= ${WRKDIR}/${PORTNAME}-v${PORTVERSION} > >-OPTIONS_DEFINE= DOXYGEN TEST >+OPTIONS_DEFINE= DOCS DOXYGEN TEST > > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ > dot:graphics/graphviz >diff --git audio/libnjb/Makefile audio/libnjb/Makefile >index 3bb1e6fcf46a..c0f686f1ffe1 100644 >--- audio/libnjb/Makefile >+++ audio/libnjb/Makefile >@@ -23,8 +23,9 @@ LDFLAGS+= -L${LOCALBASE}/lib > > PORTDOCS= * > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS > >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_CONFIGURE_ENV_OFF= ac_cv_prog_HAVE_DOXYGEN=no > >diff --git audio/linux-c6-alsa-lib/Makefile audio/linux-c6-alsa-lib/Makefile >index ce0bfaa3408f..adcb016438e9 100644 >--- audio/linux-c6-alsa-lib/Makefile >+++ audio/linux-c6-alsa-lib/Makefile >@@ -19,6 +19,8 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/etc/* ${WRKSRC}/usr/lib/alsa-lib/smixer/*.la \ > ${WRKSRC}/usr/lib64/alsa-lib/smixer/*.la >diff --git audio/linux-c6-alsa-plugins-oss/Makefile audio/linux-c6-alsa-plugins-oss/Makefile >index b8e50e5ce73c..1ceddb3494fc 100644 >--- audio/linux-c6-alsa-plugins-oss/Makefile >+++ audio/linux-c6-alsa-plugins-oss/Makefile >@@ -22,4 +22,6 @@ USE_LDCONFIG= yes > USE_LINUX= alsalib > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-alsa-plugins-pulseaudio/Makefile audio/linux-c6-alsa-plugins-pulseaudio/Makefile >index 01ab5084233d..4fa370f2984d 100644 >--- audio/linux-c6-alsa-plugins-pulseaudio/Makefile >+++ audio/linux-c6-alsa-plugins-pulseaudio/Makefile >@@ -22,4 +22,6 @@ USE_LDCONFIG= yes > USE_LINUX= alsalib pulseaudio-libs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-flac/Makefile audio/linux-c6-flac/Makefile >index 7a40111f8fe5..4b67af88c942 100644 >--- audio/linux-c6-flac/Makefile >+++ audio/linux-c6-flac/Makefile >@@ -16,4 +16,6 @@ USE_LDCONFIG= yes > USE_LINUX= libogg > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-libaudiofile/Makefile audio/linux-c6-libaudiofile/Makefile >index 3a9389d9e68a..9957afef2d7b 100644 >--- audio/linux-c6-libaudiofile/Makefile >+++ audio/linux-c6-libaudiofile/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-libogg/Makefile audio/linux-c6-libogg/Makefile >index ebe83d753a4f..cecb54c3bbb7 100644 >--- audio/linux-c6-libogg/Makefile >+++ audio/linux-c6-libogg/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-libsndfile/Makefile audio/linux-c6-libsndfile/Makefile >index e138fdd15cae..9de8f8c01e36 100644 >--- audio/linux-c6-libsndfile/Makefile >+++ audio/linux-c6-libsndfile/Makefile >@@ -16,4 +16,6 @@ USE_LDCONFIG= yes > USE_LINUX= flac libogg libvorbis > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-libvorbis/Makefile audio/linux-c6-libvorbis/Makefile >index c2e8bc574672..d0e9ab09d3ef 100644 >--- audio/linux-c6-libvorbis/Makefile >+++ audio/linux-c6-libvorbis/Makefile >@@ -16,4 +16,6 @@ USE_LDCONFIG= yes > USE_LINUX= libogg > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-mikmod/Makefile audio/linux-c6-mikmod/Makefile >index 3ec11cf956c4..2527d3eaec6a 100644 >--- audio/linux-c6-mikmod/Makefile >+++ audio/linux-c6-mikmod/Makefile >@@ -16,4 +16,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-nas-libs/Makefile audio/linux-c6-nas-libs/Makefile >index f12dc6f69b4f..f0e5ed549b23 100644 >--- audio/linux-c6-nas-libs/Makefile >+++ audio/linux-c6-nas-libs/Makefile >@@ -17,6 +17,8 @@ USE_LDCONFIG= yes > USE_LINUX= xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/bin ${WRKSRC}/usr/share/man > >diff --git audio/linux-c6-openal-soft/Makefile audio/linux-c6-openal-soft/Makefile >index a5601a8351b3..44cc9bcb52cb 100644 >--- audio/linux-c6-openal-soft/Makefile >+++ audio/linux-c6-openal-soft/Makefile >@@ -17,4 +17,6 @@ USE_LDCONFIG= yes > USE_LINUX= alsalib > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c6-sdl_mixer/Makefile audio/linux-c6-sdl_mixer/Makefile >index 43e53b3bea19..83ae1aace078 100644 >--- audio/linux-c6-sdl_mixer/Makefile >+++ audio/linux-c6-sdl_mixer/Makefile >@@ -22,4 +22,6 @@ USE_LDCONFIG= yes > USE_LINUX= sdl12 > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-alsa-lib/Makefile audio/linux-c7-alsa-lib/Makefile >index 3137dd3779db..ceb2bb73fecb 100644 >--- audio/linux-c7-alsa-lib/Makefile >+++ audio/linux-c7-alsa-lib/Makefile >@@ -19,6 +19,8 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/etc/* ${WRKSRC}/lib/modprobe.d \ > ${WRKSRC}/usr/share/doc/alsa-lib >diff --git audio/linux-c7-alsa-plugins-oss/Makefile audio/linux-c7-alsa-plugins-oss/Makefile >index 8ecf35e1d896..1f8a99e38643 100644 >--- audio/linux-c7-alsa-plugins-oss/Makefile >+++ audio/linux-c7-alsa-plugins-oss/Makefile >@@ -23,4 +23,6 @@ USE_LDCONFIG= yes > USE_LINUX= alsalib > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-alsa-plugins-pulseaudio/Makefile audio/linux-c7-alsa-plugins-pulseaudio/Makefile >index a331ec48e4a6..882b49a516a8 100644 >--- audio/linux-c7-alsa-plugins-pulseaudio/Makefile >+++ audio/linux-c7-alsa-plugins-pulseaudio/Makefile >@@ -23,4 +23,6 @@ USE_LDCONFIG= yes > USE_LINUX= alsalib pulseaudio-libs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-audiofile/Makefile audio/linux-c7-audiofile/Makefile >index beff83b0c0db..aed9a2de99da 100644 >--- audio/linux-c7-audiofile/Makefile >+++ audio/linux-c7-audiofile/Makefile >@@ -17,4 +17,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-flac/Makefile audio/linux-c7-flac/Makefile >index b7203af200aa..8fdf81cc7b87 100644 >--- audio/linux-c7-flac/Makefile >+++ audio/linux-c7-flac/Makefile >@@ -22,4 +22,6 @@ USE_LDCONFIG= yes > USE_LINUX= libogg > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-libogg/Makefile audio/linux-c7-libogg/Makefile >index 886ebfc745e9..b091aeab1046 100644 >--- audio/linux-c7-libogg/Makefile >+++ audio/linux-c7-libogg/Makefile >@@ -17,4 +17,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-libsndfile/Makefile audio/linux-c7-libsndfile/Makefile >index a499b1719950..06811428f407 100644 >--- audio/linux-c7-libsndfile/Makefile >+++ audio/linux-c7-libsndfile/Makefile >@@ -18,4 +18,6 @@ USE_LDCONFIG= yes > USE_LINUX= flac libogg libvorbis > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-libvorbis/Makefile audio/linux-c7-libvorbis/Makefile >index 504f5ca8a896..c56de88ce632 100644 >--- audio/linux-c7-libvorbis/Makefile >+++ audio/linux-c7-libvorbis/Makefile >@@ -18,4 +18,6 @@ USE_LDCONFIG= yes > USE_LINUX= libogg > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-openal-soft/Makefile audio/linux-c7-openal-soft/Makefile >index c4a16c069686..c5591e00c8ee 100644 >--- audio/linux-c7-openal-soft/Makefile >+++ audio/linux-c7-openal-soft/Makefile >@@ -20,4 +20,6 @@ USE_LDCONFIG= yes > USE_LINUX= alsalib > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/linux-c7-sdl_mixer/Makefile audio/linux-c7-sdl_mixer/Makefile >index bfda95569d52..cc8b02eb5a1b 100644 >--- audio/linux-c7-sdl_mixer/Makefile >+++ audio/linux-c7-sdl_mixer/Makefile >@@ -23,4 +23,6 @@ USE_LDCONFIG= yes > USE_LINUX= sdl12 > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/lv2/Makefile audio/lv2/Makefile >index b7c265bb23e9..87510afcb437 100644 >--- audio/lv2/Makefile >+++ audio/lv2/Makefile >@@ -24,13 +24,14 @@ CONFLICTS_INSTALL= lv2core > USES= python shebangfix tar:bzip2 waf > SHEBANG_FILES= lv2specgen/lv2specgen.py > >-OPTIONS_DEFINE= DOXYGEN EXAMPLES >+OPTIONS_DEFINE= DOCS DOXYGEN EXAMPLES > OPTIONS_SUB= yes > > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ > ${PYTHON_PKGNAMEPREFIX}rdflib>0:textproc/py-rdflib@${PY_FLAVOR} > DOXYGEN_CONFIGURE_ON= --docs > DOXYGEN_PORTDOCS= * >+DOXYGEN_IMPLIES= DOCS > > EXAMPLES_CONFIGURE_OFF= --no-plugins > EXAMPLES_LIB_DEPENDS= libsndfile.so:audio/libsndfile >diff --git audio/py-soundcloud/Makefile audio/py-soundcloud/Makefile >index 187419bdcb91..4ee55dcb16ec 100644 >--- audio/py-soundcloud/Makefile >+++ audio/py-soundcloud/Makefile >@@ -21,6 +21,8 @@ USE_PYTHON= autoplist distutils > PORTDOCS= README.rst > DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR} >diff --git audio/rhythmbox/Makefile audio/rhythmbox/Makefile >index c054a435b881..5b58a08f7101 100644 >--- audio/rhythmbox/Makefile >+++ audio/rhythmbox/Makefile >@@ -50,7 +50,7 @@ INSTALL_TARGET= install-strip > GLIB_SCHEMAS= org.gnome.rhythmbox.gschema.xml > > OPTIONS_SUB= yes >-OPTIONS_DEFINE= BRASERO DAAP GRILO IPOD LIRC MTP NLS NOTIFY PYTHON >+OPTIONS_DEFINE= BRASERO DAAP DOCS GRILO IPOD LIRC MTP NLS NOTIFY PYTHON > OPTIONS_DEFAULT=BRASERO NOTIFY PYTHON > BRASERO_DESC= Brasero disc burning support > BRASERO_CONFIGURE_WITH= brasero >diff --git audio/speex/Makefile audio/speex/Makefile >index 91cb5691466d..f8e55610f1ea 100644 >--- audio/speex/Makefile >+++ audio/speex/Makefile >@@ -21,4 +21,6 @@ GNU_CONFIGURE= yes > INSTALL_TARGET= install-strip > USE_LDCONFIG= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git audio/speexdsp/Makefile audio/speexdsp/Makefile >index d564b5ceebbf..22eb6d0a23d2 100644 >--- audio/speexdsp/Makefile >+++ audio/speexdsp/Makefile >@@ -17,6 +17,8 @@ INSTALL_TARGET= install-strip > USES= libtool pathfix > USE_LDCONFIG= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > .if ${ARCH} == "aarch64" >diff --git audio/yoshimi/Makefile audio/yoshimi/Makefile >index 36f85b9b5929..481ceca0e054 100644 >--- audio/yoshimi/Makefile >+++ audio/yoshimi/Makefile >@@ -34,4 +34,6 @@ USE_XORG= x11 ice sm xext > CMAKE_SOURCE_PATH= ${WRKSRC}/src > INSTALLS_ICONS= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git benchmarks/iperf3/Makefile benchmarks/iperf3/Makefile >index e5c32854ad7d..0e12e6dc9e45 100644 >--- benchmarks/iperf3/Makefile >+++ benchmarks/iperf3/Makefile >@@ -22,6 +22,8 @@ PORTDOCS= README.md RELEASE_NOTES > # Set ${DOCSDIR} to avoid conflict with benchmarks/iperf ${DOCSDIR} > DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX} > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > # Don't build stuff that we're not going to install. Among other > # things this means we're not going to try to build profiled objects >diff --git benchmarks/pathchirp/Makefile benchmarks/pathchirp/Makefile >index a578c281614e..fde0945a0396 100644 >--- benchmarks/pathchirp/Makefile >+++ benchmarks/pathchirp/Makefile >@@ -17,6 +17,8 @@ MAKE_JOBS_UNSAFE= yes > PLIST_FILES= bin/pathchirp_rcv bin/pathchirp_snd bin/pathchirp_run > PORTDOCS= README > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e '/CFLAGS.*O4/d' ${WRKSRC}/configure > >diff --git benchmarks/ramspeed/Makefile benchmarks/ramspeed/Makefile >index 463ebf39e54d..31101ad6a68c 100644 >--- benchmarks/ramspeed/Makefile >+++ benchmarks/ramspeed/Makefile >@@ -18,6 +18,8 @@ LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell > PLIST_FILES= bin/ramspeed > PORTDOCS= HISTORY README > >+OPTIONS_DEFINE= DOCS >+ > do-build: > cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} build.sh > >diff --git benchmarks/thrulay/Makefile benchmarks/thrulay/Makefile >index 45cd5e23f95a..7c7840ac5069 100644 >--- benchmarks/thrulay/Makefile >+++ benchmarks/thrulay/Makefile >@@ -20,6 +20,8 @@ MAKE_JOBS_UNSAFE= yes > > PORTDOCS= ChangeLog README thrulay-protocol.txt thrulay-index.html > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e '922s,datarootdir,prefix,g' ${WRKSRC}/configure > >diff --git biology/bowtie/Makefile biology/bowtie/Makefile >index 1dfb08ce0054..8d486190a122 100644 >--- biology/bowtie/Makefile >+++ biology/bowtie/Makefile >@@ -24,6 +24,8 @@ SHEBANG_FILES= scripts/*.pl bowtie bowtie-build \ > USE_GITHUB= yes > GH_ACCOUNT= BenLangmead > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DATADIR}/scripts > ${INSTALL_SCRIPT} \ >diff --git biology/phrap/Makefile biology/phrap/Makefile >index de2be50a3c56..1979489f2f9e 100644 >--- biology/phrap/Makefile >+++ biology/phrap/Makefile >@@ -26,6 +26,8 @@ SCRIPTS= phrapview > PORTDATA= BLOSUM50 BLOSUM62 PAM250 mat50 mat70 mb_matrix penalty2 vector.seq > PORTDOCS= general.doc phrap.doc swat.doc > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .for f in ${DISTFILES} >diff --git biology/phred/Makefile biology/phred/Makefile >index 06f673b57574..a272cca4f3be 100644 >--- biology/phred/Makefile >+++ biology/phred/Makefile >@@ -29,6 +29,8 @@ DATAFILES= phredpar.dat > > PORTDOCS= NEWS PHRED.DOC DAEV.DOC > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .for f in ${DISTFILES} >diff --git cad/astk-serveur/Makefile cad/astk-serveur/Makefile >index 5f7a8f80ace8..1081eb6bbc89 100644 >--- cad/astk-serveur/Makefile >+++ cad/astk-serveur/Makefile >@@ -62,7 +62,7 @@ WRKCONF= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/configuration > .if !defined(CLIENT_SEUL) > WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/ASTK_SERV > PATCHDIR= ${MASTERDIR}/files >-PLIST_SUB= ASTKDIR=${LINSTDIR}/ASTK_SERV SERV="" CLIENT="@comment "\ >+PLIST_SUB+= ASTKDIR=${LINSTDIR}/ASTK_SERV SERV="" CLIENT="@comment "\ > vaster=${vaster} > PATCH2RM= bin/as_run bin/parallel_cp etc/asrun etc/profile.sh \ > asrun/config.py asrun/installation.py asrun/system.py \ >@@ -90,7 +90,7 @@ TKPNG_VER= 0.9 > TKPNG= tkpng${TKPNG_VER} > WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/ASTK_CLIENT > PATCHDIR= ${MASTERDIR}/files.client >-PLIST_SUB= ASTKDIR=${LINSTDIR}/ASTK_CLIENT SERV="@comment " CLIENT="" vaster="" \ >+PLIST_SUB+= ASTKDIR=${LINSTDIR}/ASTK_CLIENT SERV="@comment " CLIENT="" vaster="" \ > BWidget_DIR=${LINSTDIR}/ASTK_CLIENT/lib/BWidget-${BWidget_VER} > PATCH2RM= bin/astk bin/bsf etc/astkrc/outils lib/init.tcl lib/tkselecteur.tcl > .endif >diff --git cad/calculix-ccx/Makefile cad/calculix-ccx/Makefile >index fd94bfd91345..ce918d97726c 100644 >--- cad/calculix-ccx/Makefile >+++ cad/calculix-ccx/Makefile >@@ -34,6 +34,7 @@ ALL_TARGET= #Empty > > CCX_VER= ccx_${PORTVERSION} > WRKSRC= ${WRKDIR}/CalculiX/${CCX_VER}/src >+DOCSDIR= ${PREFIX}/share/doc/CalculiX > > OPTIONS_DEFINE= DOCS EXAMPLES > >@@ -42,7 +43,6 @@ OPTIONS_DEFINE= DOCS EXAMPLES > .if ${PORT_OPTIONS:MDOCS} > DISTFILES+= ${DIST_HTM} ${DIST_PS} > EXTRACT_ONLY+= ${DIST_HTM} ${DIST_PS} >-DOCSDIR= ${PREFIX}/share/doc/CalculiX > .endif > > .if $(PORT_OPTIONS:MEXAMPLES) >@@ -68,18 +68,18 @@ pre-build: > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/${CCX_VER} \ > ${STAGEDIR}${PREFIX}/bin/ccx >-.if ${PORT_OPTIONS:MDOCS} >+ >+do-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > @(cd ${WRKDIR}/CalculiX/${CCX_VER}/doc/ccx && ${COPYTREE_SHARE} . \ > ${STAGEDIR}${DOCSDIR}/ccx) > ${INSTALL_DATA} ${WRKDIR}/CalculiX/${CCX_VER}/doc/${CCX_VER}.ps \ > ${STAGEDIR}${DOCSDIR} > @${GZIP_CMD} ${STAGEDIR}${DOCSDIR}/${CCX_VER}.ps >-.endif >-.if ${PORT_OPTIONS:MEXAMPLES} >+ >+do-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > @(cd ${WRKDIR}/CalculiX/${CCX_VER}/test && ${COPYTREE_SHARE} . \ > ${STAGEDIR}${EXAMPLESDIR}) >-.endif > > .include <bsd.port.mk> >diff --git cad/gmsh/Makefile cad/gmsh/Makefile >index 90c94d7b0966..02f2c672f300 100644 >--- cad/gmsh/Makefile >+++ cad/gmsh/Makefile >@@ -37,7 +37,7 @@ MAKE_JOBS_UNSAFE= yes > > CMAKE_ARGS= -DCMAKE_SKIP_RPATH:BOOL=YES > >-OPTIONS_DEFINE= CGNS MED OCC SHARED STATIC >+OPTIONS_DEFINE= CGNS DOCS MED OCC SHARED STATIC > OPTIONS_DEFAULT= MED > > CGNS_DESC= Enable experimental CGNS mesh support >diff --git cad/gtkwave/Makefile cad/gtkwave/Makefile >index a566c1036546..8e03642b6c68 100644 >--- cad/gtkwave/Makefile >+++ cad/gtkwave/Makefile >@@ -21,7 +21,7 @@ CONFIGURE_ARGS= --disable-mime-update > USE_GNOME= cairo gtk20 > INSTALLS_ICONS= yes > >-OPTIONS_DEFINE= TCL GCONF EXAMPLES >+OPTIONS_DEFINE= TCL GCONF DOCS EXAMPLES > TCL_DESC= Enable support for TCL/TK > TCL_USES= tcl tk > TCL_CONFIGURE_ON= --with-tcl=${TCL_LIBDIR} \ >diff --git cad/kicad-devel/Makefile cad/kicad-devel/Makefile >index 94e830788f99..5e7c94824884 100644 >--- cad/kicad-devel/Makefile >+++ cad/kicad-devel/Makefile >@@ -36,7 +36,7 @@ USE_XORG+= ice pixman x11 xext > > BROKEN_aarch64= Fails to compile: use of undeclared identifier builtin_ia32_emms > >-#OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS > > PLIST_SUB= OPSYS=${OPSYS} \ > DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||} >diff --git cad/opencascade/Makefile cad/opencascade/Makefile >index af4cf242de2b..afaf6f740abc 100644 >--- cad/opencascade/Makefile >+++ cad/opencascade/Makefile >@@ -74,6 +74,7 @@ VIS_LIB_DEPENDS= libftgl.so:graphics/ftgl \ > > VIS_CMAKE_ON= -D3RDPARTY_FREETYPE_DIR=${LOCALBASE} > >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_USE= TEX=latex:build > DOXYGEN_BUILD_DEPENDS= bash:shells/bash \ > doxygen:devel/doxygen \ >diff --git cad/qcad/Makefile cad/qcad/Makefile >index 4c69e64502c6..45ca6e8010ec 100644 >--- cad/qcad/Makefile >+++ cad/qcad/Makefile >@@ -47,6 +47,8 @@ SHRDIR= fonts libraries linetypes patterns plugins scripts themes ts > #QSCRIPTS should not be installed to avoid conflicts with texlive-base > QSCRIPTS= bbox dwg2bmp dwg2pdf dwg2svg > >+OPTIONS_DEFINE= EXAMPLES >+ > pre-configure: > ${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \ > ${WRKSRC}/src/core/RS.cpp >diff --git cad/qelectrotech/Makefile cad/qelectrotech/Makefile >index 5cf260e55698..bbb2b802857e 100644 >--- cad/qelectrotech/Makefile >+++ cad/qelectrotech/Makefile >@@ -19,7 +19,7 @@ USES= compiler:c++11-lib desktop-file-utils qmake qt:5 shared-mime-info > USE_QT= buildtools_build gui network printsupport \ > sql-sqlite3 svg xml > >-OPTIONS_DEFINE= DEBUG >+OPTIONS_DEFINE= DEBUG DOCS > > DEBUG_VARS= BUILD_TYPE=debug > DEBUG_VARS_OFF= BUILD_TYPE=release >diff --git cad/tkgate/Makefile cad/tkgate/Makefile >index a3023fef7d72..fe120ff24498 100644 >--- cad/tkgate/Makefile >+++ cad/tkgate/Makefile >@@ -16,6 +16,8 @@ LICENSE_FILE= ${WRKSRC}/COPYING > GNU_CONFIGURE= yes > USES+= iconv:translit tk:build,run > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|/usr/bin/wish|${WISH}|g' ${WRKSRC}/scripts/tree.tcl > @${REINPLACE_CMD} -e \ >diff --git comms/dcf77pi/Makefile comms/dcf77pi/Makefile >index cee8690bad80..2cb5c70b6811 100644 >--- comms/dcf77pi/Makefile >+++ comms/dcf77pi/Makefile >@@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.md > > LIB_DEPENDS= libjson-c.so:devel/json-c > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS > > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_ALL_TARGET= all doxygen >@@ -25,6 +25,8 @@ USE_LDCONFIG= yes > > PATCH_STRIP= -p1 > PORTDOCS= CHANGELOG.md README.md receiver.svg >+ >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_PORTDOCS= html/* > > INSTALL_TARGET= install-strip >diff --git comms/direwolf/Makefile comms/direwolf/Makefile >index ab2f08978f02..cffba9868298 100644 >--- comms/direwolf/Makefile >+++ comms/direwolf/Makefile >@@ -24,6 +24,8 @@ SHEBANG_FILES= telemetry-toolkit/telem-bits.pl telemetry-toolkit/telem-parm.pl\ > telemetry-toolkit/telem-data91.pl \ > telemetry-toolkit/telem-unit.pl telemetry-toolkit/telem-balloon.pl > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${CP} ${FILESDIR}/Makefile.FreeBSD ${WRKSRC} > ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/dw-start.sh >diff --git comms/hidapi/Makefile comms/hidapi/Makefile >index 29012fee3c82..7cc1fc5f1b72 100644 >--- comms/hidapi/Makefile >+++ comms/hidapi/Makefile >@@ -24,6 +24,8 @@ PORTDOCS= * > CPPFLAGS+= -I${LOCALBASE}/include > LIBS+= -L${LOCALBASE}/lib > >+OPTIONS_DEFINE= DOCS >+ > pre-configure: > @${CP} ${LOCALBASE}/share/gettext/config.rpath ${WRKSRC} > >diff --git comms/libirman/Makefile comms/libirman/Makefile >index 0393f5ef339b..16bdec829d92 100644 >--- comms/libirman/Makefile >+++ comms/libirman/Makefile >@@ -19,4 +19,6 @@ INSTALL_TARGET= install-strip > > PORTDOCS= README TECHNICAL > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git comms/liquid-dsp/Makefile comms/liquid-dsp/Makefile >index 20427c8e3779..2798c359aa08 100644 >--- comms/liquid-dsp/Makefile >+++ comms/liquid-dsp/Makefile >@@ -29,6 +29,8 @@ PORTDOCS= * > CPPFLAGS+= -I${LOCALBASE}/include > LIBS+= -L${LOCALBASE}/lib > >+OPTIONS_DEFINE= DOCS >+ > pre-configure: > @cd ${WRKSRC}; ${SH} bootstrap.sh > >diff --git comms/nasawash/Makefile comms/nasawash/Makefile >index 683c2c19f3a7..df13d1469500 100644 >--- comms/nasawash/Makefile >+++ comms/nasawash/Makefile >@@ -17,6 +17,8 @@ USES= tar:tgz > PLIST_FILES= bin/nasawash > PORTDOCS= nasawash.txt nasawash.upd > >+OPTIONS_DEFINE= DOCS >+ > do-build: > ${CC} ${CPPFLAGS} ${CFLAGS} -c -o ${WRKSRC}/nasawash.o ${WRKSRC}/nasawash.c > ${CC} -o ${WRKSRC}/nasawash ${WRKSRC}/nasawash.o ${LIBS} >diff --git comms/nec2c/Makefile comms/nec2c/Makefile >index cbf7fdb30f57..7534db4b4b9c 100644 >--- comms/nec2c/Makefile >+++ comms/nec2c/Makefile >@@ -14,7 +14,7 @@ COMMENT= Used to calculate antenna patterns useful to ham radio > > LIB_DEPENDS= libccm.so:math/ccmath > >-OPTIONS_DEFINE= EXAMPLES >+OPTIONS_DEFINE= DOCS EXAMPLES > > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/nec2c ${STAGEDIR}${PREFIX}/bin >diff --git comms/splat/Makefile comms/splat/Makefile >index 626dcc757c01..bfa2d7c53159 100644 >--- comms/splat/Makefile >+++ comms/splat/Makefile >@@ -13,6 +13,7 @@ LICENSE= GPLv2 > USES= tar:bzip2 > PORTDOCS= README README2 CHANGES > >+OPTIONS_DEFINE= DOCS > OPTIONS_SINGLE= SRM > OPTIONS_RADIO= HRM > OPTIONS_SINGLE_SRM= SRM_2X2 SRM_3X3 SRM_4X4 SRM_5X5 SRM_6X6 SRM_7X7 SRM_8X8 >diff --git comms/svxlink/Makefile comms/svxlink/Makefile >index 22db1be22ef9..78bb3e190051 100644 >--- comms/svxlink/Makefile >+++ comms/svxlink/Makefile >@@ -36,7 +36,7 @@ CMAKE_ARGS+= -DUSE_QT:BOOL=NO > USE_LDCONFIG= yes > > ALL_TARGET?= all man >-OPTIONS_DEFINE= DOXYGEN STATIC >+OPTIONS_DEFINE= DOXYGEN STATIC DOCS > STATIC_DESC= Build and install static libraries > STATIC_CMAKE_ON= -DBUILD_STATIC_LIBS=YES > .if ${PORTNAME}==svxlink >@@ -49,6 +49,7 @@ ALSA_CMAKE_ON= -DUSE_ALSA:BOOL=ON > OSS_CMAKE_OFF= -DUSE_OSS:BOOL=OFF > OSS_CMAKE_ON= -DUSE_OSS:BOOL=ON > .endif >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_ALL_TARGET=doc > DOXYGEN_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen:BOOL=TRUE > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ >diff --git comms/thebridge/Makefile comms/thebridge/Makefile >index e1067f623068..d4e63c1db3b1 100644 >--- comms/thebridge/Makefile >+++ comms/thebridge/Makefile >@@ -25,6 +25,8 @@ SHEBANG_FILES= addons/usermgmt.cgi > > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's!tbdcmd=\/usr\/local!tbdcmd=${PREFIX}!'\ > ${WRKSRC}/addons/usermgmt.cgi >diff --git comms/tlf/Makefile comms/tlf/Makefile >index f978b216f124..d10b067e0c94 100644 >--- comms/tlf/Makefile >+++ comms/tlf/Makefile >@@ -33,4 +33,6 @@ HAMLIB_CONFIGURE_ENABLE=hamlib > FLDIGI_LIB_DEPENDS= libxmlrpc.so:net/xmlrpc-c > FLDIGI_CONFIGURE_ENABLE=fldigi-xmlrpc > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git comms/twpsk/Makefile comms/twpsk/Makefile >index 52880d49dd62..2fd5506d4598 100644 >--- comms/twpsk/Makefile >+++ comms/twpsk/Makefile >@@ -21,4 +21,6 @@ CFLAGS+= -L${LOCALBASE}/lib -I${PREFIX}/include > WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git comms/uhd/Makefile comms/uhd/Makefile >index 462a643ea306..912433571f34 100644 >--- comms/uhd/Makefile >+++ comms/uhd/Makefile >@@ -48,7 +48,7 @@ CMAKE_ARGS+= -DPKG_LIB_DIR:STRING="share/uhd" -DUHD_TXRX_DEBUG_PRINTS="yes" > > IMAGE_FILE= uhd-images_003.010.003.000-release.zip > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS > #OPTIONS_DEFAULT= DOXYGEN > > OPTIONS_SUB=yes >diff --git comms/wspr/Makefile comms/wspr/Makefile >index 3ddc9f4f986a..8c8f67b21f38 100644 >--- comms/wspr/Makefile >+++ comms/wspr/Makefile >@@ -35,6 +35,8 @@ MAKE_ENV+= PYTHONUSERBASE=${STAGEDIR}${PYTHONBASE} > #LDFLAGS+= -shared > VERSION= 4.00 > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > pre-configure: > @${CP} ${FILESDIR}/wspr.sh.in ${WRKSRC} >diff --git converters/erlang-base64url/Makefile converters/erlang-base64url/Makefile >index a3799166e51d..6ef8009db7a8 100644 >--- converters/erlang-base64url/Makefile >+++ converters/erlang-base64url/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= dvv > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git converters/uulib/Makefile converters/uulib/Makefile >index 14a5a8553fef..e8e152e2ebd8 100644 >--- converters/uulib/Makefile >+++ converters/uulib/Makefile >@@ -29,6 +29,8 @@ DOCFILES= HISTORY doc/Makefile doc/README doc/binhex.fig \ > doc/library.ltx doc/structure.fig doc/td-v1.c doc/td-v2.c \ > doc/td-v3.c doc/test.txt > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${SED} -e 's,FUNKYTOKENHERE,${PREFIX}/,' \ > < ${FILESDIR}/uulib.3 > ${WRKDIR}/uulib.3 >diff --git databases/arangodb32/Makefile databases/arangodb32/Makefile >index 9ca727ac66d5..26121b1f640e 100644 >--- databases/arangodb32/Makefile >+++ databases/arangodb32/Makefile >@@ -28,6 +28,8 @@ USERS= arangodb > GROUPS= arangodb > USE_RC_SUBR= arangod > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 >diff --git databases/arangodb33/Makefile databases/arangodb33/Makefile >index 8200672a93a3..c392c15afbfe 100644 >--- databases/arangodb33/Makefile >+++ databases/arangodb33/Makefile >@@ -31,6 +31,8 @@ USERS= arangodb > GROUPS= arangodb > USE_RC_SUBR= arangod > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 >diff --git databases/c3p0/Makefile databases/c3p0/Makefile >index f00123912a03..b265518290cb 100644 >--- databases/c3p0/Makefile >+++ databases/c3p0/Makefile >@@ -18,6 +18,8 @@ NO_BUILD= yes > JAVA_VERSION= 1.6+ > WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar > @${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git databases/couchdb/Makefile databases/couchdb/Makefile >index bd5bad3789af..2994c79d2b67 100644 >--- databases/couchdb/Makefile >+++ databases/couchdb/Makefile >@@ -46,6 +46,8 @@ STRIP= #empty > > INFO= CouchDB > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > post-patch: >diff --git databases/dbh/Makefile databases/dbh/Makefile >index d84b7abb74e2..9e8be08ad7dd 100644 >--- databases/dbh/Makefile >+++ databases/dbh/Makefile >@@ -28,10 +28,10 @@ GTKDOC_DESC= Enable GTK html documentation > > .if ${PORT_OPTIONS:MGTKDOC} > CONFIGURE_ARGS+= --enable-gtk-doc-html >-PLIST_SUB= GTKDOC="" >+PLIST_SUB+= GTKDOC="" > .else > CONFIGURE_ARGS+= --disable-gtk-doc-html >-PLIST_SUB= GTKDOC="@comment " >+PLIST_SUB+= GTKDOC="@comment " > .endif > > post-patch: >diff --git databases/elixir-calecto/Makefile databases/elixir-calecto/Makefile >index cce3ecfbf716..361a2fa5b1cd 100644 >--- databases/elixir-calecto/Makefile >+++ databases/elixir-calecto/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= databases/elixir-ecto \ > devel/elixir-calendar > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/elixir-db_connection/Makefile databases/elixir-db_connection/Makefile >index cd87ec4e1c6f..804d89b7bf0c 100644 >--- databases/elixir-db_connection/Makefile >+++ databases/elixir-db_connection/Makefile >@@ -21,4 +21,6 @@ MIX_BUILD_DEPS= devel/elixir-connection \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/elixir-ecto/Makefile databases/elixir-ecto/Makefile >index 69148c6cc30d..fe7f2cb36bc4 100644 >--- databases/elixir-ecto/Makefile >+++ databases/elixir-ecto/Makefile >@@ -15,7 +15,7 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= elixir-ecto > >-OPTIONS_DEFINE= POSTGREX MARIAEX >+OPTIONS_DEFINE= POSTGREX MARIAEX DOCS > OPTIONS_SUB= yes > POSTGREX_DESC= PostgreSQL adapter support > MARIAEX_DESC= MySQL adapter support >diff --git databases/elixir-exredis/Makefile databases/elixir-exredis/Makefile >index 89a002498612..067797193c1e 100644 >--- databases/elixir-exredis/Makefile >+++ databases/elixir-exredis/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= artemeff > MIX_BUILD_DEPS= databases/erlang-eredis > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/elixir-geo/Makefile databases/elixir-geo/Makefile >index f0e370bfa52c..a3122a547c05 100644 >--- databases/elixir-geo/Makefile >+++ databases/elixir-geo/Makefile >@@ -23,4 +23,6 @@ MIX_BUILD_DEPS= databases/elixir-ecto \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/elixir-mariaex/Makefile databases/elixir-mariaex/Makefile >index 1aed8da440f2..be40a64a963f 100644 >--- databases/elixir-mariaex/Makefile >+++ databases/elixir-mariaex/Makefile >@@ -21,4 +21,6 @@ MIX_BUILD_DEPS= devel/elixir-connection \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/elixir-mongo/Makefile databases/elixir-mongo/Makefile >index 05129c3f390b..ba422a3362f3 100644 >--- databases/elixir-mongo/Makefile >+++ databases/elixir-mongo/Makefile >@@ -18,4 +18,6 @@ ELIXIR_APP_NAME=mongo > MIX_BUILD_DEPS= devel/elixir-bson > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/elixir-postgrex/Makefile databases/elixir-postgrex/Makefile >index 00e2d4ba0134..2029a1d27bdc 100644 >--- databases/elixir-postgrex/Makefile >+++ databases/elixir-postgrex/Makefile >@@ -21,4 +21,6 @@ MIX_BUILD_DEPS= databases/elixir-db_connection \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/elixir-timex_ecto/Makefile databases/elixir-timex_ecto/Makefile >index fbfd82dcd82b..11716c9d3796 100644 >--- databases/elixir-timex_ecto/Makefile >+++ databases/elixir-timex_ecto/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= databases/elixir-ecto \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/erlang-couchbeam/Makefile databases/erlang-couchbeam/Makefile >index a9cb8d4b837a..75baf5e61ba6 100644 >--- databases/erlang-couchbeam/Makefile >+++ databases/erlang-couchbeam/Makefile >@@ -18,4 +18,6 @@ ERL_BUILD_DEPS= devel/erlang-jsx \ > www/erlang-hackney > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/erlang-epgsql/Makefile databases/erlang-epgsql/Makefile >index 41b1eff9844e..2690f88cbd6d 100644 >--- databases/erlang-epgsql/Makefile >+++ databases/erlang-epgsql/Makefile >@@ -13,4 +13,6 @@ LICENSE= BSD3CLAUSE > USES= erlang:rebar3 > USE_GITHUB= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/erlang-eredis/Makefile databases/erlang-eredis/Makefile >index 864452dfa3f2..559d489ff314 100644 >--- databases/erlang-eredis/Makefile >+++ databases/erlang-eredis/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= wooga > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/iowow/Makefile databases/iowow/Makefile >index b393ab89a665..95ee65416ada 100644 >--- databases/iowow/Makefile >+++ databases/iowow/Makefile >@@ -18,4 +18,6 @@ USE_LDCONFIG= yes > > PORTDOCS= Changelog README > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/libgda5/Makefile databases/libgda5/Makefile >index 99ae80381e4d..f8634daddc40 100644 >--- databases/libgda5/Makefile >+++ databases/libgda5/Makefile >@@ -37,7 +37,7 @@ CONFIGURE_ARGS= --without-oracle \ > .include <bsd.port.options.mk> > > VERSION= 5.0 >-PLIST_SUB= VERSION=${VERSION} >+PLIST_SUB+= VERSION=${VERSION} > > .if ${LIBGDA5_SLAVE}!="no" > USE_GNOME+= libgda5 >diff --git databases/libodbc++/Makefile databases/libodbc++/Makefile >index 53ce61f353e2..f6d520915c5b 100644 >--- databases/libodbc++/Makefile >+++ databases/libodbc++/Makefile >@@ -11,8 +11,9 @@ COMMENT= C++ class library and toolset for ODBC access to data sources > > LICENSE= GPLv2 > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS > >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > > USES= gmake libtool ncurses pathfix pkgconfig readline tar:bzip2 >diff --git databases/libpbl/Makefile databases/libpbl/Makefile >index 78ea6a67c35a..6f02b67aad77 100644 >--- databases/libpbl/Makefile >+++ databases/libpbl/Makefile >@@ -25,6 +25,8 @@ PLIST_FILES= include/pbl.h \ > lib/libpbl.a > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${REINPLACE_CMD} -e 's/= -Wall -O3/+= -Wall -Werror/' \ > -e 's/^CC=/CC?=/' -e '/^.rm -f/d' ${WRKSRC}/makefile >diff --git databases/linux-c6-sqlite3/Makefile databases/linux-c6-sqlite3/Makefile >index c73037de36c2..03fb7c4cc3eb 100644 >--- databases/linux-c6-sqlite3/Makefile >+++ databases/linux-c6-sqlite3/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/linux-c7-sqlite3/Makefile databases/linux-c7-sqlite3/Makefile >index 9920df343b9c..6193cb9328b3 100644 >--- databases/linux-c7-sqlite3/Makefile >+++ databases/linux-c7-sqlite3/Makefile >@@ -19,4 +19,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git databases/mariadb100-server/Makefile databases/mariadb100-server/Makefile >index a5cc3110d615..ff1d645693ff 100644 >--- databases/mariadb100-server/Makefile >+++ databases/mariadb100-server/Makefile >@@ -73,7 +73,7 @@ CONFLICTS_INSTALL= mariadb5*-${PKGNAMESUFFIX:C/^[0-9]*-//}-* \ > > .if !defined(CLIENT_ONLY) > # MySQL-Server options >-OPTIONS_DEFINE+= CONNECT_EXTRA MAXKEY >+OPTIONS_DEFINE+= CONNECT_EXTRA MAXKEY DOCS > OPTIONS_DEFAULT+= MAXKEY > OPTIONS_GROUP= ENGINES > OPTIONS_GROUP_ENGINES= INNOBASE MROONGA OQGRAPH SPHINX SPIDER TOKUDB >@@ -123,6 +123,7 @@ OQGRAPH_LIB_DEPENDS= libboost_system.so:devel/boost-libs \ > TOKUDB_LIB_DEPENDS= libsnappy.so:archivers/snappy > TOKUDB_PORTDOCS= PATENTS README.md > TOKUDB_VARS= LICENSE+=PerconaFT LICENSE_COMB=multi >+TOKUDB_IMPLIES= DOCS > > post-install: > # Remove programs to avoid conflict with mariadb100-client >diff --git databases/mariadb101-server/Makefile databases/mariadb101-server/Makefile >index 5af3ce63b04b..00d0176e3271 100644 >--- databases/mariadb101-server/Makefile >+++ databases/mariadb101-server/Makefile >@@ -44,7 +44,7 @@ FASTMTX_DESC= Replace mutexes with spinlocks > > .if !defined(CLIENT_ONLY) > # MySQL-Server options >-OPTIONS_DEFINE+= CONNECT_EXTRA MAXKEY >+OPTIONS_DEFINE+= CONNECT_EXTRA MAXKEY DOCS > OPTIONS_DEFAULT+= MAXKEY SPHINX SPIDER > OPTIONS_GROUP= COMPRESSION ENGINES GROONGA > OPTIONS_GROUP_COMPRESSION= LZ4 LZO SNAPPY >@@ -149,7 +149,7 @@ OQGRAPH_LIB_DEPENDS= libboost_system.so:devel/boost-libs \ > SNAPPY_CMAKE_OFF= -DWITH_INNODB_SNAPPY=OFF > SNAPPY_CMAKE_ON= -DWITH_INNODB_SNAPPY=${LOCALBASE}/lib > SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy >-TOKUDB_IMPLIES= SNAPPY >+TOKUDB_IMPLIES= SNAPPY DOCS > TOKUDB_PORTDOCS= README.md > TOKUDB_VARS= LICENSE+=PerconaFT LICENSE_COMB=multi > ZMQ_LIB_DEPENDS= libzmq.so:net/libzmq4 >diff --git databases/mariadb102-server/Makefile databases/mariadb102-server/Makefile >index 22d12d7cadc5..c551e97e4536 100644 >--- databases/mariadb102-server/Makefile >+++ databases/mariadb102-server/Makefile >@@ -39,7 +39,7 @@ OPTIONS_DEFAULT= GSSAPI_BASE > # MySQL-Server options > OPTIONS_DEFAULT+= CONNECT_EXTRA INNOBASE SPHINX SPIDER > OPTIONS_GROUP= COMPRESSION ENGINES GROONGA >-OPTIONS_DEFINE= CONNECT_EXTRA >+OPTIONS_DEFINE= CONNECT_EXTRA DOCS > OPTIONS_GROUP_COMPRESSION= LZ4 LZO SNAPPY ZSTD > OPTIONS_GROUP_ENGINES= INNOBASE MROONGA OQGRAPH ROCKSDB SPHINX SPIDER TOKUDB XTRADB > OPTIONS_GROUP_GROONGA= ZMQ MSGPACK >@@ -156,7 +156,7 @@ ROCKSDB_USES= python > SNAPPY_CMAKE_OFF= -DWITH_INNODB_SNAPPY=OFF -DWITH_ROCKSDB_snappy=OFF > SNAPPY_CMAKE_ON= -DWITH_INNODB_SNAPPY=ON -DWITH_ROCKSDB_snappy=ON > SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy >-TOKUDB_IMPLIES= SNAPPY >+TOKUDB_IMPLIES= SNAPPY DOCS > TOKUDB_PORTDOCS= README.md > TOKUDB_VARS= LICENSE+=PerconaFT LICENSE_COMB=multi > ZMQ_LIB_DEPENDS= libzmq.so:net/libzmq4 >diff --git databases/mariadb103-server/Makefile databases/mariadb103-server/Makefile >index e9e9fdbd56ff..37fc6d3dfdaa 100644 >--- databases/mariadb103-server/Makefile >+++ databases/mariadb103-server/Makefile >@@ -41,7 +41,7 @@ OPTIONS_DEFAULT= GSSAPI_BASE > # MySQL-Server options > OPTIONS_DEFAULT+= CONNECT_EXTRA INNOBASE SPHINX SPIDER WSREP > OPTIONS_GROUP= COMPRESSION ENGINES GROONGA >-OPTIONS_DEFINE= CONNECT_EXTRA WSREP >+OPTIONS_DEFINE= CONNECT_EXTRA WSREP DOCS > OPTIONS_GROUP_COMPRESSION= LZ4 LZO SNAPPY ZSTD > OPTIONS_GROUP_ENGINES= INNOBASE MROONGA OQGRAPH ROCKSDB SPHINX SPIDER TOKUDB XTRADB > OPTIONS_GROUP_GROONGA= ZMQ MSGPACK >@@ -158,7 +158,7 @@ ROCKSDB_USES= python > SNAPPY_CMAKE_OFF= -DWITH_INNODB_SNAPPY=OFF -DWITH_ROCKSDB_snappy=OFF > SNAPPY_CMAKE_ON= -DWITH_INNODB_SNAPPY=ON -DWITH_ROCKSDB_snappy=ON > SNAPPY_LIB_DEPENDS= libsnappy.so:archivers/snappy >-TOKUDB_IMPLIES= SNAPPY >+TOKUDB_IMPLIES= SNAPPY DOCS > TOKUDB_PORTDOCS= README.md > TOKUDB_VARS= LICENSE+=PerconaFT LICENSE_COMB=multi > WSREP_CMAKE_OFF= -DWITH_WSREP=OFF >diff --git databases/mdcached/Makefile databases/mdcached/Makefile >index 9fbefc9327f2..af1e76b5ea73 100644 >--- databases/mdcached/Makefile >+++ databases/mdcached/Makefile >@@ -18,6 +18,8 @@ USE_LDCONFIG= yes > > PORTDOCS= UserGuide.txt mdcached.txt > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's|ADDCFLAGS = -Wall -g -O3 -march=native|ADDCFLAGS = ${CFLAGS}|' \ > ${WRKSRC}/Makefile >diff --git databases/memcacheq/Makefile databases/memcacheq/Makefile >index 0829e2225ac7..38ceee27da1a 100644 >--- databases/memcacheq/Makefile >+++ databases/memcacheq/Makefile >@@ -28,6 +28,8 @@ PORTDOCS= README > MCQDIR?= /var/db/memcacheq > PLIST_SUB= MCQDIR=${MCQDIR} > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} >diff --git databases/monetdb/Makefile databases/monetdb/Makefile >index e2494f94db86..0df58e8152bd 100644 >--- databases/monetdb/Makefile >+++ databases/monetdb/Makefile >@@ -35,7 +35,7 @@ CFLAGS+= -I${PREFIX}/include > INSTALL_TARGET= install-strip > > OPTIONS_DEFINE= CONSOLE CURL DATACELL FITS GEOM JDBC MEROCONTROL ODBC \ >- PERL RDF RUBYGEMS SPHINXCLIENT TESTING OPTIMIZE >+ PERL RDF RUBYGEMS SPHINXCLIENT TESTING OPTIMIZE DOCS > OPTIONS_RADIO= PYTHON > OPTIONS_RADIO_PYTHON= PYTHON2 PYTHON3 > OPTIONS_SINGLE= PASSWD_HASH_ALGORITHM >diff --git databases/mongodb32-tools/Makefile databases/mongodb32-tools/Makefile >index 2dcb9fa4e82e..e3589291686a 100644 >--- databases/mongodb32-tools/Makefile >+++ databases/mongodb32-tools/Makefile >@@ -22,7 +22,7 @@ USE_GITHUB= yes > GH_ACCOUNT= mongodb > GH_PROJECT= mongo-tools > >-OPTIONS_DEFINE= SSL SASL >+OPTIONS_DEFINE= SSL SASL DOCS > OPTIONS_DEFAULT= SSL > > SASL_USE= my_tags=sasl >diff --git databases/mongodb34-tools/Makefile databases/mongodb34-tools/Makefile >index d920a4514ac7..ad9a1a1dc314 100644 >--- databases/mongodb34-tools/Makefile >+++ databases/mongodb34-tools/Makefile >@@ -23,7 +23,7 @@ USE_GITHUB= yes > GH_ACCOUNT= mongodb > GH_PROJECT= mongo-tools > >-OPTIONS_DEFINE= SSL SASL >+OPTIONS_DEFINE= SSL SASL DOCS > OPTIONS_DEFAULT= SSL SASL > > SASL_USE= my_tags=sasl >diff --git databases/mongodb36-tools/Makefile databases/mongodb36-tools/Makefile >index c37f5c0b6c65..7ac98f5e281d 100644 >--- databases/mongodb36-tools/Makefile >+++ databases/mongodb36-tools/Makefile >@@ -27,7 +27,7 @@ USE_GITHUB= yes > GH_ACCOUNT= mongodb > GH_PROJECT= mongo-tools > >-OPTIONS_DEFINE= SSL SASL >+OPTIONS_DEFINE= DOCS SSL SASL > OPTIONS_DEFAULT= SSL SASL > > SASL_USE= my_tags=sasl >diff --git databases/ora2pg/Makefile databases/ora2pg/Makefile >index 0d9d359cb16d..a4318e0e50bb 100644 >--- databases/ora2pg/Makefile >+++ databases/ora2pg/Makefile >@@ -22,6 +22,8 @@ USE_PERL5= configure > USE_GITHUB= yes > GH_ACCOUNT= darold > >+OPTIONS_DEFINE= DOCS >+ > do-patch: > ${REINPLACE_CMD} -e '/install_all :/,/};/s=$$CONFDIR=${STAGEDIR}${ETCDIR}=g' \ > -e '/install_all :/,/};/s=$$DOCDIR=${STAGEDIR}${DOCSDIR}=g' \ >diff --git databases/p5-DBD-Excel/Makefile databases/p5-DBD-Excel/Makefile >index 361483195a79..bcb0ee5d35f9 100644 >--- databases/p5-DBD-Excel/Makefile >+++ databases/p5-DBD-Excel/Makefile >@@ -21,7 +21,9 @@ EXAMPLESDIR?= ${PREFIX}/share/examples/${PORTNAME} > USES= perl5 > USE_PERL5= configure > >-post-install: >+OPTIONS_DEFINE= EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > @${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR} > >diff --git databases/pg_partman/Makefile databases/pg_partman/Makefile >index daa1960ebaf6..3f316d70957a 100644 >--- databases/pg_partman/Makefile >+++ databases/pg_partman/Makefile >@@ -24,6 +24,8 @@ SHEBANG_GLOB= *.py > > OPTIONS_DEFINE= DOCS > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pg_partman_bgw.so > >diff --git databases/pgespresso/Makefile databases/pgespresso/Makefile >index d12952220435..8de1d6507e79 100644 >--- databases/pgespresso/Makefile >+++ databases/pgespresso/Makefile >@@ -28,6 +28,8 @@ PORTDOCS= README.asciidoc > INSTALL_TARGET= install-strip > MAKE_ARGS= INSTALL="${INSTALL} -c" > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR}/ > ${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ >diff --git databases/pglogical/Makefile databases/pglogical/Makefile >index f7fef5b17873..3b1229bdfbeb 100644 >--- databases/pglogical/Makefile >+++ databases/pglogical/Makefile >@@ -29,9 +29,9 @@ DOCS_PORTDOCS= * > .include <bsd.port.pre.mk> > > .if ${PGSQL_VER:M9.4} >-PLIST_SUB= PGSQL94="" >+PLIST_SUB+= PGSQL94="" > .else >-PLIST_SUB= PGSQL94="@comment " >+PLIST_SUB+= PGSQL94="@comment " > .endif > > # FFI >diff --git databases/postgresql10-contrib/Makefile databases/postgresql10-contrib/Makefile >index 0f819e2cb4a9..d2d5002b6b2b 100644 >--- databases/postgresql10-contrib/Makefile >+++ databases/postgresql10-contrib/Makefile >@@ -23,6 +23,8 @@ COMPONENT= -contrib > CONFIGURE_ARGS+=--with-libxslt --with-libxml --with-openssl --disable-nls --with-uuid=bsd > LDFLAGS+= -lpthread -L${PREFIX}/lib > >+OPTIONS_DEFINE= DOCS >+ > post-configure: > @cd ${WRKSRC}/src/backend && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} symlinks > >diff --git databases/postgresql10-server/Makefile databases/postgresql10-server/Makefile >index fa72652dfcc5..02afe6cf0574 100644 >--- databases/postgresql10-server/Makefile >+++ databases/postgresql10-server/Makefile >@@ -71,7 +71,7 @@ SUB_FILES+= 502.pgsql > .endif > > .if defined(CLIENT_ONLY) >-OPTIONS_DEFINE+=LIBEDIT >+OPTIONS_DEFINE+=LIBEDIT DOCS > LIBEDIT_DESC= Use non-GPL libedit instead of readline > USES+= perl5 > .else >@@ -80,7 +80,7 @@ CONFIGURE_ENV+= PATH=${PREFIX}/bin:${PATH} > .endif > > .if defined(SERVER_ONLY) >-OPTIONS_DEFINE= DTRACE LDAP INTDATE TZDATA XML >+OPTIONS_DEFINE= DTRACE LDAP INTDATE TZDATA XML DOCS > LDAP_DESC= Build with LDAP authentication support > DTRACE_DESC= Build with DTrace probes > TZDATA_DESC= Use internal timezone database >@@ -104,7 +104,7 @@ OPTIONS_DEFAULT+= TZDATA INTDATE > .endif > > .if !defined(SLAVE_ONLY) >-OPTIONS_DEFINE+= NLS PAM GSSAPI OPTIMIZED_CFLAGS DEBUG >+OPTIONS_DEFINE+= NLS PAM GSSAPI OPTIMIZED_CFLAGS DEBUG DOCS > . if ${DISTVERSION:R} == 9.2 || ${DISTVERSION:R} == 9.3 > OPTIONS_RADIO= KRB5 > OPTIONS_RADIO_KRB5= MIT_KRB5 HEIMDAL_KRB5 >diff --git databases/postgresql95-contrib/Makefile databases/postgresql95-contrib/Makefile >index bb60cd3bbe57..760edb6a941d 100644 >--- databases/postgresql95-contrib/Makefile >+++ databases/postgresql95-contrib/Makefile >@@ -23,6 +23,8 @@ COMPONENT= -contrib > CONFIGURE_ARGS+=--with-libxslt --with-libxml --with-openssl --disable-nls --with-uuid=bsd > LDFLAGS+= -lpthread -L${PREFIX}/lib > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @- ${INSTALL_DATA} ${WRKSRC}/contrib/README ${STAGEDIR}${DOCSDIR}/extension/README > >diff --git databases/postgresql96-contrib/Makefile databases/postgresql96-contrib/Makefile >index 55ed6d09223b..30313169e20b 100644 >--- databases/postgresql96-contrib/Makefile >+++ databases/postgresql96-contrib/Makefile >@@ -23,6 +23,8 @@ COMPONENT= -contrib > CONFIGURE_ARGS+=--with-libxslt --with-libxml --with-openssl --disable-nls --with-uuid=bsd > LDFLAGS+= -lpthread -L${PREFIX}/lib > >+OPTIONS_DEFINE= DOCS >+ > post-configure: > @cd ${WRKSRC}/src/backend && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} symlinks > >diff --git databases/py-PyGreSQL/Makefile databases/py-PyGreSQL/Makefile >index 491bfe2ddb20..e8246e3a5c6d 100644 >--- databases/py-PyGreSQL/Makefile >+++ databases/py-PyGreSQL/Makefile >@@ -19,6 +19,8 @@ USE_PYTHON= autoplist distutils > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_pg.so > @${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git databases/py-bsddb3/Makefile databases/py-bsddb3/Makefile >index 5144d2e5b538..b833320e34d3 100644 >--- databases/py-bsddb3/Makefile >+++ databases/py-bsddb3/Makefile >@@ -22,6 +22,8 @@ PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} --berkeley-db=${LOCALBASE} > PORTDOCS= * > DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's,%%DBVERSION%%,${BDB_LIB_NAME},g' ${WRKSRC}/setup2.py ${WRKSRC}/setup3.py > @${REINPLACE_CMD} 's,<db\.h>,<${BDB_INCLUDE_DIR}/db.h>,' ${WRKSRC}/Modules/bsddb.h >diff --git databases/py-sqlobject/Makefile databases/py-sqlobject/Makefile >index 1736b25e816b..131e1a8a6280 100644 >--- databases/py-sqlobject/Makefile >+++ databases/py-sqlobject/Makefile >@@ -21,7 +21,7 @@ USES= python${PY_MYSQL} > USE_PYTHON= autoplist distutils > > # currently MaxDB(SAP), ADODB are not supported >-OPTIONS_DEFINE= MYSQL PGSQL SQLITE MSSQL SYBASE >+OPTIONS_DEFINE= DOCS MYSQL PGSQL SQLITE MSSQL SYBASE > SYBASE_DESC= sybase support > > PORTDOCS= * >diff --git databases/qdbm/Makefile databases/qdbm/Makefile >index ef61b24c306a..277949319505 100644 >--- databases/qdbm/Makefile >+++ databases/qdbm/Makefile >@@ -29,6 +29,8 @@ MAKE_ARGS= MYDATADIR="${DOCSDIR}" MYDOCS="${PORTDOCS}" \ > INSTALL_TARGET= install-strip > PORTDOCS= ChangeLog NEWS > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > .if defined(WITH_DEBUG) > @${REINPLACE_CMD} 's/-DNDEBUG//' ${WRKSRC}/Makefile.in >diff --git databases/skytools/Makefile databases/skytools/Makefile >index 75010f198eba..8ea341a66e00 100644 >--- databases/skytools/Makefile >+++ databases/skytools/Makefile >@@ -26,6 +26,8 @@ CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \ > --docdir=${EXAMPLESDIR} \ > --with-pgconfig=${LOCALBASE}/bin/pg_config > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e 's=share/doc=share/examples=' ${WRKSRC}/setup_skytools.py > >diff --git databases/sqlcached/Makefile databases/sqlcached/Makefile >index e9e8c0a80210..a6fa2740d0d3 100644 >--- databases/sqlcached/Makefile >+++ databases/sqlcached/Makefile >@@ -23,6 +23,8 @@ PORTDOCS= ${PORTNAME}.html ${PORTNAME}.txt > PLIST_FILES= bin/${PORTNAME} etc/rc.d/${PORTNAME} \ > man/man1/${PORTNAME}.1.gz > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|-lcurses|-lncurses|' ${WRKSRC}/Makefile > @${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' \ >diff --git databases/tcl-sqlite3/Makefile databases/tcl-sqlite3/Makefile >index 0c3996f9368c..90a5c3b065d6 100644 >--- databases/tcl-sqlite3/Makefile >+++ databases/tcl-sqlite3/Makefile >@@ -14,7 +14,7 @@ LICENSE= PD > > LIB_DEPENDS= libsqlite3.so:databases/sqlite3 > >-OPTIONS_DEFINE= THREADS >+OPTIONS_DEFINE= EXAMPLES THREADS > OPTIONS_DEFAULT= THREADS > > WRKSRC= ${WRKDIR}/${DISTNAME}/tea >diff --git deskutils/gnote/Makefile deskutils/gnote/Makefile >index ebddfd09fbc7..04f5061fe84f 100644 >--- deskutils/gnote/Makefile >+++ deskutils/gnote/Makefile >@@ -39,6 +39,8 @@ DOCS= AUTHORS ChangeLog NEWS README TODO > > PLIST_SUB+= VERSION=${PORTVERSION} > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > .for i in ${DOCS} >diff --git deskutils/launchy/Makefile deskutils/launchy/Makefile >index 51b713a9c555..9a417a02900e 100644 >--- deskutils/launchy/Makefile >+++ deskutils/launchy/Makefile >@@ -24,6 +24,8 @@ PORTDOCS= * > > MAKE_JOBS_UNSAFE= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's,/usr,${PREFIX},' \ > ${WRKSRC}/platforms/unix/unix.pro \ >diff --git deskutils/nautilus-actions/Makefile deskutils/nautilus-actions/Makefile >index 4f1b4fe00008..54423dae9930 100644 >--- deskutils/nautilus-actions/Makefile >+++ deskutils/nautilus-actions/Makefile >@@ -32,6 +32,8 @@ PORTDOCS= AUTHORS ChangeLog ChangeLog-2008 ChangeLog-2009 ChangeLog-2010 \ > ChangeLog-2011 ChangeLog-2012 COPYING COPYING-DOCS INSTALL \ > MAINTAINERS NEWS README README-GCONF TODO > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > post-patch: >diff --git deskutils/note/Makefile deskutils/note/Makefile >index a48aaa0ec1f9..276aed5875e1 100644 >--- deskutils/note/Makefile >+++ deskutils/note/Makefile >@@ -17,7 +17,7 @@ RUN_DEPENDS= p5-YAML>=0.1:textproc/p5-YAML \ > USES= perl5 > USE_PERL5= configure > >-OPTIONS_DEFINE= MYSQL PWSAFE3 >+OPTIONS_DEFINE= EXAMPLES MYSQL PWSAFE3 > OPTIONS_DEFAULT= BLOWFISH DES IDEA MYSQL PWSAFE3 > > MYSQL_RUN_DEPENDS= p5-DBD-mysql>0:databases/p5-DBD-mysql \ >diff --git deskutils/notecase/Makefile deskutils/notecase/Makefile >index 4f0c2383aa0b..3ebb87eb2f0d 100644 >--- deskutils/notecase/Makefile >+++ deskutils/notecase/Makefile >@@ -24,6 +24,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} > > PORTDOCS= help.ncd > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/notecase > >diff --git deskutils/taskd/Makefile deskutils/taskd/Makefile >index 487028de12cd..849cc0cefffc 100644 >--- deskutils/taskd/Makefile >+++ deskutils/taskd/Makefile >@@ -48,6 +48,8 @@ CFLAGS+= -g -O0 > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-install: > (cd ${WRKSRC}/pki && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) > ${MKDIR} ${STAGEDIR}${TASKD_DBDIR} >diff --git deskutils/tasksh/Makefile deskutils/tasksh/Makefile >index aae605eeb3f0..120ed4b30da1 100644 >--- deskutils/tasksh/Makefile >+++ deskutils/tasksh/Makefile >@@ -11,4 +11,6 @@ COMMENT= Shell command that wraps Taskwarrior commands > > USES= cmake compiler:c++11-lang readline > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/allegro-devel/Makefile devel/allegro-devel/Makefile >index 8b7f0898657d..4b9aa7e0eeed 100644 >--- devel/allegro-devel/Makefile >+++ devel/allegro-devel/Makefile >@@ -64,6 +64,7 @@ DOCS_BUILD_DEPENDS= ${LOCALBASE}/bin/pandoc:textproc/hs-pandoc > ALSA_LIB_DEPENDS= libasound.so.2:audio/alsa-lib > ALSA_CMAKE_ON= -DWANT_ALSA=on > ALSA_CMAKE_OFF= -DWANT_ALSA=off >+DEMOS_IMPLIES= EXAMPLES > PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio > PULSEAUDIO_CMAKE_ON= -DWANT_PULSEAUDIO=on > PULSEAUDIO_CMAKE_OFF= -DWANT_PULSEAUDIO=off >diff --git devel/automake/Makefile devel/automake/Makefile >index a5c2ecd0abf2..97b2e4e6cfc1 100644 >--- devel/automake/Makefile >+++ devel/automake/Makefile >@@ -25,4 +25,6 @@ MAKE_ENV+= MAKEINFOFLAGS=--no-split > INFO= automake automake-history > CPE_VENDOR= gnu > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/babeltrace/Makefile devel/babeltrace/Makefile >index fea08abc5173..88f0a07b4067 100644 >--- devel/babeltrace/Makefile >+++ devel/babeltrace/Makefile >@@ -32,6 +32,8 @@ USE_LDCONFIG= yes > > PORTDOCS= ChangeLog std-ext-lib.txt API.txt lttng-live.txt > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|LICENSE mit-license.txt gpl-2.0.txt||' \ > ${WRKSRC}/Makefile.am >diff --git devel/bbfreeze/Makefile devel/bbfreeze/Makefile >index edb0f9875c23..9bb5e97e4591 100644 >--- devel/bbfreeze/Makefile >+++ devel/bbfreeze/Makefile >@@ -22,6 +22,8 @@ USE_PYTHON= autoplist distutils > DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e '/altgraph/s,==,>=,' ${WRKSRC}/${PYSETUP} > @${REINPLACE_CMD} -e '/from altgraph\.compat import/d' \ >diff --git devel/boost-docs/Makefile devel/boost-docs/Makefile >index b7de9bd34075..714197f7ae13 100644 >--- devel/boost-docs/Makefile >+++ devel/boost-docs/Makefile >@@ -9,6 +9,8 @@ UNIQ= /usr/bin/uniq > > NO_BUILD= yes > >+OPTIONS_DEFINE= DOCS >+ > .include "${.CURDIR}/..//boost-all/common.mk" > > do-install: >diff --git devel/breakpad/Makefile devel/breakpad/Makefile >index 1395b3ed3e61..3e34c061f7ec 100644 >--- devel/breakpad/Makefile >+++ devel/breakpad/Makefile >@@ -19,6 +19,8 @@ USE_GITHUB= yes > GH_ACCOUNT= google > GH_TAGNAME= 38cbbfed71efcb28931b5e4a83e3c0d4661f1548 > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${MKDIR} ${WRKSRC}/src/third_party/lss > @${CP} ${FILESDIR}/linux_syscall_support.h ${WRKSRC}/src/third_party/lss >diff --git devel/catch/Makefile devel/catch/Makefile >index ccca0eb2d431..784c61a01ad3 100644 >--- devel/catch/Makefile >+++ devel/catch/Makefile >@@ -22,6 +22,8 @@ GH_PROJECT= Catch2 > CMAKE_ARGS= -DCMAKE_INSTALL_DOCDIR=${DOCSDIR} > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > do-test: > ${BUILD_WRKSRC}/projects/SelfTest > >diff --git devel/cctz/Makefile devel/cctz/Makefile >index 34242a814044..55454c52a54a 100644 >--- devel/cctz/Makefile >+++ devel/cctz/Makefile >@@ -29,6 +29,8 @@ PLIST_FILES= include/cctz/civil_time.h \ > > PORTDOCS= README.md > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} >diff --git devel/commit-patch/Makefile devel/commit-patch/Makefile >index cf9c75923f29..c695aaa7e784 100644 >--- devel/commit-patch/Makefile >+++ devel/commit-patch/Makefile >@@ -26,6 +26,8 @@ PLIST_FILES= bin/commit-partial bin/commit-patch \ > man/man1/commit-partial.1.gz man/man1/commit-patch.1.gz > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e 's/share[/]man/man/' \ > -e 's/PREFIX=/PREFIX?=/' \ >diff --git devel/critcl/Makefile devel/critcl/Makefile >index 67e67fce157c..92379046ddeb 100644 >--- devel/critcl/Makefile >+++ devel/critcl/Makefile >@@ -29,7 +29,7 @@ PORTDOCS= * > > NO_BUILD= yes > >-.include <bsd.port.options.mk> >+OPTIONS_DEFINE= DOCS > > post-patch: > ${REINPLACE_CMD} -e 's|dtplite|${LOCALBASE}/bin/dtplite|g' ${WRKSRC}/build.tcl >diff --git devel/cvs2svn/Makefile devel/cvs2svn/Makefile >index 449150b1cd4b..3165b18e3053 100644 >--- devel/cvs2svn/Makefile >+++ devel/cvs2svn/Makefile >@@ -55,6 +55,8 @@ MANPAGES= cvs2svn.1.gz \ > > PLIST_FILES+= ${MANPAGES:S|^|man/man1/|} > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > # be consistent with PORTVERSION > @${REINPLACE_CMD} -e 's|2.5.0-dev|2.4.0|' \ >diff --git devel/cvschangelogbuilder/Makefile devel/cvschangelogbuilder/Makefile >index c226e688cb4d..c832b7134011 100644 >--- devel/cvschangelogbuilder/Makefile >+++ devel/cvschangelogbuilder/Makefile >@@ -22,6 +22,8 @@ NO_ARCH= yes > PLIST_FILES= bin/cvschangelogbuilder > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100077 >diff --git devel/cvsweb3/Makefile devel/cvsweb3/Makefile >index 1266e7e02a8a..dd68092474ea 100644 >--- devel/cvsweb3/Makefile >+++ devel/cvsweb3/Makefile >@@ -35,6 +35,8 @@ SHEBANG_FILES= cvsweb.cgi > NO_BUILD= yes > NO_ARCH= yes > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > .include <bsd.port.pre.mk> > > # Specify where your repository belongs. >diff --git devel/dissy/Makefile devel/dissy/Makefile >index a25c1a5c916b..63b7cfead85b 100644 >--- devel/dissy/Makefile >+++ devel/dissy/Makefile >@@ -24,6 +24,8 @@ GH_TAGNAME= 2f1005e > > PORTDOCS= COPYING ChangeLog README UPGRADE > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} >diff --git devel/distel/Makefile devel/distel/Makefile >index 7c0131362ddf..d72d4a8639ab 100644 >--- devel/distel/Makefile >+++ devel/distel/Makefile >@@ -24,6 +24,8 @@ NO_ARCH= yes > DISTEL_DOCS= AUTHORS ChangeLog INSTALL INSTALL.WIN32 NEWS README README.ie-session > DISTEL_ROOT= ${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION} > >+OPTIONS_DEFINE= DOCS >+ > do-build: > @${MKDIR} ${WRKSRC}/ebin > @cd ${WRKSRC} && erlc -W0 -o ebin/ +debug_info src/*.erl >diff --git devel/editline/Makefile devel/editline/Makefile >index 5c8312e2af6e..f56d2c1b48fe 100644 >--- devel/editline/Makefile >+++ devel/editline/Makefile >@@ -20,6 +20,8 @@ PORTDOCS= * > GH_ACCOUNT= troglobit > USE_GITHUB= yes > >+OPTIONS_DEFINE= DOCS >+ > # Rename to libeditline.3 to avoid conflict with libedit > post-patch: > @${REINPLACE_CMD} 's|editline.3|lib&|' ${WRKSRC}/man/Makefile.am >diff --git devel/elixir-apex/Makefile devel/elixir-apex/Makefile >index 12d6ac996239..2c6df682c1aa 100644 >--- devel/elixir-apex/Makefile >+++ devel/elixir-apex/Makefile >@@ -18,4 +18,6 @@ GH_ACCOUNT= BjRo > MIX_REWRITE= yes > MIX_BUILD_NAME= shared > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-bson/Makefile devel/elixir-bson/Makefile >index 8b0237bc20b3..a05d4ed32305 100644 >--- devel/elixir-bson/Makefile >+++ devel/elixir-bson/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= checkiz > > ELIXIR_APP_NAME=bson > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-cachex/Makefile devel/elixir-cachex/Makefile >index c546ebe2e818..e0e4e77c098b 100644 >--- devel/elixir-cachex/Makefile >+++ devel/elixir-cachex/Makefile >@@ -20,4 +20,6 @@ MIX_BUILD_DEPS= devel/elixir-eternal \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-calendar/Makefile devel/elixir-calendar/Makefile >index 13af08bbfa87..9b7b9f500467 100644 >--- devel/elixir-calendar/Makefile >+++ devel/elixir-calendar/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= devel/elixir-tzdata > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-combine/Makefile devel/elixir-combine/Makefile >index c4b27c176a0d..a66ac00e119c 100644 >--- devel/elixir-combine/Makefile >+++ devel/elixir-combine/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= bitwalker > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-conform/Makefile devel/elixir-conform/Makefile >index 3733de300aa1..81e56c91ded0 100644 >--- devel/elixir-conform/Makefile >+++ devel/elixir-conform/Makefile >@@ -18,4 +18,6 @@ GH_ACCOUNT= bitwalker > MIX_BUILD_DEPS= devel/erlang-neotoma > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-connection/Makefile devel/elixir-connection/Makefile >index e1e3e86e9b3f..3bf5b5a498a9 100644 >--- devel/elixir-connection/Makefile >+++ devel/elixir-connection/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= fishcakez > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-coverex/Makefile devel/elixir-coverex/Makefile >index 7add0e712818..499d223d2a03 100644 >--- devel/elixir-coverex/Makefile >+++ devel/elixir-coverex/Makefile >@@ -18,4 +18,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= alfert > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-crontab/Makefile devel/elixir-crontab/Makefile >index e36087a387b2..b0554f53b82b 100644 >--- devel/elixir-crontab/Makefile >+++ devel/elixir-crontab/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= devel/elixir-timex > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-csv/Makefile devel/elixir-csv/Makefile >index d7c34cf835a6..08030069e8d5 100644 >--- devel/elixir-csv/Makefile >+++ devel/elixir-csv/Makefile >@@ -15,4 +15,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= beatrichartz > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-decimal/Makefile devel/elixir-decimal/Makefile >index eb5d4ea536b2..325029cc590c 100644 >--- devel/elixir-decimal/Makefile >+++ devel/elixir-decimal/Makefile >@@ -15,4 +15,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= ericmj > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-deppie/Makefile devel/elixir-deppie/Makefile >index af56fa132a9f..a627344f7cca 100644 >--- devel/elixir-deppie/Makefile >+++ devel/elixir-deppie/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= whitfin > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-dialyze/Makefile devel/elixir-dialyze/Makefile >index ac1e6e90be73..60502453ce44 100644 >--- devel/elixir-dialyze/Makefile >+++ devel/elixir-dialyze/Makefile >@@ -15,4 +15,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= fishcakez > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-distillery/Makefile devel/elixir-distillery/Makefile >index 389a20b9140a..815bcd1083bd 100644 >--- devel/elixir-distillery/Makefile >+++ devel/elixir-distillery/Makefile >@@ -14,4 +14,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= bitwalker > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-estree/Makefile devel/elixir-estree/Makefile >index d5fdc09bb5b7..db1ca60c2756 100644 >--- devel/elixir-estree/Makefile >+++ devel/elixir-estree/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= bryanjos > > ELIXIR_APP_NAME=estree > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-eternal/Makefile devel/elixir-eternal/Makefile >index 68709db234d7..fb783a00b55f 100644 >--- devel/elixir-eternal/Makefile >+++ devel/elixir-eternal/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= devel/elixir-deppie > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-exactor/Makefile devel/elixir-exactor/Makefile >index 1a09f02bc44d..3a7f7929bce3 100644 >--- devel/elixir-exactor/Makefile >+++ devel/elixir-exactor/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= sasa1977 > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-excoveralls/Makefile devel/elixir-excoveralls/Makefile >index 80d97915906b..12d53b6bf15f 100644 >--- devel/elixir-excoveralls/Makefile >+++ devel/elixir-excoveralls/Makefile >@@ -18,4 +18,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= parroty > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-exjsx/Makefile devel/elixir-exjsx/Makefile >index edbe5b7567ec..87f8ccc5ae23 100644 >--- devel/elixir-exjsx/Makefile >+++ devel/elixir-exjsx/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= talentdeficit > MIX_BUILD_DEPS= devel/erlang-jsx > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-exprotobuf/Makefile devel/elixir-exprotobuf/Makefile >index 1b7c0f78a1d0..9a2282e9cb71 100644 >--- devel/elixir-exprotobuf/Makefile >+++ devel/elixir-exprotobuf/Makefile >@@ -17,6 +17,8 @@ GH_ACCOUNT= bitwalker > MIX_BUILD_DEPS= devel/erlang-gpb > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > pre-build: > @${MKDIR} ${WRKSRC}/deps > ${LN} -s -f ${LOCALBASE}/lib/erlang/lib/gpb-* ${WRKSRC}/deps/gpb >diff --git devel/elixir-gen_stage/Makefile devel/elixir-gen_stage/Makefile >index 4a97fad4f4e1..91bb9f3529d7 100644 >--- devel/elixir-gen_stage/Makefile >+++ devel/elixir-gen_stage/Makefile >@@ -18,4 +18,6 @@ GH_ACCOUNT= elixir-lang > ELIXIR_APP_NAME=gen_stage > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-gen_state_machine/Makefile devel/elixir-gen_state_machine/Makefile >index fdc5ccaaefe2..a94fdc94e6c4 100644 >--- devel/elixir-gen_state_machine/Makefile >+++ devel/elixir-gen_state_machine/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= antipax > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-gettext/Makefile devel/elixir-gettext/Makefile >index 9dd804186b3f..e79c76be9097 100644 >--- devel/elixir-gettext/Makefile >+++ devel/elixir-gettext/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= elixir-lang > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-hex/Makefile devel/elixir-hex/Makefile >index ffedca329cdd..5574ccac2894 100644 >--- devel/elixir-hex/Makefile >+++ devel/elixir-hex/Makefile >@@ -15,4 +15,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= hexpm > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-inflex/Makefile devel/elixir-inflex/Makefile >index 46c6d501f7cf..b5ebf72f86ea 100644 >--- devel/elixir-inflex/Makefile >+++ devel/elixir-inflex/Makefile >@@ -15,4 +15,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= nurugger07 > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-lager_logger/Makefile devel/elixir-lager_logger/Makefile >index 358ca0357ac0..b4d9f5ca60c0 100644 >--- devel/elixir-lager_logger/Makefile >+++ devel/elixir-lager_logger/Makefile >@@ -17,4 +17,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= PSPDFKit-labs > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-libring/Makefile devel/elixir-libring/Makefile >index 3ed849fb9363..c026cd3c73cc 100644 >--- devel/elixir-libring/Makefile >+++ devel/elixir-libring/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= bitwalker > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-make/Makefile devel/elixir-make/Makefile >index 8f409b08b58f..854c684ddef5 100644 >--- devel/elixir-make/Makefile >+++ devel/elixir-make/Makefile >@@ -18,4 +18,6 @@ GH_PROJECT= elixir_make > > ELIXIR_APP_NAME=elixir_make > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-math/Makefile devel/elixir-math/Makefile >index e841fe2093f9..1477c0c2e814 100644 >--- devel/elixir-math/Makefile >+++ devel/elixir-math/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= folz > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-msgpax/Makefile devel/elixir-msgpax/Makefile >index 684a60ad366b..173c9b65f923 100644 >--- devel/elixir-msgpax/Makefile >+++ devel/elixir-msgpax/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= lexmag > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-nadia/Makefile devel/elixir-nadia/Makefile >index b50ed06eb9ee..395746a09b11 100644 >--- devel/elixir-nadia/Makefile >+++ devel/elixir-nadia/Makefile >@@ -20,4 +20,6 @@ MIX_BUILD_DEPS= devel/elixir-poison \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-nats/Makefile devel/elixir-nats/Makefile >index 1d383283ca17..ae40dba2578f 100644 >--- devel/elixir-nats/Makefile >+++ devel/elixir-nats/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= nats-io > MIX_REWRITE= yes > ELIXIR_APP_NAME=nats > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-nimble_csv/Makefile devel/elixir-nimble_csv/Makefile >index fea904a4f7b2..1de9a5f24561 100644 >--- devel/elixir-nimble_csv/Makefile >+++ devel/elixir-nimble_csv/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= plataformatec > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-paratize/Makefile devel/elixir-paratize/Makefile >index 08572f3d5f9f..e7060f075578 100644 >--- devel/elixir-paratize/Makefile >+++ devel/elixir-paratize/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= seantanly > ELIXIR_APP_NAME=paratize > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-plug/Makefile devel/elixir-plug/Makefile >index abe1d4bfa93c..9e0959b99a16 100644 >--- devel/elixir-plug/Makefile >+++ devel/elixir-plug/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= misc/elixir-mime > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-poison/Makefile devel/elixir-poison/Makefile >index 6304880df1d4..8ba24c4eddab 100644 >--- devel/elixir-poison/Makefile >+++ devel/elixir-poison/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= devinus > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-quantum/Makefile devel/elixir-quantum/Makefile >index f64a16ecf254..1f10460e4c87 100644 >--- devel/elixir-quantum/Makefile >+++ devel/elixir-quantum/Makefile >@@ -25,4 +25,6 @@ MIX_BUILD_DEPS= devel/elixir-calendar \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-smppex/Makefile devel/elixir-smppex/Makefile >index 84eb4262349d..e19f9beae853 100644 >--- devel/elixir-smppex/Makefile >+++ devel/elixir-smppex/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= net/erlang-ranch > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-swarm/Makefile devel/elixir-swarm/Makefile >index 91401d090a1a..fe377f78db98 100644 >--- devel/elixir-swarm/Makefile >+++ devel/elixir-swarm/Makefile >@@ -20,4 +20,6 @@ MIX_BUILD_DEPS= devel/elixir-gen_state_machine \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-timex/Makefile devel/elixir-timex/Makefile >index b3ec1dbc522c..40fdb6acee96 100644 >--- devel/elixir-timex/Makefile >+++ devel/elixir-timex/Makefile >@@ -21,4 +21,6 @@ MIX_BUILD_DEPS= devel/elixir-combine \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-tirexs/Makefile devel/elixir-tirexs/Makefile >index 9b9828ca39ee..f5bde378013c 100644 >--- devel/elixir-tirexs/Makefile >+++ devel/elixir-tirexs/Makefile >@@ -20,4 +20,6 @@ GH_ACCOUNT= Zatvobor > MIX_BUILD_DEPS= devel/elixir-exjsx > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-trailing_format_plug/Makefile devel/elixir-trailing_format_plug/Makefile >index b057814d6b5e..5eb592a2a15c 100644 >--- devel/elixir-trailing_format_plug/Makefile >+++ devel/elixir-trailing_format_plug/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= devel/elixir-plug > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/elixir-tzdata/Makefile devel/elixir-tzdata/Makefile >index 61ba9aaf11d4..cbdc1b21b991 100644 >--- devel/elixir-tzdata/Makefile >+++ devel/elixir-tzdata/Makefile >@@ -19,6 +19,8 @@ MIX_BUILD_DEPS= www/elixir-httpoison \ > www/erlang-hackney > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${RM} ${WRKSRC}/priv/release_ets/.gitkeep > >diff --git devel/elixir-unsafe/Makefile devel/elixir-unsafe/Makefile >index 7d63d41a9c6a..20f29ebea7ce 100644 >--- devel/elixir-unsafe/Makefile >+++ devel/elixir-unsafe/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= whitfin > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/eric6/Makefile devel/eric6/Makefile >index 9dda49c0ed33..e36736b3755e 100644 >--- devel/eric6/Makefile >+++ devel/eric6/Makefile >@@ -29,6 +29,8 @@ PORTDATA= * > PORTDOCS= * > PORTEXAMPLES= * > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > .include "${.CURDIR}/bsd.eric6.mk" > .include <bsd.port.options.mk> > >diff --git devel/erlang-backoff/Makefile devel/erlang-backoff/Makefile >index 0905c5fa9246..93776e7c2777 100644 >--- devel/erlang-backoff/Makefile >+++ devel/erlang-backoff/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar3 > USE_GITHUB= yes > GH_ACCOUNT= ferd > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-bbmustache/Makefile devel/erlang-bbmustache/Makefile >index 0158cfa20018..3521ea14cf22 100644 >--- devel/erlang-bbmustache/Makefile >+++ devel/erlang-bbmustache/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar3 > USE_GITHUB= yes > GH_ACCOUNT= soranoba > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-bear/Makefile devel/erlang-bear/Makefile >index bdfa01ce6696..bab30ba46a76 100644 >--- devel/erlang-bear/Makefile >+++ devel/erlang-bear/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= puzza007 > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-certifi/Makefile devel/erlang-certifi/Makefile >index 3ac05ca70c4a..b30af044a122 100644 >--- devel/erlang-certifi/Makefile >+++ devel/erlang-certifi/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= certifi > > ERL_APP_NAME= certifi > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-cf/Makefile devel/erlang-cf/Makefile >index 3c5838894f17..816f64b982f3 100644 >--- devel/erlang-cf/Makefile >+++ devel/erlang-cf/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar3 > USE_GITHUB= yes > GH_ACCOUNT= project-fifo > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-clique/Makefile devel/erlang-clique/Makefile >index 6f68514a5dce..cd940711e8d6 100644 >--- devel/erlang-clique/Makefile >+++ devel/erlang-clique/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= basho > ERL_BUILD_DEPS= devel/erlang-cuttlefish > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-cuttlefish/Makefile devel/erlang-cuttlefish/Makefile >index 76e38f241d6e..0e983d27b507 100644 >--- devel/erlang-cuttlefish/Makefile >+++ devel/erlang-cuttlefish/Makefile >@@ -21,4 +21,6 @@ ERL_BUILD_DEPS= devel/erlang-getopt \ > devel/erlang-neotoma > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-erlware_commons/Makefile devel/erlang-erlware_commons/Makefile >index 0cba28d5bcc7..4d3ad6f99bca 100644 >--- devel/erlang-erlware_commons/Makefile >+++ devel/erlang-erlware_commons/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= erlware > ERL_BUILD_DEPS= devel/erlang-cf > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-exmpp/Makefile devel/erlang-exmpp/Makefile >index 78d6dddcc94a..f40e4be8a488 100644 >--- devel/erlang-exmpp/Makefile >+++ devel/erlang-exmpp/Makefile >@@ -36,6 +36,8 @@ PLIST_SUB= VERSION=${PORTVERSION} > USES= autoreconf cpe libtool pkgconfig ssl > CPE_VENDOR= process-one > >+OPTIONS_DEFINE= DOCS >+ > DOCS_CONFIGURE_ENABLE= documentation > > MAKE_JOBS_UNSAFE= yes >diff --git devel/erlang-folsom/Makefile devel/erlang-folsom/Makefile >index e54c6e54ed8d..33de8dcc36db 100644 >--- devel/erlang-folsom/Makefile >+++ devel/erlang-folsom/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= puzza007 > ERL_BUILD_DEPS= devel/erlang-bear > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-gen_leader/Makefile devel/erlang-gen_leader/Makefile >index 781371dc5d8a..5505857cea0a 100644 >--- devel/erlang-gen_leader/Makefile >+++ devel/erlang-gen_leader/Makefile >@@ -15,7 +15,9 @@ GH_ACCOUNT= garret-smith > GH_PROJECT= gen_leader_revival > GH_TAGNAME= a12a4e3 > >-post-install: >+OPTIONS_DEFINE= DOCS EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} > >diff --git devel/erlang-gen_rpc/Makefile devel/erlang-gen_rpc/Makefile >index ac260e4e7786..9afe5c1d5a89 100644 >--- devel/erlang-gen_rpc/Makefile >+++ devel/erlang-gen_rpc/Makefile >@@ -18,4 +18,6 @@ ERL_BUILD_DEPS= devel/erlang-hut \ > devel/erlang-ssl_verify_fun > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-gen_smtp/Makefile devel/erlang-gen_smtp/Makefile >index 43362c24d724..0738ababe8b4 100644 >--- devel/erlang-gen_smtp/Makefile >+++ devel/erlang-gen_smtp/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= Vagabond > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-getopt/Makefile devel/erlang-getopt/Makefile >index 457254879529..9f16b73301f2 100644 >--- devel/erlang-getopt/Makefile >+++ devel/erlang-getopt/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar3 > USE_GITHUB= yes > GH_ACCOUNT= jcomellas > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-goldrush/Makefile devel/erlang-goldrush/Makefile >index 224368701d54..51f362701d14 100644 >--- devel/erlang-goldrush/Makefile >+++ devel/erlang-goldrush/Makefile >@@ -14,6 +14,8 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= DeadZen > >+OPTIONS_DEFINE= DOCS >+ > post-build: > @${RM} -r ${WRKSRC}/priv > >diff --git devel/erlang-gpb/Makefile devel/erlang-gpb/Makefile >index 3e8508b24ab3..8ac399170de2 100644 >--- devel/erlang-gpb/Makefile >+++ devel/erlang-gpb/Makefile >@@ -18,6 +18,8 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= tomas-abrahamsson > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${ERL_APP_ROOT}/bin > ${INSTALL_SCRIPT} ${WRKSRC}/bin/protoc-erl ${STAGEDIR}${ERL_APP_ROOT}/bin >diff --git devel/erlang-gproc/Makefile devel/erlang-gproc/Makefile >index 75538ad5ece5..d2fa56686439 100644 >--- devel/erlang-gproc/Makefile >+++ devel/erlang-gproc/Makefile >@@ -19,4 +19,6 @@ GH_ACCOUNT= uwiger > > ERL_DOCS= doc/* > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-hut/Makefile devel/erlang-hut/Makefile >index 98ec727cc46e..0e25a33509a7 100644 >--- devel/erlang-hut/Makefile >+++ devel/erlang-hut/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= tolbrino > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-jobs/Makefile devel/erlang-jobs/Makefile >index 3cb233fbb77a..577cdea96f93 100644 >--- devel/erlang-jobs/Makefile >+++ devel/erlang-jobs/Makefile >@@ -16,7 +16,9 @@ ERL_BUILD_DEPS= devel/erlang-parse_trans > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > ERL_DOCS= doc/* > >-post-install: >+OPTIONS_DEFINE= DOCS EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} > >diff --git devel/erlang-jsx/Makefile devel/erlang-jsx/Makefile >index 75c278af66c4..62686af48f75 100644 >--- devel/erlang-jsx/Makefile >+++ devel/erlang-jsx/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= talentdeficit > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-jsxd/Makefile devel/erlang-jsxd/Makefile >index 66dd3625e6ee..273a0adbe2ce 100644 >--- devel/erlang-jsxd/Makefile >+++ devel/erlang-jsxd/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= Licenser > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-katana/Makefile devel/erlang-katana/Makefile >index c15d9d4e18de..f2c29700331c 100644 >--- devel/erlang-katana/Makefile >+++ devel/erlang-katana/Makefile >@@ -13,4 +13,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= inaka > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-lager/Makefile devel/erlang-lager/Makefile >index c05614b5df35..9e9fa551b609 100644 >--- devel/erlang-lager/Makefile >+++ devel/erlang-lager/Makefile >@@ -16,6 +16,8 @@ GH_ACCOUNT= basho > > ERL_RUN_DEPS= devel/erlang-goldrush > >+OPTIONS_DEFINE= DOCS >+ > post-build: > @${RM} -r ${WRKSRC}/priv > >diff --git devel/erlang-lager_syslog/Makefile devel/erlang-lager_syslog/Makefile >index cf50ed4ed7d6..7e4068eb5e17 100644 >--- devel/erlang-lager_syslog/Makefile >+++ devel/erlang-lager_syslog/Makefile >@@ -18,4 +18,6 @@ ERL_BUILD_DEPS= devel/erlang-lager \ > devel/erlang-syslog > RUN_DEPENDS:= ${BUILD_DEPENDS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-meck/Makefile devel/erlang-meck/Makefile >index 6b18c3a3103a..1f481da9dfd1 100644 >--- devel/erlang-meck/Makefile >+++ devel/erlang-meck/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= eproxus > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-metrics/Makefile devel/erlang-metrics/Makefile >index a11618e8fbfe..539b0884e17e 100644 >--- devel/erlang-metrics/Makefile >+++ devel/erlang-metrics/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= benoitc > > ERL_APP_NAME= metrics > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-msgpack/Makefile devel/erlang-msgpack/Makefile >index c72b247dd6b6..e29ade4db207 100644 >--- devel/erlang-msgpack/Makefile >+++ devel/erlang-msgpack/Makefile >@@ -16,4 +16,6 @@ USE_GITHUB= yes > GH_ACCOUNT= msgpack > GH_PROJECT= msgpack-erlang > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-neotoma/Makefile devel/erlang-neotoma/Makefile >index 34bb5894b80a..a49865b08baa 100644 >--- devel/erlang-neotoma/Makefile >+++ devel/erlang-neotoma/Makefile >@@ -20,6 +20,8 @@ GH_ACCOUNT= seancribbs > > REBAR_TARGETS= compile escriptize > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${ERL_APP_ROOT} > ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin >diff --git devel/erlang-parse_trans/Makefile devel/erlang-parse_trans/Makefile >index 8835d59f728a..7e18159214c0 100644 >--- devel/erlang-parse_trans/Makefile >+++ devel/erlang-parse_trans/Makefile >@@ -14,7 +14,9 @@ GH_ACCOUNT= uwiger > > ERL_DOCS= doc/* > >-post-install: >+OPTIONS_DEFINE= DOCS EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} > >diff --git devel/erlang-poolboy/Makefile devel/erlang-poolboy/Makefile >index a61b25a446b3..2e05899107c9 100644 >--- devel/erlang-poolboy/Makefile >+++ devel/erlang-poolboy/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= devinus > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-pooler/Makefile devel/erlang-pooler/Makefile >index 5c9c9bfdd096..7bde05bfca6a 100644 >--- devel/erlang-pooler/Makefile >+++ devel/erlang-pooler/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= seth > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-protobuffs/Makefile devel/erlang-protobuffs/Makefile >index 7f9119b63f62..bff25ae8d94d 100644 >--- devel/erlang-protobuffs/Makefile >+++ devel/erlang-protobuffs/Makefile >@@ -18,4 +18,6 @@ USE_GITHUB= yes > GH_ACCOUNT= basho > GH_PROJECT= erlang_protobuffs > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-providers/Makefile devel/erlang-providers/Makefile >index 2f3cef84ccd2..8780e2d6efd1 100644 >--- devel/erlang-providers/Makefile >+++ devel/erlang-providers/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= tsloughter > ERL_BUILD_DEPS= devel/erlang-getopt > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-rebar3_hex/Makefile devel/erlang-rebar3_hex/Makefile >index 964b13f8a92a..4b7817aef392 100644 >--- devel/erlang-rebar3_hex/Makefile >+++ devel/erlang-rebar3_hex/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= hexpm > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-recon/Makefile devel/erlang-recon/Makefile >index eb0b599c6a30..001ccb407523 100644 >--- devel/erlang-recon/Makefile >+++ devel/erlang-recon/Makefile >@@ -17,6 +17,8 @@ GH_ACCOUNT= ferd > ERL_DOCS= README.md doc/* > REBAR_TARGETS= compile doc > >+OPTIONS_DEFINE= DOCS >+ > post-build: > @${RM} ${WRKSRC}/doc/packages-frame.html > >diff --git devel/erlang-sbroker/Makefile devel/erlang-sbroker/Makefile >index 25abc2f4a48e..ec85fc6eeee3 100644 >--- devel/erlang-sbroker/Makefile >+++ devel/erlang-sbroker/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= fishcakez > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-ssl_verify_fun/Makefile devel/erlang-ssl_verify_fun/Makefile >index a62612e79018..cbf0ff7ba080 100644 >--- devel/erlang-ssl_verify_fun/Makefile >+++ devel/erlang-ssl_verify_fun/Makefile >@@ -15,4 +15,6 @@ USE_GITHUB= yes > GH_ACCOUNT= deadtrickster > GH_PROJECT= ssl_verify_fun.erl > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-syslog/Makefile devel/erlang-syslog/Makefile >index 97e27a0a05f0..0f154c3e2d89 100644 >--- devel/erlang-syslog/Makefile >+++ devel/erlang-syslog/Makefile >@@ -13,4 +13,6 @@ USE_GITHUB= yes > GH_ACCOUNT= Vagabond > GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/erlang-unicode_util_compat/Makefile devel/erlang-unicode_util_compat/Makefile >index de59fdab8c91..46c04e3092b2 100644 >--- devel/erlang-unicode_util_compat/Makefile >+++ devel/erlang-unicode_util_compat/Makefile >@@ -14,4 +14,6 @@ USES= gmake erlang:rebar3 > USE_GITHUB= yes > GH_ACCOUNT= benoitc > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/fistgen/Makefile devel/fistgen/Makefile >index c821129d84c5..c542a13c45a4 100644 >--- devel/fistgen/Makefile >+++ devel/fistgen/Makefile >@@ -20,6 +20,8 @@ PORTEXAMPLES= * > PLIST_FILES= sbin/fistgen \ > man/man8/fistgen.8.gz > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-install: > @${MKDIR} ${STAGEDIR}${DATADIR} > .for dir in templates >diff --git devel/fpc-symbolic/Makefile devel/fpc-symbolic/Makefile >index 5728e722a754..e36d5c56d899 100644 >--- devel/fpc-symbolic/Makefile >+++ devel/fpc-symbolic/Makefile >@@ -12,4 +12,6 @@ MASTERDIR= ${.CURDIR}/../../lang/fpc > WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} > EXTRACTUNITDIR= ${WRKUNITDIR} > >+OPTIONS_DEFINE= DOCS >+ > .include "${MASTERDIR}/Makefile" >diff --git devel/fsmtrie/Makefile devel/fsmtrie/Makefile >index 169cd396c3e4..a16515903afe 100644 >--- devel/fsmtrie/Makefile >+++ devel/fsmtrie/Makefile >@@ -21,11 +21,12 @@ TEST_TARGET= check > > PORTDOCS= * > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOCS DOXYGEN > OPTIONS_DEFAULT=DOXYGEN > > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_ALL_TARGET= html-local >+DOXYGEN_IMPLIES= DOCS > > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib >diff --git devel/fstrm/Makefile devel/fstrm/Makefile >index 07ff5c4cf8b3..ac14447d057d 100644 >--- devel/fstrm/Makefile >+++ devel/fstrm/Makefile >@@ -23,8 +23,9 @@ GNU_CONFIGURE= yes > INSTALL_TARGET= install-strip > TEST_TARGET= check > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS > DOXYGEN_DESC= Use doxygen for docs >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_ALL_TARGET= html-local > >diff --git devel/gb/Makefile devel/gb/Makefile >index dffd240bf735..d9091211b030 100644 >--- devel/gb/Makefile >+++ devel/gb/Makefile >@@ -19,6 +19,8 @@ PLIST_FILES= bin/gb bin/gb-vendor > > PORTDOCS= README.md > >+OPTIONS_DEFINE= DOCS >+ > GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} > GO_TARGET= ./... > >diff --git devel/geany-plugin-geanypy/Makefile devel/geany-plugin-geanypy/Makefile >index 7519e9fddffb..20b6c57162ad 100644 >--- devel/geany-plugin-geanypy/Makefile >+++ devel/geany-plugin-geanypy/Makefile >@@ -10,5 +10,7 @@ COMMENT= Geany plugin: ${${GEANY_PLUGIN}_DESC} > USES= python:2.7 > USE_GNOME= pygtk2 > >+OPTIONS_DEFINE= DOCS >+ > .include "${.CURDIR}/../geany-plugins/files/Makefile.common" > .include <bsd.port.mk> >diff --git devel/geany-plugin-git-changebar/Makefile devel/geany-plugin-git-changebar/Makefile >index 0ce8bbd5a6a3..83659dc53007 100644 >--- devel/geany-plugin-git-changebar/Makefile >+++ devel/geany-plugin-git-changebar/Makefile >@@ -9,5 +9,7 @@ COMMENT= Geany plugin: ${${GEANY_PLUGIN}_DESC} > > LIB_DEPENDS= libgit2.so:devel/libgit2 > >+OPTIONS_DEFINE= DOCS >+ > .include "${.CURDIR}/../geany-plugins/files/Makefile.common" > .include <bsd.port.mk> >diff --git devel/geany-plugin-markdown/Makefile devel/geany-plugin-markdown/Makefile >index 6bff3802ad2e..1aade70ce5ef 100644 >--- devel/geany-plugin-markdown/Makefile >+++ devel/geany-plugin-markdown/Makefile >@@ -10,5 +10,7 @@ COMMENT= Geany plugin: ${${GEANY_PLUGIN}_DESC} > LIB_DEPENDS= libwebkitgtk-1.0.so:www/webkit-gtk2 \ > libsoup-2.4.so:devel/libsoup > >+OPTIONS_DEFINE= DOCS >+ > .include "${.CURDIR}/../geany-plugins/files/Makefile.common" > .include <bsd.port.mk> >diff --git devel/geany-plugin-projectorganizer/Makefile devel/geany-plugin-projectorganizer/Makefile >index 808066a04e63..946581a25f2c 100644 >--- devel/geany-plugin-projectorganizer/Makefile >+++ devel/geany-plugin-projectorganizer/Makefile >@@ -7,5 +7,7 @@ CATEGORIES= devel > MAINTAINER= madpilot@FreeBSD.org > COMMENT= Geany plugin: ${${GEANY_PLUGIN}_DESC} > >+OPTIONS_DEFINE= DOCS >+ > .include "${.CURDIR}/../geany-plugins/files/Makefile.common" > .include <bsd.port.mk> >diff --git devel/geany-plugin-utilslib/Makefile devel/geany-plugin-utilslib/Makefile >index 063e47ad4f08..8b45649d133c 100644 >--- devel/geany-plugin-utilslib/Makefile >+++ devel/geany-plugin-utilslib/Makefile >@@ -7,5 +7,7 @@ CATEGORIES= devel > MAINTAINER= madpilot@FreeBSD.org > COMMENT= Geany plugin: ${${GEANY_PLUGIN}_DESC} > >+OPTIONS_DEFINE= DOCS >+ > .include "${.CURDIR}/../geany-plugins/files/Makefile.common" > .include <bsd.port.mk> >diff --git devel/gengetopt/Makefile devel/gengetopt/Makefile >index 0e37e7969b8e..a41cc2f4e259 100644 >--- devel/gengetopt/Makefile >+++ devel/gengetopt/Makefile >@@ -29,6 +29,8 @@ DOC_EXAMPLES= README.example cmdline1.c cmdline1.h cmdline2.c cmdline2.h \ > TESTS_EXAMPLES= test_manual_help.c test_manual_help_cmd.c \ > test_manual_help_cmd.ggo test_manual_help_cmd.h > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-install: > ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \ > ${STAGEDIR}${MAN1PREFIX}/man/man1/ >diff --git devel/git-cinnabar/Makefile devel/git-cinnabar/Makefile >index 0e86b8424e5d..c562dcf01371 100644 >--- devel/git-cinnabar/Makefile >+++ devel/git-cinnabar/Makefile >@@ -30,6 +30,8 @@ DATADIR= ${PREFIX}/libexec/git-core > PORTDATA= * > PORTDOCS= README.md > >+OPTIONS_DEFINE= DOCS >+ > post-configure: > @${TAR} cf - -C$$(${MAKE} -V WRKSRC -C ${PORTSDIR}/devel/git) . | \ > ${TAR} xof - -C${WRKSRC}/git-core >diff --git devel/git-cola/Makefile devel/git-cola/Makefile >index 2c5adc28b0d0..ba27361e8016 100644 >--- devel/git-cola/Makefile >+++ devel/git-cola/Makefile >@@ -25,4 +25,6 @@ NO_ARCH= yes > > MAKE_ARGS= prefix=${PREFIX} PYTHON=${PYTHON_CMD} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/glib20-reference/bsd.gnome-reference.mk devel/glib20-reference/bsd.gnome-reference.mk >index 3312475b5cba..73398f288023 100644 >--- devel/glib20-reference/bsd.gnome-reference.mk >+++ devel/glib20-reference/bsd.gnome-reference.mk >@@ -32,6 +32,8 @@ BOOKS?= . > > PORTDOCS?= * > >+OPTIONS_DEFINE+= DOCS >+ > .if !target(do-build) > do-build: > @${DO_NADA} >diff --git devel/gnome-builder/Makefile devel/gnome-builder/Makefile >index ddb2cd359ad5..71a9bfe97ca9 100644 >--- devel/gnome-builder/Makefile >+++ devel/gnome-builder/Makefile >@@ -42,4 +42,6 @@ GLIB_SCHEMAS= org.gnome.builder.editor.gschema.xml \ > org.gnome.builder.experimental.gschema.xml \ > org.gnome.builder.project-tree.gschema.xml > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/gprbuild/Makefile devel/gprbuild/Makefile >index b88e407b6411..af2a2cd98a8b 100644 >--- devel/gprbuild/Makefile >+++ devel/gprbuild/Makefile >@@ -26,7 +26,7 @@ BUILD_WRKSRC= ${WRKSRC}/construction > INSTALL_WRKSRC= ${BUILD_WRKSRC} > INSTALL_TARGET= install > >-#OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS > #DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx > #DOCS_ALL_TARGET= gen-docs > #DOCS_INSTALL_TARGET= install-docs >diff --git devel/grumpy/Makefile devel/grumpy/Makefile >index 9c560a3fa4ba..798e07de84f1 100644 >--- devel/grumpy/Makefile >+++ devel/grumpy/Makefile >@@ -21,10 +21,10 @@ BINARY_ALIAS= python=${PYTHON_CMD} > .include <bsd.port.options.mk> > > .if ${ARCH} == "amd64" >-PLIST_SUB= ARCH=amd64 >+PLIST_SUB+= ARCH=amd64 > .endif > .if ${ARCH} == "i386" >-PLIST_SUB= ARCH=386 >+PLIST_SUB+= ARCH=386 > .endif > > do-install: >diff --git devel/icmake/Makefile devel/icmake/Makefile >index 55a9b4198dad..489756543fc9 100644 >--- devel/icmake/Makefile >+++ devel/icmake/Makefile >@@ -35,6 +35,8 @@ GL_COMMIT= 8e3ac3057363162b87279bab1e9ba356eb0aea0f > > .include <bsd.port.options.mk> > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|find|find .|g' \ > ${WRKSRC}/icm_prepare >diff --git devel/json-glib/Makefile devel/json-glib/Makefile >index 37bccdae0f39..da03803008a1 100644 >--- devel/json-glib/Makefile >+++ devel/json-glib/Makefile >@@ -11,7 +11,7 @@ COMMENT= JSON (RFC 4627) interface for Glib > > LICENSE= LGPL21 > >-OPTIONS_DEFINE= GIR >+OPTIONS_DEFINE= GIR DOCS > OPTIONS_DEFAULT=GIR > OPTIONS_SUB= yes > GIR_DESC= Build introspection data >diff --git devel/judy/Makefile devel/judy/Makefile >index 10241bcb4c20..478527e8992e 100644 >--- devel/judy/Makefile >+++ devel/judy/Makefile >@@ -25,6 +25,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME:tl}-${PORTVERSION} > > PORTDOCS= COPYRIGHT README *.htm > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == mips || ${ARCH} == powerpc >diff --git devel/libcutl/Makefile devel/libcutl/Makefile >index 3f256695b5f4..7d286be50c16 100644 >--- devel/libcutl/Makefile >+++ devel/libcutl/Makefile >@@ -33,4 +33,6 @@ CONFIGURE_ARGS= --disable-static \ > --with-external-expat \ > --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/libdwarf/Makefile devel/libdwarf/Makefile >index 59960d430828..305b8f7d7ab9 100644 >--- devel/libdwarf/Makefile >+++ devel/libdwarf/Makefile >@@ -27,6 +27,8 @@ DOS2UNIX_GLOB= *.h > > PS_FILES= libdwarf2.1.pdf libdwarf2p.1.pdf mips_extensions.pdf > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_DATA} ${WRKSRC}/libdwarf.a ${STAGEDIR}${PREFIX}/lib > ${INSTALL_DATA} ${WRKSRC}/dwarf.h ${STAGEDIR}${PREFIX}/include >diff --git devel/libgit2-glib/Makefile devel/libgit2-glib/Makefile >index 14c20645e211..19896bdad28c 100644 >--- devel/libgit2-glib/Makefile >+++ devel/libgit2-glib/Makefile >@@ -28,4 +28,6 @@ INSTALLS_ICONS= yes > CONFIGURE_ARGS= --disable-python > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/libiqxmlrpc/Makefile devel/libiqxmlrpc/Makefile >index cc2a281d7c2b..bc426d7acf0c 100644 >--- devel/libiqxmlrpc/Makefile >+++ devel/libiqxmlrpc/Makefile >@@ -14,9 +14,9 @@ LICENSE= BSD2CLAUSE > > LIB_DEPENDS= libboost_thread.so:devel/boost-libs > >-OPTIONS_DEFINE= DOXYGEN >-OPTIONS_DEFAULT= >+OPTIONS_DEFINE= DOXYGEN DOCS > >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_CMAKE_OFF= -Dbuild_docs=off > >diff --git devel/libosmo-netif/Makefile devel/libosmo-netif/Makefile >index 3eb7c3071e87..e2d427a8d7a1 100644 >--- devel/libosmo-netif/Makefile >+++ devel/libosmo-netif/Makefile >@@ -22,11 +22,12 @@ INSTALL_TARGET= install-strip > USE_LDCONFIG= yes > PORTDOCS= * > >-OPTIONS_DEFINE= DOXYGEN DAHDI >+OPTIONS_DEFINE= DOXYGEN DAHDI DOCS > > DOXYGEN_DESC= Build documentation > DAHDI_DESC= Build DAHDI input driver > >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ > dot:graphics/graphviz > DOXYGEN_CONFIGURE_ENV_OFF=ac_cv_path_DOXYGEN=false >diff --git devel/libosmo-sccp/Makefile devel/libosmo-sccp/Makefile >index fcbc2a9da500..b3938962b934 100644 >--- devel/libosmo-sccp/Makefile >+++ devel/libosmo-sccp/Makefile >@@ -21,6 +21,8 @@ CONFLICTS_INSTALL=libmtp-[0-9]* # lib/libmtp.a > USES= autoreconf libtool pathfix pkgconfig > GNU_CONFIGURE= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version > >diff --git devel/libosmocore/Makefile devel/libosmocore/Makefile >index da7aef98cf87..ab37bf9ab939 100644 >--- devel/libosmocore/Makefile >+++ devel/libosmocore/Makefile >@@ -29,7 +29,9 @@ PORTDOCS= * > SHEBANG_FILES= utils/conv_codes_gsm.py utils/conv_gen.py > python_OLD_CMD= /usr/bin/python2 > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS >+ >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ > dot:graphics/graphviz > DOXYGEN_CONFIGURE_ENV_OFF=ac_cv_path_DOXYGEN=false >diff --git devel/libqb/Makefile devel/libqb/Makefile >index 69b5f3131183..e12fe92b3d8c 100644 >--- devel/libqb/Makefile >+++ devel/libqb/Makefile >@@ -31,9 +31,10 @@ PATHFIX_MAKEFILEIN= Makefile.am > INSTALL_TARGET= install-strip > TEST_TARGET= check > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOCS DOXYGEN > OPTIONS_SUB= yes > >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > > post-install: >diff --git devel/libxo/Makefile devel/libxo/Makefile >index 52920e4ae577..7437e8a3cf85 100644 >--- devel/libxo/Makefile >+++ devel/libxo/Makefile >@@ -17,4 +17,6 @@ GNU_CONFIGURE= yes > INSTALL_TARGET= install-strip > USE_PERL5= run > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c6-dbus-glib/Makefile devel/linux-c6-dbus-glib/Makefile >index 83658c56ecec..be7babfdbb2b 100644 >--- devel/linux-c6-dbus-glib/Makefile >+++ devel/linux-c6-dbus-glib/Makefile >@@ -16,4 +16,6 @@ USE_LDCONFIG= yes > USE_LINUX= dbuslibs expat > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c6-libglade2/Makefile devel/linux-c6-libglade2/Makefile >index 344fb2865431..6101ef0466b1 100644 >--- devel/linux-c6-libglade2/Makefile >+++ devel/linux-c6-libglade2/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c6-libpciaccess/Makefile devel/linux-c6-libpciaccess/Makefile >index 22429a1ba6a3..5c59b03e06cc 100644 >--- devel/linux-c6-libpciaccess/Makefile >+++ devel/linux-c6-libpciaccess/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c6-libsigc++20/Makefile devel/linux-c6-libsigc++20/Makefile >index d9152e7734b1..90c880ea2def 100644 >--- devel/linux-c6-libsigc++20/Makefile >+++ devel/linux-c6-libsigc++20/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c6-libsoup/Makefile devel/linux-c6-libsoup/Makefile >index cf1390c50570..8a1a0930c18d 100644 >--- devel/linux-c6-libsoup/Makefile >+++ devel/linux-c6-libsoup/Makefile >@@ -13,4 +13,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c6-libthai/Makefile devel/linux-c6-libthai/Makefile >index e54f2df84875..4c5f08bce6cd 100644 >--- devel/linux-c6-libthai/Makefile >+++ devel/linux-c6-libthai/Makefile >@@ -14,4 +14,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c6-qt47/Makefile devel/linux-c6-qt47/Makefile >index b1418c452bf9..c4b99dada983 100644 >--- devel/linux-c6-qt47/Makefile >+++ devel/linux-c6-qt47/Makefile >@@ -19,4 +19,6 @@ USE_LDCONFIG= yes > USE_LINUX= fontconfig png dbuslibs sqlite3 openssl > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c6-sdl12/Makefile devel/linux-c6-sdl12/Makefile >index 323b98ad8e2b..03a955758faf 100644 >--- devel/linux-c6-sdl12/Makefile >+++ devel/linux-c6-sdl12/Makefile >@@ -19,4 +19,6 @@ USE_LDCONFIG= yes > USE_LINUX= xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-dbus-glib/Makefile devel/linux-c7-dbus-glib/Makefile >index e7172e486099..49b700ecedc4 100644 >--- devel/linux-c7-dbus-glib/Makefile >+++ devel/linux-c7-dbus-glib/Makefile >@@ -18,4 +18,6 @@ USE_LDCONFIG= yes > USE_LINUX= dbuslibs expat > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-icu/Makefile devel/linux-c7-icu/Makefile >index d543146e0ce9..25237d447103 100644 >--- devel/linux-c7-icu/Makefile >+++ devel/linux-c7-icu/Makefile >@@ -17,4 +17,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-libglade2/Makefile devel/linux-c7-libglade2/Makefile >index 26f6596bd086..e7a058ac9f5a 100644 >--- devel/linux-c7-libglade2/Makefile >+++ devel/linux-c7-libglade2/Makefile >@@ -20,4 +20,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-libpciaccess/Makefile devel/linux-c7-libpciaccess/Makefile >index d3bbc79d177c..593d4fa71abe 100644 >--- devel/linux-c7-libpciaccess/Makefile >+++ devel/linux-c7-libpciaccess/Makefile >@@ -17,4 +17,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-libsigc++20/Makefile devel/linux-c7-libsigc++20/Makefile >index ba43f6727475..38ad4926b8c0 100644 >--- devel/linux-c7-libsigc++20/Makefile >+++ devel/linux-c7-libsigc++20/Makefile >@@ -16,4 +16,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-libthai/Makefile devel/linux-c7-libthai/Makefile >index 5cca4c93cfe4..aa3cdc024df1 100644 >--- devel/linux-c7-libthai/Makefile >+++ devel/linux-c7-libthai/Makefile >@@ -17,4 +17,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-qt/Makefile devel/linux-c7-qt/Makefile >index f2b34f9016d6..b4111e8709c2 100644 >--- devel/linux-c7-qt/Makefile >+++ devel/linux-c7-qt/Makefile >@@ -19,4 +19,6 @@ USE_LDCONFIG= yes > USE_LINUX= fontconfig png dbuslibs sqlite3 openssl > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-sdl12/Makefile devel/linux-c7-sdl12/Makefile >index f6d79c90dc09..7e1fce8bc450 100644 >--- devel/linux-c7-sdl12/Makefile >+++ devel/linux-c7-sdl12/Makefile >@@ -21,4 +21,6 @@ USE_LDCONFIG= yes > USE_LINUX= xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/linux-c7-sdl20/Makefile devel/linux-c7-sdl20/Makefile >index d9cad0b17cbc..458dd4ae72c5 100644 >--- devel/linux-c7-sdl20/Makefile >+++ devel/linux-c7-sdl20/Makefile >@@ -21,4 +21,6 @@ USE_LDCONFIG= yes > USE_LINUX= xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/lmdbg/Makefile devel/lmdbg/Makefile >index 2cd64c5601be..85ef78a62c01 100644 >--- devel/lmdbg/Makefile >+++ devel/lmdbg/Makefile >@@ -28,6 +28,8 @@ MKCMAKE_ENV+= LDFLAGS=-L${LOCALBASE}/lib > > INSTALL_TARGET= install install-doc > >+OPTIONS_DEFINE= DOCS >+ > do-build: > ${SETENV} ${MKCMAKE_ENV} ${MKCMAKE} -C ${WRKSRC} > >diff --git devel/lua-sysctl/Makefile devel/lua-sysctl/Makefile >index b17df4e56207..ed7ca6e96623 100644 >--- devel/lua-sysctl/Makefile >+++ devel/lua-sysctl/Makefile >@@ -19,6 +19,8 @@ USE_GITHUB= yes > GH_ACCOUNT= kAworu > GH_PROJECT= lua-${PORTNAME} > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e "s/5.1/${LUA_VER}/g" ${WRKSRC}/Makefile > >diff --git devel/msp430-debug-stack/Makefile devel/msp430-debug-stack/Makefile >index 2a06b8bb8c6b..be931143ff3e 100644 >--- devel/msp430-debug-stack/Makefile >+++ devel/msp430-debug-stack/Makefile >@@ -36,6 +36,8 @@ SUB_FILES+= pkg-message > > REINPLACE_ARGS= -i "" > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${FIND} ${WRKSRC}/DLL430_v3/src/TI/DLL430 \ > \( -name '*.cpp' -o -name '*.h' \) -print0 | ${XARGS} -0 \ >diff --git devel/p5-Object-Pluggable/Makefile devel/p5-Object-Pluggable/Makefile >index 03bf168df392..4c3b070ecafe 100644 >--- devel/p5-Object-Pluggable/Makefile >+++ devel/p5-Object-Pluggable/Makefile >@@ -21,7 +21,9 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} > USES= perl5 > USE_PERL5= configure > >-post-install: >+OPTIONS_DEFINE= EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ > ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}/ > >diff --git devel/pear/Makefile devel/pear/Makefile >index 33c4b07e55db..2d81f37ce0cc 100644 >--- devel/pear/Makefile >+++ devel/pear/Makefile >@@ -22,6 +22,8 @@ USE_PHP= pcre:build xml:build zlib:build > > PEARDIR= ${PREFIX}/share/pear > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \ > -e "s|%%BUNDLEDIR%%|${WRKSRC}/go-pear-bundle|" \ >diff --git devel/pkgconf/Makefile devel/pkgconf/Makefile >index 538d277e1add..2c43db23ffe9 100644 >--- devel/pkgconf/Makefile >+++ devel/pkgconf/Makefile >@@ -27,6 +27,8 @@ CONFIGURE_ARGS= --with-pkg-config-dir=${PREFIX}/libdata/pkgconfig:/usr/libdata/p > --with-system-includedir=/usr/include > MAKE_ARGS= MANDIR="${MAN1PREFIX}/man/man1" > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${LN} -sf pkgconf ${STAGEDIR}${PREFIX}/bin/pkg-config > >diff --git devel/protobuf-c/Makefile devel/protobuf-c/Makefile >index 8e0072553c86..2d7bd71c8716 100644 >--- devel/protobuf-c/Makefile >+++ devel/protobuf-c/Makefile >@@ -22,13 +22,14 @@ USE_LDCONFIG= yes > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS > OPTIONS_DEFAULT= DOXYGEN > > PORTDOCS= * > > ALL_TARGET= all > INSTALL_TARGET= install-strip >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_ALL_TARGET= html-local > >diff --git devel/pth/Makefile devel/pth/Makefile >index 76bbfe1ebbb7..2c7099871807 100644 >--- devel/pth/Makefile >+++ devel/pth/Makefile >@@ -30,10 +30,10 @@ CONFLICTS?= pth-hard-2.* > > .if ${PKGNAMESUFFIX} == "-hard" > CONFIGURE_ARGS+= --enable-syscall-hard --disable-syscall-soft >-PLIST_SUB= PTHREAD="@comment " >+PLIST_SUB+= PTHREAD="@comment " > .else > CONFIGURE_ARGS+= --enable-syscall-soft --enable-pthread >-PLIST_SUB= PTHREAD="" >+PLIST_SUB+= PTHREAD="" > .endif > > post-patch: >diff --git devel/pure-stllib/Makefile devel/pure-stllib/Makefile >index a75f0d61589f..249a0ec8f0c0 100644 >--- devel/pure-stllib/Makefile >+++ devel/pure-stllib/Makefile >@@ -27,6 +27,8 @@ DOC_FILES2= *.pdf > > PORTEXAMPLES= * > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS ?=|' \ > ${WRKSRC}/Makefile ${WRKSRC}/pure-stlmap/Makefile ${WRKSRC}/pure-stlvec/Makefile >diff --git devel/py-Jinja2/Makefile devel/py-Jinja2/Makefile >index e0c486c9cfb3..c560e2403afc 100644 >--- devel/py-Jinja2/Makefile >+++ devel/py-Jinja2/Makefile >@@ -28,7 +28,7 @@ USE_PYTHON= flavors > > EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} > >-OPTIONS_DEFINE?= BABEL EXAMPLES >+OPTIONS_DEFINE?= BABEL DOCS EXAMPLES > OPTIONS_DEFAULT?= BABEL > BABEL_DESC= Enable Babel extension > >diff --git devel/py-crcmod/Makefile devel/py-crcmod/Makefile >index a9b39e2c4afb..134710e44dff 100644 >--- devel/py-crcmod/Makefile >+++ devel/py-crcmod/Makefile >@@ -21,6 +21,8 @@ USE_PYTHON= autoplist distutils > DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/changelog ${STAGEDIR}${DOCSDIR} >diff --git devel/py-kid/Makefile devel/py-kid/Makefile >index 3076b42fe1d9..faa9c56271c0 100644 >--- devel/py-kid/Makefile >+++ devel/py-kid/Makefile >@@ -16,7 +16,7 @@ USES= python:2.7 shebangfix > USE_PYTHON= distutils autoplist > SHEBANG_FILES= misc/upgrade-0.6.py > >-OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS EXAMPLES > > NO_ARCH= yes > DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} >diff --git devel/py-pymtbl/Makefile devel/py-pymtbl/Makefile >index 3766f2d530a7..5f7efd6f03e8 100644 >--- devel/py-pymtbl/Makefile >+++ devel/py-pymtbl/Makefile >@@ -24,6 +24,8 @@ PORTEXAMPLES= * > > CPPFLAGS+= -I${LOCALBASE}/include > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}/${PYTHON_SITELIBDIR}/mtbl.so > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >diff --git devel/py-pyro/Makefile devel/py-pyro/Makefile >index aadb833d3a06..e29d4ebbcc50 100644 >--- devel/py-pyro/Makefile >+++ devel/py-pyro/Makefile >@@ -23,6 +23,8 @@ USE_PYTHON= autoplist concurrent distutils > PORTDOCS= * > PORTEXAMPLES= * > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > .include <bsd.port.pre.mk> > > .if ${PYTHON_REL} < 3400 >diff --git devel/py-uvloop/Makefile devel/py-uvloop/Makefile >index d06d00694db4..6c6b6d18a80c 100644 >--- devel/py-uvloop/Makefile >+++ devel/py-uvloop/Makefile >@@ -20,14 +20,15 @@ OPTIONS_DEFINE= DOCS EXAMPLES > USES= python:3.5+ > USE_PYTHON= autoplist concurrent distutils > >-PORTDOCS= PKG-INFO README.rst >+PORTDOCS= * >+PORTEXAMPLES= * > > post-install: > ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/uvloop/loop.so > > post-install-DOCS-on: > ${MKDIR} ${STAGEDIR}${DOCSDIR}/ >- cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ >+ cd ${WRKSRC}/ && ${INSTALL_DATA} PKG-INFO README.rst ${STAGEDIR}${DOCSDIR}/ > cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/ > > post-install-EXAMPLES-on: >diff --git devel/pydbus-common/Makefile devel/pydbus-common/Makefile >index 2467466e5735..de42985662ee 100644 >--- devel/pydbus-common/Makefile >+++ devel/pydbus-common/Makefile >@@ -31,8 +31,9 @@ DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} > EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} > > OPTIONS_SUB= yes >-OPTIONS_DEFINE= HTMLDOCS >+OPTIONS_DEFINE= HTMLDOCS DOCS EXAMPLES > HTMLDOCS_DESC= build html documentation >+HTMLDOCS_IMPLIES= DOCS > HTMLDOCS_CONFIGURE_OFF= --disable-html-docs > HTMLDOCS_BUILD_DEPENDS= rst2html:textproc/py-docutils > >diff --git devel/quickcheck++/Makefile devel/quickcheck++/Makefile >index 1fcf82d25aa2..24203f05d483 100644 >--- devel/quickcheck++/Makefile >+++ devel/quickcheck++/Makefile >@@ -20,7 +20,7 @@ NO_BUILD= yes > PORTDOCS= COPYRIGHT README > PORTEXAMPLES= examples.cc > >-OPTIONS_DEFINE= DOCS DOXYGEN >+OPTIONS_DEFINE= DOCS DOXYGEN EXAMPLES > DOXYGEN_DESC= Build documentation with doxygen > > .include <bsd.port.options.mk> >diff --git devel/rebar/Makefile devel/rebar/Makefile >index 47dc56578d6e..4f4dff7ee41e 100644 >--- devel/rebar/Makefile >+++ devel/rebar/Makefile >@@ -14,7 +14,7 @@ LICENSE= APACHE20 > BUILD_DEPENDS= ${LOCALBASE}/bin/escript:lang/erlang > RUN_DEPENDS:= ${BUILD_DEPENDS} > >-OPTIONS_DEFINE= BASH ZSH >+OPTIONS_DEFINE= BASH ZSH EXAMPLES > > USE_GITHUB= yes > NO_ARCH= yes >diff --git devel/rebar3/Makefile devel/rebar3/Makefile >index a9eb402138bc..26d5b0a9d572 100644 >--- devel/rebar3/Makefile >+++ devel/rebar3/Makefile >@@ -20,7 +20,7 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/erl:lang/erlang \ > ${LOCALBASE}/bin/git:devel/git > RUN_DEPENDS= ${LOCALBASE}/bin/erl:lang/erlang > >-OPTIONS_DEFINE= BASH ZSH >+OPTIONS_DEFINE= BASH ZSH EXAMPLES > > USE_GITHUB= yes > GH_ACCOUNT= rebar >diff --git devel/relx/Makefile devel/relx/Makefile >index 76cb438dd05e..ab55500a540d 100644 >--- devel/relx/Makefile >+++ devel/relx/Makefile >@@ -39,6 +39,8 @@ REBAR_DEPS= bbmustache-1.0.4 \ > DISTFILES+= ${_dep}.tar:hex > .endfor > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > # convenience target to rebuild the relx cache file > build-cache: > cd ${WRKDIR} && ${TAR} -c -v -z -f relx-cache-${CACHE_VERSION}${EXTRACT_SUFX} .cache >@@ -68,8 +70,6 @@ post-build: > @${LN} -s ${WRKSRC}/_build/dev/lib/${PORTNAME}/ebin ${WRKSRC} > > do-install: >- @${MKDIR} ${STAGEDIR}${DOCSDIR} >- ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} > @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION} > @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin > @${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/include >@@ -80,6 +80,11 @@ do-install: > ${INSTALL_DATA} ${WRKSRC}/_build/default/lib/relx/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin > cd ${WRKSRC}/priv && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv > ${INSTALL_SCRIPT} ${WRKSRC}/_build/default/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin >+ >+post-install-DOCS-on: >+ @${MKDIR} ${STAGEDIR}${DOCSDIR} >+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} > >diff --git devel/shell-toolbox/Makefile devel/shell-toolbox/Makefile >index 8e67e802c26c..69ff5b9a3a55 100644 >--- devel/shell-toolbox/Makefile >+++ devel/shell-toolbox/Makefile >@@ -16,4 +16,6 @@ GNU_CONFIGURE= yes > USE_GITHUB= yes > GH_ACCOUNT= kusalananda > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git devel/smack/Makefile devel/smack/Makefile >index aa72c2fb7741..6e14293f6c47 100644 >--- devel/smack/Makefile >+++ devel/smack/Makefile >@@ -28,11 +28,11 @@ OPTIONS_DEFINE= EXAMPLES > .include <bsd.port.options.mk> > > .if ${PORT_OPTIONS:MEXAMPLES} >-PLIST_SUB= EXAMPLES="" >+PLIST_SUB+= EXAMPLES="" > CMAKE_ARGS= -DENABLE_EXAMPLES=ON > .else > CMAKE_ARGS= -DENABLE_EXAMPLES=OFF >-PLIST_SUB= EXAMPLES="@comment " >+PLIST_SUB+= EXAMPLES="@comment " > .endif > > .include <bsd.port.mk> >diff --git devel/statcvs/Makefile devel/statcvs/Makefile >index 7a3e74ae9704..00a4445ec6b8 100644 >--- devel/statcvs/Makefile >+++ devel/statcvs/Makefile >@@ -39,9 +39,9 @@ DOCS_ALL_TARGET=javadoc > .include <bsd.port.pre.mk> > > .if ${JAVA_PORT_VERSION} == "1.6.0" >-PLIST_SUB= JDK6="" >+PLIST_SUB+= JDK6="" > .else >-PLIST_SUB= JDK6="@comment " >+PLIST_SUB+= JDK6="@comment " > .endif > > do-install: >diff --git devel/stlink/Makefile devel/stlink/Makefile >index c594d4fc4cab..38c6aa534845 100644 >--- devel/stlink/Makefile >+++ devel/stlink/Makefile >@@ -10,7 +10,7 @@ COMMENT= STM32 ST-Link JTAG variant tools > > LICENSE= BSD3CLAUSE > >-OPTIONS_DEFINE= GTK3 >+OPTIONS_DEFINE= GTK3 DOCS > OPTIONS_SUB= yes > GTK3_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-pacth-turn-off-gtk > GTK3_USE= GNOME=gtk30 >diff --git devel/tcllib/Makefile devel/tcllib/Makefile >index 232b4d59c815..949af80fc39b 100644 >--- devel/tcllib/Makefile >+++ devel/tcllib/Makefile >@@ -23,7 +23,10 @@ GNU_CONFIGURE= yes > CONFIGURE_ENV+= ac_cv_path_tclsh="${TCLSH}" > TEST_TARGET= test > TEST_ENV= ${MAKE_ENV} DISPLAY= TZ=utc >+ >+.if ${OPTIONS_DEFINE:MDOCS} > PORTDOCS= * >+.endif > > INSTALL_ARGS= -pkgs -pkg-path ${STAGEDIR}${PREFIX}/lib/tcllib \ > -apps -app-path ${STAGEDIR}${PREFIX}/bin \ >diff --git devel/zookeeper/Makefile devel/zookeeper/Makefile >index beb7aefd50e4..aa9ba1745cce 100644 >--- devel/zookeeper/Makefile >+++ devel/zookeeper/Makefile >@@ -48,6 +48,8 @@ USE_RC_SUBR= zookeeper > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${REINPLACE_CMD} "/dataDir/s|=.*|=${ZOOKEEPER_DBDIR}|" ${WRKDIR}/${DISTNAME}/conf/zoo_sample.cfg > @${MV} ${WRKDIR}/${DISTNAME}/conf/zoo_sample.cfg ${WRKDIR}/${DISTNAME}/conf/zoo.cfg >diff --git dns/bind9-devel/Makefile dns/bind9-devel/Makefile >index 1332eb147972..1e54416733e2 100644 >--- dns/bind9-devel/Makefile >+++ dns/bind9-devel/Makefile >@@ -75,12 +75,12 @@ CONFLICTS+= bind9-devel > USE_RC_SUBR= named > SUB_FILES= pkg-message named.conf > CONFLICTS+= bind-tools >+ >+PORTDOCS= * > .endif # BIND_TOOLS_SLAVE > > MAKE_JOBS_UNSAFE= yes > >-PORTDOCS= * >- > OPTIONS_DEFAULT= SIGCHASE IDN GSSAPI_NONE JSON PYTHON > OPTIONS_DEFINE= IDN LARGE_FILE PYTHON JSON \ > FIXED_RRSET SIGCHASE IPV6 >diff --git dns/bind912/Makefile dns/bind912/Makefile >index 9cc1b3398648..9b6ca46c9973 100644 >--- dns/bind912/Makefile >+++ dns/bind912/Makefile >@@ -62,12 +62,12 @@ CONFLICTS+= bind912 > USE_RC_SUBR= named > SUB_FILES= pkg-message named.conf > CONFLICTS+= bind-tools >+ >+PORTDOCS= * > .endif # BIND_TOOLS_SLAVE > > MAKE_JOBS_UNSAFE= yes > >-PORTDOCS= * >- > OPTIONS_DEFAULT= SSL THREADS SIGCHASE IDN GSSAPI_NONE JSON PYTHON > OPTIONS_DEFINE= IDN LARGE_FILE PYTHON JSON \ > FIXED_RRSET SIGCHASE IPV6 THREADS >diff --git dns/bind913/Makefile dns/bind913/Makefile >index b5643bf851f8..019080051fe3 100644 >--- dns/bind913/Makefile >+++ dns/bind913/Makefile >@@ -61,12 +61,12 @@ CONFLICTS+= bind913 > USE_RC_SUBR= named > SUB_FILES= pkg-message named.conf > CONFLICTS+= bind-tools >+ >+PORTDOCS= * > .endif # BIND_TOOLS_SLAVE > > MAKE_JOBS_UNSAFE= yes > >-PORTDOCS= * >- > OPTIONS_DEFAULT= THREADS SIGCHASE IDN GSSAPI_NONE JSON PYTHON > OPTIONS_DEFINE= IDN LARGE_FILE PYTHON JSON \ > FIXED_RRSET SIGCHASE IPV6 THREADS >diff --git dns/ddclient/Makefile dns/ddclient/Makefile >index 246c11254833..461efaa039b2 100644 >--- dns/ddclient/Makefile >+++ dns/ddclient/Makefile >@@ -23,7 +23,7 @@ NO_ARCH= yes > NO_BUILD= yes > SUB_FILES= pkg-message ddclient_force > >-OPTIONS_DEFINE= SSL >+OPTIONS_DEFINE= SSL DOCS > OPTIONS_DEFAULT=SSL > > SSL_RUN_DEPENDS=ca_root_nss>0:security/ca_root_nss \ >diff --git dns/drool/Makefile dns/drool/Makefile >index caeb5a3fda3e..484969574729 100644 >--- dns/drool/Makefile >+++ dns/drool/Makefile >@@ -20,4 +20,6 @@ USE_LDCONFIG= yes > CPPFLAGS+= $$(pkg-config libev --cflags-only-I) > LDFLAGS+= $$(pkg-config libev --libs-only-L) > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git dns/dsc/Makefile dns/dsc/Makefile >index 47c897dcecd4..892270afe4cf 100644 >--- dns/dsc/Makefile >+++ dns/dsc/Makefile >@@ -27,4 +27,6 @@ SUB_FILES= pkg-message > > USE_RC_SUBR= dsc > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git dns/dsp/Makefile dns/dsp/Makefile >index 7439bf6a0e0a..6b768572c9c7 100644 >--- dns/dsp/Makefile >+++ dns/dsp/Makefile >@@ -28,4 +28,6 @@ USES= gmake perl5 > PERL5= configure patch shebangfix > NO_ARCH= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git dns/erlang-idna/Makefile dns/erlang-idna/Makefile >index 045c696c2288..2d420801e3b1 100644 >--- dns/erlang-idna/Makefile >+++ dns/erlang-idna/Makefile >@@ -18,4 +18,6 @@ GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME} > ERL_BUILD_DEPS= devel/erlang-unicode_util_compat > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git dns/ironsides/Makefile dns/ironsides/Makefile >index 758185ca6469..e3010db602a0 100644 >--- dns/ironsides/Makefile >+++ dns/ironsides/Makefile >@@ -25,6 +25,8 @@ WRKSRC= ${WRKDIR}/${DISTFILES:S/.zip//} > PLIST_FILES= sbin/ironsides man/man1/ironsides.1.gz > PORTEXAMPLES= dfcs.usafa.edu.zonefile > >+OPTIONS_DEFINE= EXAMPLES >+ > post-extract: > @${CP} ${FILESDIR}/ironsides.gpr ${FILESDIR}/Makefile ${WRKSRC}/ > >diff --git dns/knot-resolver/Makefile dns/knot-resolver/Makefile >index 37052d4c2c96..28e51a308167 100644 >--- dns/knot-resolver/Makefile >+++ dns/knot-resolver/Makefile >@@ -33,7 +33,7 @@ USES= gmake libedit libtool ncurses pkgconfig shebangfix tar:xz > SHEBANG_FILES= scripts/coverage_env.sh > USE_LDCONFIG= yes > >-OPTIONS_DEFINE= COOKIES DNSTAP DOXYGEN GO TRUSTANCHOR >+OPTIONS_DEFINE= DOCS COOKIES DNSTAP DOXYGEN GO TRUSTANCHOR > > COOKIES_DESC= cookies > COOKIES_LIB_DEPENDS= libnettle.so:security/nettle >@@ -55,6 +55,7 @@ DNSTAP_MAKE_ARGS_ON= HAS_libprotobuf-c=yes HAS_libfstrm=yes > DNSTAP_MAKE_ARGS_OFF= HAS_libprotobuf-c=no HAS_libfstrm=no > DNSTAP_PLIST_FILES= lib/kdns_modules/dnstap.so > >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_MAKE_ARGS_ON= HAS_doxygen=yes > DOXYGEN_MAKE_ARGS_OFF= HAS_doxygen=no >diff --git dns/knot1/Makefile dns/knot1/Makefile >index ff5a6e5c4476..ec5f9c5a4f74 100644 >--- dns/knot1/Makefile >+++ dns/knot1/Makefile >@@ -39,7 +39,7 @@ SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}" > > PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS > >-OPTIONS_DEFINE= DNSTAP IDN LMDB >+OPTIONS_DEFINE= DNSTAP IDN LMDB DOCS > > DNSTAP_DESC= dnstap support (see dnstap.info) > LMDB_DESC= Enable LMDB backend >diff --git dns/knot2/Makefile dns/knot2/Makefile >index 34edfd04bf12..4600f4eacc0a 100644 >--- dns/knot2/Makefile >+++ dns/knot2/Makefile >@@ -40,7 +40,7 @@ SUB_LIST+= USERS="${USERS}" GROUPS="${GROUPS}" > > PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS > >-OPTIONS_DEFINE= DNSTAP FASTPARSER IDN >+OPTIONS_DEFINE= DNSTAP FASTPARSER IDN DOCS > > DNSTAP_DESC= dnstap support (see dnstap.info) > DNSTAP_CONFIGURE_ENABLE= dnstap >diff --git dns/linux-c6-libasyncns/Makefile dns/linux-c6-libasyncns/Makefile >index 2d81b9e74b6c..0300692aedc2 100644 >--- dns/linux-c6-libasyncns/Makefile >+++ dns/linux-c6-libasyncns/Makefile >@@ -14,4 +14,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git dns/linux-c7-libasyncns/Makefile dns/linux-c7-libasyncns/Makefile >index 27e9adf0a6b3..59b6362e6d8a 100644 >--- dns/linux-c7-libasyncns/Makefile >+++ dns/linux-c7-libasyncns/Makefile >@@ -18,4 +18,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git dns/powerdns/Makefile dns/powerdns/Makefile >index 21fc15ea4d2b..7076e44b7798 100644 >--- dns/powerdns/Makefile >+++ dns/powerdns/Makefile >@@ -39,7 +39,7 @@ SUB_FILES= pkg-message > > USE_RC_SUBR= pdns > >-OPTIONS_DEFINE= GEOIP LUAJIT MYDNS MYSQL OPENDBX OPENLDAP OPTALGO PGSQL PROTOBUF REMOTE SQLITE3 TINYDNS TOOLS UNIXODBC >+OPTIONS_DEFINE= DOCS EXAMPLES GEOIP LUAJIT MYDNS MYSQL OPENDBX OPENLDAP OPTALGO PGSQL PROTOBUF REMOTE SQLITE3 TINYDNS TOOLS UNIXODBC > OPTIONS_GROUP= EXPERIMENTAL REMOTEOPT > OPTIONS_GROUP_EXPERIMENTAL= LUABACKEND > OPTIONS_GROUP_REMOTEOPT= ZEROMQ >diff --git dns/py-namebench/Makefile dns/py-namebench/Makefile >index bc1ad71b096d..3f6443693991 100644 >--- dns/py-namebench/Makefile >+++ dns/py-namebench/Makefile >@@ -38,6 +38,8 @@ USE_PYTHON= distutils autoplist > > PYDISTUTILS_INSTALLARGS+= --install-data=${PREFIX}/share > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \ > ${WRKSRC}/libnamebench/util.py >diff --git dns/void-zones-tools/Makefile dns/void-zones-tools/Makefile >index 058712575ef7..cdf9afd49d5a 100644 >--- dns/void-zones-tools/Makefile >+++ dns/void-zones-tools/Makefile >@@ -18,6 +18,8 @@ GH_ACCOUNT= cyclaero > > SUB_FILES= pkg-message > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/hosts2zones ${STAGEDIR}${PREFIX}/bin > ${MKDIR} ${STAGEDIR}${PREFIX}/etc/void-zones >diff --git editors/kile/Makefile editors/kile/Makefile >index c44745d13663..578b9fdb517d 100644 >--- editors/kile/Makefile >+++ editors/kile/Makefile >@@ -30,4 +30,6 @@ GH_ACCOUNT= kde > > CONFLICTS_INSTALL= kile-kde4 > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git editors/leafpad/Makefile editors/leafpad/Makefile >index f3f5b11ae631..2b01743572d6 100644 >--- editors/leafpad/Makefile >+++ editors/leafpad/Makefile >@@ -22,6 +22,8 @@ LDFLAGS+= -lpthread -L${LOCALBASE}/lib > > PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${CHMOD} a+x ${WRKSRC}/install-sh > >diff --git editors/micro/Makefile editors/micro/Makefile >index 6c8a9a7fd183..e839fa38ead7 100644 >--- editors/micro/Makefile >+++ editors/micro/Makefile >@@ -48,6 +48,8 @@ BUILD_DATE= August 9, 2018 > PLIST_FILES= bin/micro > PORTDOCS= README.md > >+OPTIONS_DEFINE= DOCS >+ > do-build: > @(cd ${WRKSRC} ; \ > ${SETENV} ${MAKE_ENV} CGO_ENABLED=0 GOPATH=${WRKSRC} go build -ldflags \ >diff --git editors/pluma/Makefile editors/pluma/Makefile >index f32d8fb42a8c..5d795a24e0d3 100644 >--- editors/pluma/Makefile >+++ editors/pluma/Makefile >@@ -39,4 +39,6 @@ GLIB_SCHEMAS= org.mate.pluma.gschema.xml \ > org.mate.pluma.plugins.spell.gschema.xml \ > org.mate.pluma.plugins.time.gschema.xml > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git editors/the/Makefile editors/the/Makefile >index 93cde8bca85f..5d555bc52345 100644 >--- editors/the/Makefile >+++ editors/the/Makefile >@@ -21,7 +21,7 @@ CONFIGURE_ARGS= --with-rexxincdir=${LOCALBASE}/include \ > ALL_TARGET= all html > CPPFLAGS+= -I${LOCALBASE}/include > >-OPTIONS_DEFINE= XAW3D >+OPTIONS_DEFINE= DOCS XAW3D > OPTIONS_SINGLE= Display Rexx > OPTIONS_SINGLE_Display= NCURSES XCURSES > OPTIONS_SINGLE_Rexx= REXX_IMC REGINA >diff --git editors/the/pkg-plist editors/the/pkg-plist >index 3109b56ec9f4..2a13a37300d9 100644 >--- editors/the/pkg-plist >+++ editors/the/pkg-plist >@@ -2,7 +2,6 @@ > bin/the > %%XCURSES%%bin/xthe > man/man1/the.1.gz >-@dir %%DATADIR%% > %%DATADIR%%/THE_Help.txt > %%DATADIR%%/abf.tld > %%DATADIR%%/append.the >@@ -48,7 +47,6 @@ man/man1/the.1.gz > %%DATADIR%%/udiff.tld > %%DATADIR%%/uncomm.the > %%DATADIR%%/words.the >-@dir %%PORTDOCS%%%%DOCSDIR%% > %%PORTDOCS%%%%DOCSDIR%%/app1.html > %%PORTDOCS%%%%DOCSDIR%%/app2.html > %%PORTDOCS%%%%DOCSDIR%%/app3.html >diff --git emulators/advancemess/Makefile emulators/advancemess/Makefile >index 40f31f3d6e58..f3371ec16c33 100644 >--- emulators/advancemess/Makefile >+++ emulators/advancemess/Makefile >@@ -32,7 +32,7 @@ PLIST_FILES= bin/advmess \ > > MAKE_JOBS_UNSAFE= yes > >-OPTIONS_DEFINE= FREETYPE SLANG >+OPTIONS_DEFINE= FREETYPE SLANG DOCS > OPTIONS_DEFINE_i386= ASM > OPTIONS_DEFAULT= FREETYPE > OPTIONS_DEFAULT_i386= ASM >diff --git emulators/aqemu/Makefile emulators/aqemu/Makefile >index d5a1a2707ff3..66d1826dd0b7 100644 >--- emulators/aqemu/Makefile >+++ emulators/aqemu/Makefile >@@ -20,4 +20,6 @@ USE_QT= buildtools_build linguisttools_build qmake_build \ > USE_GITHUB= yes > GH_ACCOUNT= tobimensch > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git emulators/dosbox/Makefile emulators/dosbox/Makefile >index 2918139bd924..9f5056d9461c 100644 >--- emulators/dosbox/Makefile >+++ emulators/dosbox/Makefile >@@ -27,6 +27,7 @@ DESKTOP_ENTRIES="DOSBox" "${COMMENT}" \ > "${PREFIX}/share/pixmaps/dosbox.ico" "dosbox" \ > "System;Emulator;" "true" > >+OPTIONS_DEFINE= DOCS > OPTIONS_RADIO= DEBUGGER > OPTIONS_RADIO_DEBUGGER=DEBUGGER_ENABLE DEBUGGER_HEAVY > DEBUGGER_ENABLE_DESC=Enable internal debugger >diff --git emulators/dynagen/Makefile emulators/dynagen/Makefile >index 313b1059bbfd..659ccc6809d7 100644 >--- emulators/dynagen/Makefile >+++ emulators/dynagen/Makefile >@@ -28,6 +28,8 @@ USE_PYTHON= distutils autoplist > ALL_TARGET= # empty > NO_ARCH= yes > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > .include <bsd.port.pre.mk> > > post-extract: >diff --git emulators/fs-uae-launcher/Makefile emulators/fs-uae-launcher/Makefile >index db12a82c30b9..cc7df9f1ea97 100644 >--- emulators/fs-uae-launcher/Makefile >+++ emulators/fs-uae-launcher/Makefile >@@ -16,6 +16,8 @@ USES= gettext gmake pathfix python:2.7 shebangfix > INSTALLS_ICONS= yes > MAKE_ARGS= DESTDIR=${STAGEDIR} prefix=${PREFIX} > >+OPTIONS_DEFINE= DOCS >+ > do-build: > (cd ${WRKSRC} && ${PYTHON_CMD} setup.py build) > (cd ${WRKSRC} && ${PYTHON_CMD} \ >diff --git emulators/fuse-utils/Makefile emulators/fuse-utils/Makefile >index 25728c64cda2..a34c08aec7c0 100644 >--- emulators/fuse-utils/Makefile >+++ emulators/fuse-utils/Makefile >@@ -24,6 +24,8 @@ GNU_CONFIGURE= yes > CONFIGURE_ARGS= --with-libspectrum-prefix=${LOCALBASE} \ > --with-local-prefix=${LOCALBASE} > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README ${STAGEDIR}${DOCSDIR} >diff --git emulators/fuse/Makefile emulators/fuse/Makefile >index 83b8185ffe2d..dff6e75c08e4 100644 >--- emulators/fuse/Makefile >+++ emulators/fuse/Makefile >@@ -24,7 +24,7 @@ USE_XORG= x11 > > CONFIGURE_ARGS+=--without-alsa --without-joystick > >-OPTIONS_DEFINE= AO ICONS ROMS >+OPTIONS_DEFINE= AO ICONS ROMS DOCS > OPTIONS_DEFAULT= ICONS GTK2 > OPTIONS_SINGLE= UI > UI_DESC= User Interface >diff --git emulators/libspectrum/Makefile emulators/libspectrum/Makefile >index 2557c50c8189..ab2abdda37eb 100644 >--- emulators/libspectrum/Makefile >+++ emulators/libspectrum/Makefile >@@ -21,7 +21,9 @@ USE_LDCONFIG= yes > > INSTALL_TARGET= install-strip > >-post-install: >+OPTIONS_DEFINE= DOCS >+ >+post-install-DOCS-on: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS ChangeLog README THANKS \ > doc/libspectrum.txt ${STAGEDIR}${DOCSDIR} >diff --git emulators/mame/Makefile emulators/mame/Makefile >index 84a97a673120..1bcf8c1d021d 100644 >--- emulators/mame/Makefile >+++ emulators/mame/Makefile >@@ -62,7 +62,7 @@ EMULATOR= ${MSUBTARGET}64 > .else > EMULATOR= ${MSUBTARGET} > .endif >-PLIST_SUB= EMULATOR=${EMULATOR} >+PLIST_SUB+= EMULATOR=${EMULATOR} > > post-patch: > @${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/dirent.h >diff --git emulators/mgba/Makefile emulators/mgba/Makefile >index d9131c029aec..3021b1a8f24e 100644 >--- emulators/mgba/Makefile >+++ emulators/mgba/Makefile >@@ -39,7 +39,7 @@ CMAKE_ARGS= -DCMAKE_INSTALL_DOCDIR:STRING="${DOCSDIR}" \ > -DBUILD_GLES2:BOOL=OFF > LDFLAGS+= -Wl,--as-needed # glu > >-OPTIONS_DEFINE= DEBUGGERS FFMPEG MAGICK QT5 >+OPTIONS_DEFINE= DEBUGGERS FFMPEG MAGICK QT5 DOCS > OPTIONS_DEFAULT= DEBUGGERS FFMPEG MAGICK QT5 > OPTIONS_SUB= yes > >diff --git emulators/mtools/Makefile emulators/mtools/Makefile >index f4d4c2673136..a9bd61c457ce 100644 >--- emulators/mtools/Makefile >+++ emulators/mtools/Makefile >@@ -38,10 +38,10 @@ CONFIGURE_ENV+= ac_cv_header_iconv_h=no > > .if ${PORT_OPTIONS:MX11} > USE_XORG= x11 sm ice xau >-PLIST_SUB= X11="" >+PLIST_SUB+= X11="" > .else > CONFIGURE_ARGS+= --without-x >-PLIST_SUB= X11="@comment " >+PLIST_SUB+= X11="@comment " > MAKE_ENV+= WITHOUT_X11=yes > .endif > >diff --git emulators/mupen64plus-core/Makefile emulators/mupen64plus-core/Makefile >index e6aba62f2a4b..58ae1a4b2a95 100644 >--- emulators/mupen64plus-core/Makefile >+++ emulators/mupen64plus-core/Makefile >@@ -24,5 +24,7 @@ OPTFLAGS= # > > MAKE_ENV+= OPTFLAGS="${OPTFLAGS}" > >+OPTIONS_DEFINE= DOCS >+ > .include "${.CURDIR}/../mupen64plus-core/Makefile.common" > .include <bsd.port.mk> >diff --git emulators/nestopia/Makefile emulators/nestopia/Makefile >index f8f3951c5628..630c85814018 100644 >--- emulators/nestopia/Makefile >+++ emulators/nestopia/Makefile >@@ -24,4 +24,6 @@ USE_GNOME= cairo gdkpixbuf2 gtk30 > USE_SDL= sdl2 > INSTALLS_ICONS= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git emulators/pcsxr/Makefile emulators/pcsxr/Makefile >index 74b4ece0fcfe..b96c8c06c65f 100644 >--- emulators/pcsxr/Makefile >+++ emulators/pcsxr/Makefile >@@ -51,7 +51,7 @@ DEFAULT_DVD_DEVICE?= /dev/cd0 > > # XXX Gettext support is mandatory and cannot really be disabled. > # The following option only enables/disables building *additional* translations >-OPTIONS_DEFINE= NLS >+OPTIONS_DEFINE= NLS DOCS > OPTIONS_SUB= yes > NLS_DESC= Build additional NLS translations > NLS_CMAKE_ON= -DDISABLE_NLS_TRANSLATIONS:BOOL=OFF >diff --git emulators/qemu-cheri/Makefile emulators/qemu-cheri/Makefile >index 41e2d3c4dca9..4766b8eb6fb1 100644 >--- emulators/qemu-cheri/Makefile >+++ emulators/qemu-cheri/Makefile >@@ -28,6 +28,8 @@ USE_GNOME+= glib20 > ONLY_FOR_ARCHS= amd64 i386 powerpc powerpc64 > BROKEN_FreeBSD_10= Default toolchain lacks support for .cfi_sections > >+OPTIONS_DEFINE= DOCS >+ > .include "Makefile.snapshot" > > CONFIGURE_ARGS+= \ >diff --git ftp/bftpd/Makefile ftp/bftpd/Makefile >index c6da68054c40..3ae44115a5f5 100644 >--- ftp/bftpd/Makefile >+++ ftp/bftpd/Makefile >@@ -21,6 +21,8 @@ PLIST_FILES= sbin/${PORTNAME} etc/${PORTNAME}.conf.sample \ > man/man8/bftpd.8.gz > PORTDOCS= en pl sk > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's,/etc/bftpd.conf,${PREFIX}/etc/bftpd.conf,' \ > ${WRKSRC}/mypaths.h >diff --git ftp/linux-c6-curl/Makefile ftp/linux-c6-curl/Makefile >index 276db55eb1c5..1843a06adb00 100644 >--- ftp/linux-c6-curl/Makefile >+++ ftp/linux-c6-curl/Makefile >@@ -17,4 +17,6 @@ USE_LDCONFIG= yes > USE_LINUX= libssh2 nspr nss openldap > USE_LINUX_RPM= nolib > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git ftp/linux-c7-curl/Makefile ftp/linux-c7-curl/Makefile >index 4766e90fc595..94559a90cea6 100644 >--- ftp/linux-c7-curl/Makefile >+++ ftp/linux-c7-curl/Makefile >@@ -21,4 +21,6 @@ USE_LDCONFIG= yes > USE_LINUX= libssh2 nspr nss openldap > USE_LINUX_RPM= nolib > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git ftp/py-pyftpdlib/Makefile ftp/py-pyftpdlib/Makefile >index 25a17b3235c1..12404ad601d0 100644 >--- ftp/py-pyftpdlib/Makefile >+++ ftp/py-pyftpdlib/Makefile >@@ -16,7 +16,7 @@ USE_PYTHON= autoplist distutils > SHEBANG_FILES= demo/*.py > NO_ARCH= yes > >-OPTIONS_DEFINE= SENDFILE OPENSSL >+OPTIONS_DEFINE= SENDFILE OPENSSL EXAMPLES > OPTIONS_DEFAULT= SENDFILE OPENSSL > SENDFILE_DESC= Enable sendfile(2) support > OPENSSL_DESC= Enable FTP over SSL/TLS (RFC4217) >diff --git games/afternoonstalker/Makefile games/afternoonstalker/Makefile >index 8878c6bb921c..a6430256d3ba 100644 >--- games/afternoonstalker/Makefile >+++ games/afternoonstalker/Makefile >@@ -24,6 +24,8 @@ LDFLAGS+= -L${LOCALBASE}/lib > > PORTDOCS= AUTHORS COPYING INSTALL NEWS README THANKS TODO > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|^pkgsounddir =.*|pkgsounddir = ${DATADIR}/sounds|' \ > ${WRKSRC}/src/Makefile.in >diff --git games/aop/Makefile games/aop/Makefile >index 3ee6035bfd6a..ab7cf0eafe3b 100644 >--- games/aop/Makefile >+++ games/aop/Makefile >@@ -22,6 +22,8 @@ ALL_TARGET= #empty > > PORTDOCS= README > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|/usr/local|${STAGEDIR}${PREFIX}|g' \ > ${WRKSRC}/Makefile >diff --git games/battletanks/Makefile games/battletanks/Makefile >index a06516280915..a3d9f28c61bd 100644 >--- games/battletanks/Makefile >+++ games/battletanks/Makefile >@@ -32,6 +32,8 @@ PORTDOCS= LICENSE LICENSE.EXCEPTION README-en.txt README-linux.txt \ > > DESKTOP_ENTRIES="Battle Tanks" "" "" "${PORTNAME}" "Game;ArcadeGame;" "" > >+OPTIONS_DEFINE= DOCS >+ > pre-build: > # Regenerate `sl08.h' after we patch `sl08.py' (as patching the header itself > # would have resulted in a larger diff and gratuitous difference with Debian) >diff --git games/beret/Makefile games/beret/Makefile >index ce4b907739d6..6800c7f9a1e2 100644 >--- games/beret/Makefile >+++ games/beret/Makefile >@@ -31,6 +31,8 @@ PORTDOCS= README.txt > FONT_DEP= AveriaSansGWF-Regular.ttf > FONTDIR_DEP= ${LOCALBASE}/share/fonts/averiagwf > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/game.c > >diff --git games/burgerspace/Makefile games/burgerspace/Makefile >index 617063b5dbbb..08a9d11b2358 100644 >--- games/burgerspace/Makefile >+++ games/burgerspace/Makefile >@@ -24,6 +24,8 @@ LDFLAGS+= -L${LOCALBASE}/lib > > PORTDOCS= AUTHORS COPYING INSTALL NEWS README THANKS TODO > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|^pkgsounddir =.*|pkgsounddir = ${DATADIR}/sounds|' \ > ${WRKSRC}/src/Makefile.in >diff --git games/capitalism/Makefile games/capitalism/Makefile >index 11e62004f8b8..73446e54f511 100644 >--- games/capitalism/Makefile >+++ games/capitalism/Makefile >@@ -36,7 +36,7 @@ ICON_SIZES= 16x16 22x22 24x24 32x32 48x48 64x64 > DESKTOP_ENTRIES="Capitalism" "" "${PORTNAME}" \ > "${PORTNAME}" "Game;BoardGame;" "" > >-OPTIONS_DEFINE= NLS >+OPTIONS_DEFINE= NLS DOCS > OPTIONS_SUB= yes > > NLS_CONFIGURE_ENABLE= nls >diff --git games/connectfive/Makefile games/connectfive/Makefile >index 981a6571bebe..217287625cf5 100644 >--- games/connectfive/Makefile >+++ games/connectfive/Makefile >@@ -28,7 +28,7 @@ PLIST_FILES= bin/${PORTNAME} > PORTDOCS= * > PORTDATA= * > >-.include <bsd.port.options.mk> >+OPTIONS_DEFINE= DOCS > > post-patch: > @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile.linux >diff --git games/evilfinder/Makefile games/evilfinder/Makefile >index ce922b55c5ab..a749fd74512f 100644 >--- games/evilfinder/Makefile >+++ games/evilfinder/Makefile >@@ -25,7 +25,7 @@ PLIST_FILES= bin/ef \ > PORTDATA= evilnumbers.dat > PORTDOCS= README > >-OPTIONS_DEFINE= WRAPPER >+OPTIONS_DEFINE= DOCS WRAPPER > WRAPPER_DESC= Evilfinder local wrapper > OPTIONS_DEFAULT= WRAPPER > >diff --git games/formido/Makefile games/formido/Makefile >index 6400c0df56a3..2dc16bc24310 100644 >--- games/formido/Makefile >+++ games/formido/Makefile >@@ -23,6 +23,8 @@ PLIST_FILES= bin/${PORTNAME} > PORTDATA= * > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > pre-build: > @${MKDIR} ${WRKSRC}/obj > >diff --git games/freeblocks/Makefile games/freeblocks/Makefile >index a2c6e8aeb6ad..0cfb67f9aad7 100644 >--- games/freeblocks/Makefile >+++ games/freeblocks/Makefile >@@ -21,7 +21,7 @@ USE_SDL= sdl mixer image ttf > > PORTDOCS= * > >-OPTIONS_DEFINE= HALF_GFX >+OPTIONS_DEFINE= HALF_GFX DOCS > HALF_GFX_DESC= Use 320x240 graphics > HALF_GFX_CMAKE_ON= -DHALF_GFX=ON > >diff --git games/freedroidrpg/Makefile games/freedroidrpg/Makefile >index b083bbae54b5..553e94aeeead 100644 >--- games/freedroidrpg/Makefile >+++ games/freedroidrpg/Makefile >@@ -30,7 +30,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} > PORTDATA= * > PORTDOCS= * > >-OPTIONS_DEFINE= NLS BACKTRACE OPENGL SOUND >+OPTIONS_DEFINE= NLS BACKTRACE OPENGL SOUND DOCS > OPTIONS_DEFAULT=BACKTRACE OPENGL SOUND > OPTIONS_SUB= yes > >diff --git games/garith/Makefile games/garith/Makefile >index e7d8db58af30..279d4fe00f7c 100644 >--- games/garith/Makefile >+++ games/garith/Makefile >@@ -18,6 +18,8 @@ LDFLAGS+= `${GTK_CONFIG} --libs` > PORTDOCS= BUGS HISTORY README TODO > PLIST_FILES= bin/garith > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|gldouble|double|;/gnome/d;/all.*apps/d'\ > ${WRKSRC}/garith.c >diff --git games/goldencheetah/Makefile games/goldencheetah/Makefile >index 9592cc801077..49eceb4bf166 100644 >--- games/goldencheetah/Makefile >+++ games/goldencheetah/Makefile >@@ -33,6 +33,8 @@ USE_QT= corelib gui linguist moc_build network opengl \ > qmake rcc script sql svg uic webkit xml > INFO= GC3-FAQ GC3-Release GC31-Release > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > ${CP} ${WRKSRC}/src/gcconfig.pri.in ${WRKSRC}/src/gcconfig.pri > ${CP} ${WRKSRC}/qwt/qwtconfig.pri.in ${WRKSRC}/qwt/qwtconfig.pri >diff --git games/impossible_mission_puzzle/Makefile games/impossible_mission_puzzle/Makefile >index 5da6550aa90b..f87b737cbe93 100644 >--- games/impossible_mission_puzzle/Makefile >+++ games/impossible_mission_puzzle/Makefile >@@ -29,6 +29,8 @@ PORTDOCS= README > DESKTOP_ENTRIES="Impossible Mission puzzle" "" "${PORTNAME}" \ > "${PORTNAME}" "Game;ArcadeGame;" "" > >+OPTIONS_DEFINE= DOCS >+ > do-build: > @cd ${WRKSRC} && ${CC} -o ${PORTNAME} ${CFLAGS} \ > `${SDL_CONFIG} --cflags --libs` puzzle.c >diff --git games/jchessboard/Makefile games/jchessboard/Makefile >index ad868a012bd9..48358d06ac11 100644 >--- games/jchessboard/Makefile >+++ games/jchessboard/Makefile >@@ -31,6 +31,8 @@ PORTDOCS= * > > JARFILE= JChessBoard.jar > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin > @${MKDIR} ${STAGEDIR}${DATADIR} >diff --git games/jfsw/Makefile games/jfsw/Makefile >index 2bfcf2dbaf1e..bb810d22766e 100644 >--- games/jfsw/Makefile >+++ games/jfsw/Makefile >@@ -43,6 +43,8 @@ SUB_FILES= pkg-message > > PORTDOCS= readme.txt releasenotes.html > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's|/usr/X11R6|${LOCALBASE}|' \ > ${WRKSRC}/jfbuild/Makefile >diff --git games/joequake/Makefile games/joequake/Makefile >index 2227ce259d94..f919edc42f86 100644 >--- games/joequake/Makefile >+++ games/joequake/Makefile >@@ -27,7 +27,7 @@ MAKEFILE= Makefile.linux > > OPTIONS_MULTI= UI > OPTIONS_MULTI_UI= OPENGL X11 >-OPTIONS_DEFINE= HUD HUD_SA OPTIMIZED_CFLAGS X86_ASM >+OPTIONS_DEFINE= HUD HUD_SA OPTIMIZED_CFLAGS X86_ASM DOCS > OPTIONS_DEFAULT= OPENGL OPTIMIZED_CFLAGS X11 > OPTIONS_DEFAULT_amd64= X86_ASM > HUD_DESC= High quality HUD images (for OpenGL) >diff --git games/mangband/Makefile games/mangband/Makefile >index 8462dab33933..d7c08ae5875c 100644 >--- games/mangband/Makefile >+++ games/mangband/Makefile >@@ -19,7 +19,7 @@ DOS2UNIXFILES= ${WRKSRC}/client/main-sdl.c > > MAKE_ARGS= "DATADIR=${DATADIR}" > >-OPTIONS_DEFINE= GCU X11 SDL >+OPTIONS_DEFINE= GCU X11 SDL EXAMPLES > OPTIONS_DEFAULT= GCU X11 SDL > GCU_DESC= Display module GCU (curses) > X11_DESC= Display module X11 >diff --git games/mirrormagic/Makefile games/mirrormagic/Makefile >index c247fb56b42a..84f63d622179 100644 >--- games/mirrormagic/Makefile >+++ games/mirrormagic/Makefile >@@ -29,7 +29,7 @@ DESKTOP_ENTRIES="Mirror Magic" \ > "Game;LogicGame;" \ > "" > >-OPTIONS_DEFINE= SDL >+OPTIONS_DEFINE= SDL DOCS > OPTIONS_DEFAULT=SDL > > SDL_USE= SDL=image,mixer,sdl >diff --git games/netpanzer/Makefile games/netpanzer/Makefile >index 4d4e912cb0e0..f6d6d7cac85e 100644 >--- games/netpanzer/Makefile >+++ games/netpanzer/Makefile >@@ -28,6 +28,8 @@ PLIST_FILES= bin/netpanzer \ > PORTDOCS= * > PORTDATA= * > >+OPTIONS_DEFINE= DOCS >+ > post-configure: > ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/SConstruct > >diff --git games/ninix-aya/Makefile games/ninix-aya/Makefile >index e60dc08d20b2..7ef2d94215f0 100644 >--- games/ninix-aya/Makefile >+++ games/ninix-aya/Makefile >@@ -24,4 +24,6 @@ PORTDOCS= COPYING ChangeLog README README.ninix SAORI > USES= gettext tar:tgz > USE_RUBY= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git games/openalchemist/Makefile games/openalchemist/Makefile >index 6c8ef6a34785..cc69a2efa5ec 100644 >--- games/openalchemist/Makefile >+++ games/openalchemist/Makefile >@@ -33,6 +33,8 @@ USE_SDL= sdl gfx > > PORTDOCS= AUTHORS ChangeLog README TODO > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -E -e 's|0.8|1.0|g' -e 's|^%|#|g' ${WRKSRC}/configure.ac > @${REINPLACE_CMD} -E -e 's|0.8|1.0|g' ${WRKSRC}/build/Makefile.am >diff --git games/openbor/Makefile games/openbor/Makefile >index a72a5a0cdcf2..c2d9ac0f329c 100644 >--- games/openbor/Makefile >+++ games/openbor/Makefile >@@ -63,7 +63,7 @@ DESKTOP_ENTRIES="OpenBOR v3.0 Build ${PORTVERSION}" \ > "Game;ArcadeGame;" \ > "" > >-OPTIONS_DEFINE= TREMOR >+OPTIONS_DEFINE= TREMOR DOCS > OPTIONS_DEFAULT= ${MACHINE_CPU:Msoftfp:C/.+/TREMOR/} > OPTIONS_DEFINE_i386= MMX > OPTIONS_DEFAULT_i386= MMX # runtime detection >diff --git games/openttd/Makefile games/openttd/Makefile >index eabd930f9467..401287fe3220 100644 >--- games/openttd/Makefile >+++ games/openttd/Makefile >@@ -42,6 +42,8 @@ PORTDOCS= HOWTO_compile_lang_files.txt admin_network.txt \ > DESKTOP_ENTRIES="OpenTTD" "${COMMENT}" "${PORTNAME}" "${PORTNAME}" \ > "Game;Simulation;StrategyGame;" false > >+OPTIONS_DEFINE= DOCS >+ > .if defined(WITH_MIDI_PLAYER) > CONFIGURE_ARGS+= --with-midi="${WITH_MIDI_PLAYER}" > .endif >diff --git games/palomino/Makefile games/palomino/Makefile >index beb071bd89d7..446ccac79237 100644 >--- games/palomino/Makefile >+++ games/palomino/Makefile >@@ -35,7 +35,7 @@ PORTDOCS= * > DESKTOP_ENTRIES= "Palomino" "" "${PORTNAME}" \ > "${PORTNAME}" "Game;ArcadeGame;" "" > >-OPTIONS_DEFINE= GUI PLIB SDL >+OPTIONS_DEFINE= DOCS GUI PLIB SDL > OPTIONS_DEFAULT=GUI SDL > OPTIONS_SUB= yes > >diff --git games/plutocracy/Makefile games/plutocracy/Makefile >index 0890ad379933..436d5d833456 100644 >--- games/plutocracy/Makefile >+++ games/plutocracy/Makefile >@@ -28,6 +28,8 @@ SUB_FILES= plutocracy_ > PORTDOCS= AUTHORS README > PORTDATA= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|span font|span font_desc|' \ > ${WRKSRC}/src/render/r_assets.c >diff --git games/pokerth/Makefile games/pokerth/Makefile >index 90c6da5b6f4b..5ab28cfee765 100644 >--- games/pokerth/Makefile >+++ games/pokerth/Makefile >@@ -33,6 +33,8 @@ WRKSRC= ${WRKDIR}/${DISTNAME}-rc > > PORTDOCS= server_setup_howto.txt > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -E \ > -e 's|/usr([a-z|/]*)|${LOCALBASE}/\1|g' \ >diff --git games/pongix/Makefile games/pongix/Makefile >index 38fd9ec8f2e9..b7481dd59af1 100644 >--- games/pongix/Makefile >+++ games/pongix/Makefile >@@ -21,6 +21,8 @@ LDFLAGS+= -L${LOCALBASE}/lib > LIBS+= -lm > PORTDOCS= AUTHORS ChangeLog README > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR} > cd ${WRKSRC}/src && \ >diff --git games/prboom-plus/Makefile games/prboom-plus/Makefile >index adf9904f73d1..8c0fe0799c58 100644 >--- games/prboom-plus/Makefile >+++ games/prboom-plus/Makefile >@@ -22,7 +22,7 @@ USE_SDL= mixer net sdl > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --with-waddir=${DATADIR} > >-OPTIONS_DEFINE= OPENGL >+OPTIONS_DEFINE= DOCS OPENGL > OPTIONS_DEFAULT=OPENGL > > DATADIR= ${DMDIR} >diff --git games/pvpgn/Makefile games/pvpgn/Makefile >index d355286e611b..6e837b348b06 100644 >--- games/pvpgn/Makefile >+++ games/pvpgn/Makefile >@@ -37,7 +37,7 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/pvpgn \ > > USE_RC_SUBR= bnetd > >-OPTIONS_DEFINE= D2 MYSQL PGSQL SQLITE3 >+OPTIONS_DEFINE= D2 MYSQL PGSQL SQLITE3 DOCS > OPTIONS_DEFAULT= D2 > OPTIONS_SUB= yes > >diff --git games/rnd_jue/Makefile games/rnd_jue/Makefile >index 9a1ba3ea66d4..3adf1c8270c7 100644 >--- games/rnd_jue/Makefile >+++ games/rnd_jue/Makefile >@@ -45,6 +45,8 @@ ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 > DESKTOP_ENTRIES="R'n'D jue" "" "${PORTNAME}" \ > "${PORTNAME}" "Game;ArcadeGame;" "" > >+OPTIONS_DEFINE= DOCS >+ > post-extract-script: > @(cd ${WRKDIR}/rocksndiamonds* && ${COPYTREE_SHARE} levels ${WRKSRC}) > .for l in ${LEVELS_BD_FANS:S/$/.zip/} >diff --git games/sdlpop/Makefile games/sdlpop/Makefile >index 84a51a148ba9..51015c4ad8a0 100644 >--- games/sdlpop/Makefile >+++ games/sdlpop/Makefile >@@ -25,6 +25,8 @@ PORTDOCS= * > DESKTOP_ENTRIES= "Prince" "Open-Source port of Prince of Persia" \ > "${DATADIR}/icon.png" "prince" "Game;" false > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/seg009.c > >diff --git games/taipan/Makefile games/taipan/Makefile >index 6742eacd75ab..9b2c72aed17a 100644 >--- games/taipan/Makefile >+++ games/taipan/Makefile >@@ -16,6 +16,8 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS} -lncurses" > PORTDOCS= README > PLIST_FILES= bin/taipan > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/taipan ${STAGEDIR}${PREFIX}/bin > @${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git games/tbe/Makefile games/tbe/Makefile >index 4bc8e3c77137..20ed1047d7a8 100644 >--- games/tbe/Makefile >+++ games/tbe/Makefile >@@ -24,6 +24,8 @@ USE_QT= corelib gui linguisttools_build moc_build qmake_build rcc_build \ > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's/ make/ $$(MAKE)/' \ > ${WRKSRC}/Makefile >diff --git games/trigger-rally/Makefile games/trigger-rally/Makefile >index a5de0a98d604..df4af0f81aff 100644 >--- games/trigger-rally/Makefile >+++ games/trigger-rally/Makefile >@@ -31,6 +31,8 @@ DESKTOP_ENTRIES="Trigger" "" "trigger" \ > > PORTDOCS= README-stereo.txt README.txt DATA_AUTHORS.txt > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WORKINGSRC}/bin/trigger-rally ${STAGEDIR}${PREFIX}/bin > ${MKDIR} ${STAGEDIR}${DATADIR} >diff --git games/trimines/Makefile games/trimines/Makefile >index 9a547affc0f6..e91047e7d305 100644 >--- games/trimines/Makefile >+++ games/trimines/Makefile >@@ -24,6 +24,8 @@ DESKTOP_ENTRIES="Trimines" \ > "Game;LogicGame;" \ > "" > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/src/gfx.c > >diff --git games/vegastrike/Makefile games/vegastrike/Makefile >index 50ca6956120e..4b9a112a58c6 100644 >--- games/vegastrike/Makefile >+++ games/vegastrike/Makefile >@@ -43,7 +43,7 @@ BIN_FILES= bin/vegastrike bin/vssetup bin/vegaserver > PLIST_FILES= ${BIN_FILES} > PORTDOCS= README > >-OPTIONS_DEFINE= MESHER >+OPTIONS_DEFINE= MESHER DOCS > MESHER_DESC= Enable mesher modelling tool > > MESHER_PLIST_FILES= bin/mesher >diff --git games/volleyball/Makefile games/volleyball/Makefile >index fb2a071e8b27..c48e84e93010 100644 >--- games/volleyball/Makefile >+++ games/volleyball/Makefile >@@ -34,6 +34,8 @@ DESKTOP_ENTRIES="Pocket Volleyball" \ > "Game;SportsGame;ArcadeGame;" \ > false > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} '/libintl\.h/d' ${WRKSRC}/src/common.h > @${REINPLACE_CMD} -e '/setlocale/d' -e '/textdomain/d' \ >diff --git games/voxelands/Makefile games/voxelands/Makefile >index 35875b9bec01..3db8e3e0bd62 100644 >--- games/voxelands/Makefile >+++ games/voxelands/Makefile >@@ -24,7 +24,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME} > > OPTIONS_SUB= yes > >-OPTIONS_DEFINE= NLS SOUND SQLITE3 >+OPTIONS_DEFINE= NLS SOUND SQLITE3 DOCS > OPTIONS_MULTI= BINARIES > OPTIONS_MULTI_BINARIES= CLIENT SERVER > >diff --git games/widelands/Makefile games/widelands/Makefile >index 431aa9aec843..7fd3e03fb072 100644 >--- games/widelands/Makefile >+++ games/widelands/Makefile >@@ -39,6 +39,8 @@ DESKTOP_ENTRIES="Widelands" \ > "Game;StrategyGame;" \ > "" > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ > ${WRKSRC}/cmake/Modules/*.cmake >diff --git games/wmeyes/Makefile games/wmeyes/Makefile >index be52c17767b4..99917fd7b65a 100644 >--- games/wmeyes/Makefile >+++ games/wmeyes/Makefile >@@ -16,6 +16,8 @@ USE_XORG= xpm xmu > PORTDOCS= README > PLIST_FILES= bin/wmeyes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|Target(|TargetNoMan(|g' ${WRKSRC}/Imakefile > >diff --git games/xorgramana/Makefile games/xorgramana/Makefile >index 26850dd7870d..81e56ef74778 100644 >--- games/xorgramana/Makefile >+++ games/xorgramana/Makefile >@@ -29,6 +29,8 @@ DESKTOP_ENTRIES="XorGramana" \ > "Game;LogicGame;" \ > false > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|GFX/|${DATADIR}/&|' ${WRKSRC}/icons.c > >diff --git games/xshogi/Makefile games/xshogi/Makefile >index 547ecc362cb6..91e3d680c7c1 100644 >--- games/xshogi/Makefile >+++ games/xshogi/Makefile >@@ -19,4 +19,6 @@ CPPFLAGS+= -I${LOCALBASE}/include > PORTDOCS= README.xboard BUGS > PLIST_FILES= bin/xshogi man/man6/xshogi.6.gz > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git german/BBBike/Makefile german/BBBike/Makefile >index 28cd5687db81..efe8872259d6 100644 >--- german/BBBike/Makefile >+++ german/BBBike/Makefile >@@ -59,7 +59,7 @@ MYDESTDIR= ${STAGEDIR}${PREFIX}/BBBike > .if exists(${PERL5}) > LOCAL_PERL_ARCH!= ${PERL5} -MConfig -e '$$x = qq{$$Config{version}/$$Config{archname}}; $$x =~ s{/}{\\\\/}g; print $$x' > .endif >-PLIST_SUB= LOCAL_PERL_ARCH=${LOCAL_PERL_ARCH} >+PLIST_SUB+= LOCAL_PERL_ARCH=${LOCAL_PERL_ARCH} > BBBIKE_PERL_EXE= bbbike cbbbike bbbikeclient cmdbbbike smsbbbike > > post-patch: >diff --git german/selfhtml/Makefile german/selfhtml/Makefile >index 0ccc93a50319..8a1d13790c68 100644 >--- german/selfhtml/Makefile >+++ german/selfhtml/Makefile >@@ -48,6 +48,8 @@ PORTDOCS= index.htm \ > src \ > xml > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) >diff --git graphics/OpenEXR/Makefile graphics/OpenEXR/Makefile >index 37973038380c..ccef56995a4e 100644 >--- graphics/OpenEXR/Makefile >+++ graphics/OpenEXR/Makefile >@@ -57,7 +57,7 @@ USE_GCC= yes > MAJORVER= 2_2 > VER= 23 > >-PLIST_SUB= MAJORVER=${MAJORVER} >+PLIST_SUB+= MAJORVER=${MAJORVER} > PLIST_SUB+= VER=${VER} > > post-patch: >diff --git graphics/bugle/Makefile graphics/bugle/Makefile >index 5ee6f714d771..5aa35321c5bf 100644 >--- graphics/bugle/Makefile >+++ graphics/bugle/Makefile >@@ -25,7 +25,7 @@ USE_LDCONFIG= yes > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib > >-OPTIONS_DEFINE= FFMPEG GTK2 READLINE THREADS >+OPTIONS_DEFINE= FFMPEG GTK2 READLINE THREADS DOCS > OPTIONS_DEFAULT= READLINE THREADS > > FFMPEG_CONFIGURE_WITH= lavc >diff --git graphics/embree/Makefile graphics/embree/Makefile >index 91fcbb357139..b40b7cfcbb82 100644 >--- graphics/embree/Makefile >+++ graphics/embree/Makefile >@@ -26,7 +26,7 @@ CMAKE_ARGS= -DEMBREE_TASKING_SYSTEM:STRING=INTERNAL > DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}2 > PLIST_SUB+= VERSION=${DISTVERSION} > >-OPTIONS_DEFINE= IMAGEMAGICK ISPC JPEG PNG >+OPTIONS_DEFINE= DOCS IMAGEMAGICK ISPC JPEG PNG > OPTIONS_DEFAULT= ISPC > OPTIONS_SUB= yes > >diff --git graphics/eom/Makefile graphics/eom/Makefile >index 25015f5c0d75..1f58dcdb06c1 100644 >--- graphics/eom/Makefile >+++ graphics/eom/Makefile >@@ -35,7 +35,7 @@ INSTALL_TARGET= install-strip > GLIB_SCHEMAS= org.mate.eom.gschema.xml \ > org.mate.eom.enums.xml > >-OPTIONS_DEFINE= EXIF EXEMPI >+OPTIONS_DEFINE= EXIF EXEMPI DOCS > OPTIONS_DEFAULT=EXIF EXEMPI > > EXEMPI_DESC= XMP support >diff --git graphics/gimp-gmic-plugin/Makefile graphics/gimp-gmic-plugin/Makefile >index c413f33267bb..7b61c414dbaf 100644 >--- graphics/gimp-gmic-plugin/Makefile >+++ graphics/gimp-gmic-plugin/Makefile >@@ -20,7 +20,7 @@ LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick \ > libfftw3.so:math/fftw3 \ > libgimp-2.0.so:graphics/gimp-app > >-OPTIONS_DEFINE= BASH >+OPTIONS_DEFINE= BASH EXAMPLES > OPTIONS_SUB= yes > BASH_RUN_DEPENDS= bash:shells/bash > >diff --git graphics/icc-profiles-adobe-cs4/Makefile graphics/icc-profiles-adobe-cs4/Makefile >index 2554d291c6f9..ccbf9b5e3bab 100644 >--- graphics/icc-profiles-adobe-cs4/Makefile >+++ graphics/icc-profiles-adobe-cs4/Makefile >@@ -21,6 +21,8 @@ NO_ARCH= yes > SYSCOLORDIR= share/color > PLIST_SUB= SYSCOLORDIR=${SYSCOLORDIR} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > (cd ${WRKDIR}/Adobe\ ICC\ Profiles\ \(end-user\) && ${COPYTREE_SHARE} \*.pdf ${STAGEDIR}${DOCSDIR}) >diff --git graphics/libboard/Makefile graphics/libboard/Makefile >index fd47a2533f66..e4d5ddbec185 100644 >--- graphics/libboard/Makefile >+++ graphics/libboard/Makefile >@@ -26,7 +26,8 @@ GH_TAGNAME= 5b38274 > > PORTDOCS= * > >-OPTIONS_DEFINE= DOXYGEN EXAMPLES >+OPTIONS_DEFINE= DOXYGEN EXAMPLES DOCS >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > > .include <bsd.port.pre.mk> >diff --git graphics/libgxps/Makefile graphics/libgxps/Makefile >index 10de81947d9c..bf5d94e3f772 100644 >--- graphics/libgxps/Makefile >+++ graphics/libgxps/Makefile >@@ -21,4 +21,6 @@ USE_GNOME= cairo glib20 gnomeprefix introspection:build > GNU_CONFIGURE= yes > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c6-cairo/Makefile graphics/linux-c6-cairo/Makefile >index bc9740955918..079461ff583e 100644 >--- graphics/linux-c6-cairo/Makefile >+++ graphics/linux-c6-cairo/Makefile >@@ -16,4 +16,6 @@ USE_LDCONFIG= yes > USE_LINUX= fontconfig pixman png xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c6-jpeg/Makefile graphics/linux-c6-jpeg/Makefile >index 220007b93847..f5341edf84fe 100644 >--- graphics/linux-c6-jpeg/Makefile >+++ graphics/linux-c6-jpeg/Makefile >@@ -18,4 +18,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c6-png/Makefile graphics/linux-c6-png/Makefile >index ba0793f2c465..6c5813271a7b 100644 >--- graphics/linux-c6-png/Makefile >+++ graphics/linux-c6-png/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c6-sdl_image/Makefile graphics/linux-c6-sdl_image/Makefile >index 96e589df5cdf..23754012835d 100644 >--- graphics/linux-c6-sdl_image/Makefile >+++ graphics/linux-c6-sdl_image/Makefile >@@ -20,4 +20,6 @@ USE_LDCONFIG= yes > USE_LINUX= jpeg png sdl12 tiff > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c6-sdl_ttf/Makefile graphics/linux-c6-sdl_ttf/Makefile >index ed8d5ce5021f..4a37af16398f 100644 >--- graphics/linux-c6-sdl_ttf/Makefile >+++ graphics/linux-c6-sdl_ttf/Makefile >@@ -20,4 +20,6 @@ USE_LDCONFIG= yes > USE_LINUX= jpeg png sdl12 tiff > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c6-tiff/Makefile graphics/linux-c6-tiff/Makefile >index f1ef571fb388..dece7e06968d 100644 >--- graphics/linux-c6-tiff/Makefile >+++ graphics/linux-c6-tiff/Makefile >@@ -18,4 +18,6 @@ USE_LDCONFIG= yes > USE_LINUX= jpeg > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-cairo/Makefile graphics/linux-c7-cairo/Makefile >index 6f9c2cbdf68f..39e8e521b24c 100644 >--- graphics/linux-c7-cairo/Makefile >+++ graphics/linux-c7-cairo/Makefile >@@ -17,4 +17,6 @@ USE_LDCONFIG= yes > USE_LINUX= dri fontconfig pixman png xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-dri/Makefile graphics/linux-c7-dri/Makefile >index c5c66eeb56f5..475e44a25309 100644 >--- graphics/linux-c7-dri/Makefile >+++ graphics/linux-c7-dri/Makefile >@@ -30,6 +30,8 @@ USE_LDCONFIG= yes > USE_LINUX= expat libelf libpciaccess xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${RM} ${STAGEDIR}${PREFIX}/usr/lib/libEGL.so.1 > @${RM} ${STAGEDIR}${PREFIX}/usr/lib/libGL.so.1 >diff --git graphics/linux-c7-graphite2/Makefile graphics/linux-c7-graphite2/Makefile >index 7c9f69874a1b..d08dec0502ba 100644 >--- graphics/linux-c7-graphite2/Makefile >+++ graphics/linux-c7-graphite2/Makefile >@@ -14,4 +14,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-jasper/Makefile graphics/linux-c7-jasper/Makefile >index d71196410437..8fffd464a4a9 100644 >--- graphics/linux-c7-jasper/Makefile >+++ graphics/linux-c7-jasper/Makefile >@@ -20,4 +20,6 @@ USE_LDCONFIG= yes > USE_LINUX= jpeg > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-jbigkit/Makefile graphics/linux-c7-jbigkit/Makefile >index 971f3eb11a87..f29fd7b6b6bc 100644 >--- graphics/linux-c7-jbigkit/Makefile >+++ graphics/linux-c7-jbigkit/Makefile >@@ -19,4 +19,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-jpeg/Makefile graphics/linux-c7-jpeg/Makefile >index 975749c1eef1..d6f651d875e3 100644 >--- graphics/linux-c7-jpeg/Makefile >+++ graphics/linux-c7-jpeg/Makefile >@@ -20,4 +20,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-png/Makefile graphics/linux-c7-png/Makefile >index 93a4ef1beed7..9d954d63c264 100644 >--- graphics/linux-c7-png/Makefile >+++ graphics/linux-c7-png/Makefile >@@ -22,4 +22,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-sdl_image/Makefile graphics/linux-c7-sdl_image/Makefile >index d5b44688db8d..69353155e0f2 100644 >--- graphics/linux-c7-sdl_image/Makefile >+++ graphics/linux-c7-sdl_image/Makefile >@@ -23,4 +23,6 @@ USE_LDCONFIG= yes > USE_LINUX= jpeg png sdl12 tiff > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-sdl_ttf/Makefile graphics/linux-c7-sdl_ttf/Makefile >index 19c73917c064..63a2c932f75f 100644 >--- graphics/linux-c7-sdl_ttf/Makefile >+++ graphics/linux-c7-sdl_ttf/Makefile >@@ -23,4 +23,6 @@ USE_LDCONFIG= yes > USE_LINUX= jpeg png sdl12 tiff > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/linux-c7-tiff/Makefile graphics/linux-c7-tiff/Makefile >index e0a5cbd327be..507a81e4466e 100644 >--- graphics/linux-c7-tiff/Makefile >+++ graphics/linux-c7-tiff/Makefile >@@ -18,4 +18,6 @@ USE_LDCONFIG= yes > USE_LINUX= jbigkit jpeg > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/mandelbulber/Makefile graphics/mandelbulber/Makefile >index ce821204ccd2..3be24b64c657 100644 >--- graphics/mandelbulber/Makefile >+++ graphics/mandelbulber/Makefile >@@ -25,6 +25,8 @@ PLIST_FILES= bin/${PORTNAME} share/applications/${PORTNAME}.desktop > PORTDOCS= README NEWS > PORTDATA= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|/usr/share/mandelbulber|${DATADIR}|' \ > ${WRKSRC}/${PORTNAME}.desktop >diff --git graphics/mapnik/Makefile graphics/mapnik/Makefile >index 8c4de0f6ef30..b51e278793f2 100644 >--- graphics/mapnik/Makefile >+++ graphics/mapnik/Makefile >@@ -37,7 +37,7 @@ PORTDOCS= * > > INPUT_PLUGINS= csv raster shape geojson topojson > >-OPTIONS_DEFINE= CAIRO JPEG PNG TIFF WEBP PROJ >+OPTIONS_DEFINE= DOCS CAIRO JPEG PNG TIFF WEBP PROJ > OPTIONS_DEFAULT=CAIRO GDAL OGR POSTGIS PGRASTER SQLITE3 JPEG PNG TIFF PROJ WEBP > OPTIONS_GROUP= INPUT > OPTIONS_GROUP_INPUT= GDAL OGR POSTGIS PGRASTER SQLITE3 >diff --git graphics/openjump/Makefile graphics/openjump/Makefile >index c64cef77b560..1dc6faaa48f2 100644 >--- graphics/openjump/Makefile >+++ graphics/openjump/Makefile >@@ -48,6 +48,8 @@ TARGET_DIR= ${STAGEDIR}${PREFIX}/${PORTNAME} > WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-r${PLUS_REV}-PLUS > PLUS_REV= 5792 > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${ECHO_CMD} "---> Installing JAR files" > ${MKDIR} ${TARGET_DIR}/lib >diff --git graphics/optipng/Makefile graphics/optipng/Makefile >index ff8ff96e88ca..fe8c8ada0e93 100644 >--- graphics/optipng/Makefile >+++ graphics/optipng/Makefile >@@ -12,7 +12,7 @@ COMMENT= Optimizer for PNG files > LICENSE= ZLIB > LICENSE_FILE= ${WRKSRC}/LICENSE.txt > >-OPTIONS_DEFINE= BUNDLED_LIBPNG BUNDLED_ZLIB >+OPTIONS_DEFINE= BUNDLED_LIBPNG BUNDLED_ZLIB DOCS > > BUNDLED_LIBPNG_DESC= Use bundled libpng > BUNDLED_LIBPNG_CONFIGURE_OFF= --with-system-libpng >diff --git graphics/oyranos/Makefile graphics/oyranos/Makefile >index 88d7154c90d2..1a46e6d08e0e 100644 >--- graphics/oyranos/Makefile >+++ graphics/oyranos/Makefile >@@ -40,7 +40,8 @@ CMAKE_ARGS+= -DXDG_CONFIG_DIR=${PREFIX}/etc/xdg > LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} > MAKE_JOBS_UNSAFE=yes > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= ${LOCALBASE}/bin/doxygen:devel/doxygen > > PORTDOCS= * >diff --git graphics/pencil/Makefile graphics/pencil/Makefile >index d9106fdc65fb..decd14933b27 100644 >--- graphics/pencil/Makefile >+++ graphics/pencil/Makefile >@@ -29,6 +29,8 @@ PLIST_FILES= bin/pencil > > PORTDOCS= README TODO > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${MKDIR} ${WRKSRC}/src/external/freebsd > @${CP} ${FILESDIR}/src-external-freebsd-freebsd.cpp \ >diff --git graphics/piglit/Makefile graphics/piglit/Makefile >index d6c07ea8e92d..2a1c8cbd86dc 100644 >--- graphics/piglit/Makefile >+++ graphics/piglit/Makefile >@@ -45,4 +45,6 @@ SUB_FILES= pkg-message > DATADIR= ${PREFIX}/lib/piglit > PORTDATA= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git graphics/pqiv/Makefile graphics/pqiv/Makefile >index 1d9ec2564f92..226aaccb6cea 100644 >--- graphics/pqiv/Makefile >+++ graphics/pqiv/Makefile >@@ -19,6 +19,8 @@ BUILD_DEPENDS= bash:shells/bash > USE_GITHUB= yes > GH_ACCOUNT= phillipberndt > >+OPTIONS_DEFINE= DOCS >+ > OPTIONS_SINGLE= GTK > OPTIONS_SINGLE_GTK= GTK2 GTK3 > >diff --git graphics/py-pygooglechart/Makefile graphics/py-pygooglechart/Makefile >index 26ca5ca4ef37..8879ebbff95e 100644 >--- graphics/py-pygooglechart/Makefile >+++ graphics/py-pygooglechart/Makefile >@@ -18,6 +18,8 @@ USE_PYTHON= distutils autoplist > PORTEXAMPLES= * > EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \ > cd ${WRKSRC}/examples && \ >diff --git graphics/rawtherapee/Makefile graphics/rawtherapee/Makefile >index a502bdccf392..017d8e094c3d 100644 >--- graphics/rawtherapee/Makefile >+++ graphics/rawtherapee/Makefile >@@ -60,7 +60,7 @@ CMAKE_ARGS+= -DPROC_TARGET_NUMBER="1" > > RTDIR= ${PREFIX}/libdata/${PORTNAME} > >-OPTIONS_DEFINE= OPTIMIZED_CFLAGS OPENMP NATIVE >+OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS OPENMP NATIVE > OPTIONS_DEFAULT= OPTIMIZED_CFLAGS OPENMP > OPENMP_DESC= Enable multicore processing using OpenMP (amd64) > OPTIMIZED_CFLAGS_DESC= Use extra compiler optimizations (requires SSE2 support) >diff --git graphics/sdump/Makefile graphics/sdump/Makefile >index 78828335093d..8c0fd797c699 100644 >--- graphics/sdump/Makefile >+++ graphics/sdump/Makefile >@@ -29,6 +29,8 @@ LDFLAGS += -L${LOCALBASE}/lib -ljpeg -lpng -lsixel > > PORTDOCS= README.markdown > >+OPTIONS_DEFINE= DOCS >+ > post-build: > @cd ${WRKSRC}/yaimg-sixel && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} > >diff --git graphics/seq2gif/Makefile graphics/seq2gif/Makefile >index ebfe53472ab9..7e0559006087 100644 >--- graphics/seq2gif/Makefile >+++ graphics/seq2gif/Makefile >@@ -25,6 +25,8 @@ PORTDOCS= README.md > > PLIST_FILES= bin/seq2gif > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} >diff --git graphics/tgif/Makefile graphics/tgif/Makefile >index 402b7866ad3c..451d8624588b 100644 >--- graphics/tgif/Makefile >+++ graphics/tgif/Makefile >@@ -32,9 +32,9 @@ USE_XORG= x11 xext xt sm ice > .if ${PORT_OPTIONS:MNLS} > USES+= gettext > IMAKEDEFINES+= WITH_NLS >-PLIST_SUB= NLS="" >+PLIST_SUB+= NLS="" > .else >-PLIST_SUB= NLS="@comment " >+PLIST_SUB+= NLS="@comment " > .endif > .if ${PORT_OPTIONS:MA4SIZE} > IMAKEDEFINES+= WITH_A4SIZE >diff --git graphics/vapoursynth-fmtconv/Makefile graphics/vapoursynth-fmtconv/Makefile >index fc6b2d29031b..5fe237b59031 100644 >--- graphics/vapoursynth-fmtconv/Makefile >+++ graphics/vapoursynth-fmtconv/Makefile >@@ -33,6 +33,8 @@ DOCSDIR= ${PREFIX}/share/doc/${PKGBASE} > PLIST_FILES= %%DATADIR%%/libfmtconv.so > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's/x86_64/&|amd64/' \ > ${WRKSRC}/configure.ac >diff --git graphics/vapoursynth-waifu2x-w2xc/Makefile graphics/vapoursynth-waifu2x-w2xc/Makefile >index 5e9865adc6a8..c47bbddfb49e 100644 >--- graphics/vapoursynth-waifu2x-w2xc/Makefile >+++ graphics/vapoursynth-waifu2x-w2xc/Makefile >@@ -36,6 +36,8 @@ PLIST_FILES= %%DATADIR%%/libwaifu2x-w2xc.so > PORTDATA= models > PORTDOCS= *.md > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's/\*linux\*/*/' \ > -e 's/-O3 //; /=.*-mfpmath/d; /-msse/d' \ >diff --git irc/ircd-ratbox/Makefile irc/ircd-ratbox/Makefile >index 2569e62463d4..1833634f6dfb 100644 >--- irc/ircd-ratbox/Makefile >+++ irc/ircd-ratbox/Makefile >@@ -50,7 +50,7 @@ PORTDOCS= [^i]*.txt README.* technical/[^i]*.txt Tao-of-IRC.* > #-- Options ------------------------------------------------------------ > > OPTIONS_DEFINE= OPENSSL IPV6 ZIPLINKS SHARED_MODS ASSERT SMALL_NET \ >- SERVICES SHORTCUTS >+ SERVICES SHORTCUTS DOCS > ZIPLINKS_DESC= Support compressed server links > SHARED_MODS_DESC= Support shared modules > ASSERT_DESC= Enable debugging code >diff --git irc/irssi-fish/Makefile irc/irssi-fish/Makefile >index bbe1b3a4b1f1..704b98b39e41 100644 >--- irc/irssi-fish/Makefile >+++ irc/irssi-fish/Makefile >@@ -27,6 +27,8 @@ USE_LDCONFIG= yes > PLIST_FILES= lib/irssi/modules/libfish.so > PORTDOCS= README.md FiSH-irssi.txt > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e "s,/usr/local,${LOCALBASE},g" \ > -e "s,share/doc/FiSH-irssi,${DOCSDIR_REL},g" ${WRKSRC}/CMakeLists.txt >diff --git irc/ratbox-respond/Makefile irc/ratbox-respond/Makefile >index 0e4957aa4f34..7162d81d313e 100644 >--- irc/ratbox-respond/Makefile >+++ irc/ratbox-respond/Makefile >@@ -22,6 +22,8 @@ PORTDOCS= challenge.txt > PORTEXAMPLES= * > PLIST_FILES= bin/ratbox-respond bin/makekeypair > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > do-install: > ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin > ${INSTALL_SCRIPT} ${WRKSRC}/makekeypair ${STAGEDIR}${PREFIX}/bin >diff --git irc/roxirc/Makefile irc/roxirc/Makefile >index 50f23720dbf3..093b122ad745 100644 >--- irc/roxirc/Makefile >+++ irc/roxirc/Makefile >@@ -16,6 +16,8 @@ NO_BUILD= yes > PLIST_FILES= bin/roxirc > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's|if \[ -x .*|${WISH} "$$0" "$$@"|' ${WRKSRC}/roxirc > >diff --git irc/thales/Makefile irc/thales/Makefile >index 05895ab75cc4..ebca8c5db5db 100644 >--- irc/thales/Makefile >+++ irc/thales/Makefile >@@ -19,7 +19,7 @@ SHEBANG_FILES= examples/MRTG/thalesinfo.pl > USE_MYSQL= yes > USE_RC_SUBR= thales > >-OPTIONS_DEFINE= MODES DOCS >+OPTIONS_DEFINE= MODES DOCS EXAMPLES > OPTIONS_RADIO= IRCD > OPTIONS_RADIO_IRCD= HYBRID IRCDRU UNREAL > OPTIONS_DEFAULT=MODES UNREAL >diff --git japanese/canna-server/Makefile japanese/canna-server/Makefile >index 73e5164109b4..6bb5c8e2c790 100644 >--- japanese/canna-server/Makefile >+++ japanese/canna-server/Makefile >@@ -24,6 +24,8 @@ PORTDOCS= canna.bib canna.sty Imakefile README.jp Makefile \ > intern lisp man > MAKE_JOBS_UNSAFE= yes > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \ > ${MAKEFILE} ${MAKE_ARGS} install.man >diff --git japanese/groff/Makefile japanese/groff/Makefile >index 54933681ca8f..04f1587254fa 100644 >--- japanese/groff/Makefile >+++ japanese/groff/Makefile >@@ -45,6 +45,8 @@ TMACFILES= tmac.orig_me tmac.vgrind \ > an-old.tmac doc.tmac e.tmac > MDOCFILES= ja.eucJP doc-common doc-syms > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > ${REINPLACE_CMD} -E -e 's|^@setfilename +groff|&.info|g;' \ > ${WRKSRC}/doc/groff.texinfo >diff --git japanese/jvim3/Makefile japanese/jvim3/Makefile >index 848189c9138f..2dff5f65df15 100644 >--- japanese/jvim3/Makefile >+++ japanese/jvim3/Makefile >@@ -24,7 +24,7 @@ MAKE_ARGS= FEPOPT='${FEPOPT}' \ > FEPOBJS="${FEPOBJS}" \ > LIBS="${LIBS}" > >-OPTIONS_DEFINE= X11 >+OPTIONS_DEFINE= X11 DOCS > OPTIONS_DEFAULT=X11 FREEWNN_CANNA > OPTIONS_RADIO= FEP > OPTIONS_RADIO_FEP= FREEWNN_CANNA DIRECT_CANNA WNN6 WNN7 >diff --git japanese/kon2-16dot/Makefile japanese/kon2-16dot/Makefile >index befb2a52f1b0..fcc938c310fc 100644 >--- japanese/kon2-16dot/Makefile >+++ japanese/kon2-16dot/Makefile >@@ -22,6 +22,9 @@ ONLY_FOR_ARCHS= i386 amd64 > PORTDOCS= README README.FreeBSD > SUB_LIST= KON16FONT=${KON16FONT} \ > KON14FONT=${KON14FONT} >+ >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if !defined(KONFONT) >diff --git japanese/kterm/Makefile japanese/kterm/Makefile >index d367a66d2bc8..c9c859da7632 100644 >--- japanese/kterm/Makefile >+++ japanese/kterm/Makefile >@@ -27,7 +27,7 @@ VGAFONT_USES= fonts > CFLAGS+= -Wno-return-type > PORTDOCS= README.kt README.wallpaper.ja dot.termcap > >-OPTIONS_DEFINE= TEKTRONIXEMU VGAFONT >+OPTIONS_DEFINE= TEKTRONIXEMU VGAFONT DOCS > OPTIONS_DEFAULT=DEFAULT > OPTIONS_SINGLE= SCROLLBAR > OPTIONS_SINGLE_SCROLLBAR= DEFAULT XAW3DLIB NEXTAWLIB >diff --git japanese/lookup/Makefile japanese/lookup/Makefile >index a1afd4acf381..c82ef30f1b97 100644 >--- japanese/lookup/Makefile >+++ japanese/lookup/Makefile >@@ -23,9 +23,12 @@ INFO= lookup > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --with-emacs=${EMACS_CMD} \ > --with-lispdir=${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} >+ >+OPTIONS_DEFINE= DOCS >+ > PORTDOCS= AUTHORS ChangeLog NEWS README.md > >- post-install: >+post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} > >diff --git japanese/onew/Makefile japanese/onew/Makefile >index 4be843e65af3..ea422d4a56c5 100644 >--- japanese/onew/Makefile >+++ japanese/onew/Makefile >@@ -17,7 +17,7 @@ ALL_TARGET= > CFLAGS+= -I${WRKSRC} > PORTDOCS= README.ONEW > >-OPTIONS_DEFINE= CANNA CANNA_FREEWNN CANNA_WNN6 CANNA_WNN7 FREEWNN WNN6 WNN7 >+OPTIONS_DEFINE= CANNA CANNA_FREEWNN CANNA_WNN6 CANNA_WNN7 FREEWNN WNN6 WNN7 DOCS > OPTIONS_DEFAULT=CANNA CANNA_FREEWNN CANNA_WNN6 CANNA_WNN7 FREEWNN WNN6 WNN7 > CANNA_DESC= Build Canna-backend library > CANNA_FREEWNN_DESC= Build Canna+FreeWnn-backend library >diff --git japanese/plan/Makefile japanese/plan/Makefile >index f6a62831bc46..d92bf8487c1d 100644 >--- japanese/plan/Makefile >+++ japanese/plan/Makefile >@@ -17,6 +17,8 @@ EXTRA_PATCHES= ${.CURDIR}/files/patch-* > > PORTDOCS= plan_calEUC.ps > >+OPTIONS_DEFINE= DOCS >+ > post-build: > ${CAT} ${MASTERDIR}/pkg-plist >> ${WRKDIR}/PLIST > >diff --git japanese/skkinput3/Makefile japanese/skkinput3/Makefile >index 0adb02bd6854..1c978e8e4759 100644 >--- japanese/skkinput3/Makefile >+++ japanese/skkinput3/Makefile >@@ -31,9 +31,9 @@ SKK10_DESC= Install SKK10 elisp files > .include <bsd.port.options.mk> > > .if ${PORT_OPTIONS:MSKK10} >-PLIST_SUB= SKK8="@comment " SKK10="" >+PLIST_SUB+= SKK8="@comment " SKK10="" > .else >-PLIST_SUB= SKK8="" SKK10="@comment " >+PLIST_SUB+= SKK8="" SKK10="@comment " > .endif > > .if ${PORT_OPTIONS:MDBSKKD} >diff --git java/castor/Makefile java/castor/Makefile >index 0e30c5e60deb..c923ef859f04 100644 >--- java/castor/Makefile >+++ java/castor/Makefile >@@ -28,6 +28,8 @@ PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}-anttasks.jar \ > PORTDOCS= *.html *.txt *.css *.dtd *.xsd *.pdf \ > ora-mar-2k images rss > >+OPTIONS_DEFINE= DOCS >+ > do-install: > .for f in ${PLIST_FILES:T:R} > ${INSTALL_DATA} \ >diff --git java/jaxen/Makefile java/jaxen/Makefile >index 76a0aeea2368..b6ea26babec5 100644 >--- java/jaxen/Makefile >+++ java/jaxen/Makefile >@@ -21,6 +21,8 @@ PLIST_FILES+= ${JARFILES:S,^lib/,,:S,^,%%JAVAJARDIR%%/,} > DOCS= default.css download.html faq.html index.html javadoc status.html style > PORTDOCS= LICENSE ${DOCS} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..." > @${MKDIR} ${STAGEDIR}${JAVAJARDIR} >diff --git java/jdk8-doc/Makefile java/jdk8-doc/Makefile >index 962644e20b4e..9976fe268675 100644 >--- java/jdk8-doc/Makefile >+++ java/jdk8-doc/Makefile >@@ -23,6 +23,8 @@ NO_BUILD= yes > NO_ARCH= yes > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) >diff --git java/jdk9-doc/Makefile java/jdk9-doc/Makefile >index 89747493432f..f481d8e870cb 100644 >--- java/jdk9-doc/Makefile >+++ java/jdk9-doc/Makefile >@@ -23,6 +23,8 @@ NO_BUILD= yes > USES= zip > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) >diff --git lang/alchemist.el/Makefile lang/alchemist.el/Makefile >index 7bb933cd4650..6133ff42f69f 100644 >--- lang/alchemist.el/Makefile >+++ lang/alchemist.el/Makefile >@@ -21,6 +21,8 @@ GH_ACCOUNT= tonini > NO_ARCH= yes > NO_BUILD= yes > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/alchemist-server > @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR}/alchemist-server/lib >diff --git lang/cint/Makefile lang/cint/Makefile >index 77f59a571220..4d44d3ea226a 100644 >--- lang/cint/Makefile >+++ lang/cint/Makefile >@@ -31,6 +31,8 @@ INSTALL_ARGS= --bindir=${STAGEDIR}${PREFIX}/bin\ > --mandir=${STAGEDIR}${PREFIX}/man\ > --docdir=${STAGEDIR}${DOCSDIR} > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} 's,#!/bin/bash,#!${LOCALBASE}/bin/bash,' ${WRKSRC}/cint/lib/dll_stl/setup > ${REINPLACE_CMD} 's,make ,${GMAKE} ,' ${WRKSRC}/cint/lib/*/setup >diff --git lang/dmd2/Makefile.bootstrap lang/dmd2/Makefile.bootstrap >index 13bf1eac1484..a3ff36822383 100644 >--- lang/dmd2/Makefile.bootstrap >+++ lang/dmd2/Makefile.bootstrap >@@ -23,6 +23,8 @@ PORTDOCS= *.txt html/ > WRKSRC= ${WRKDIR}/dmd2/src/${PORTNAME} > .undef DEVELOPER > >+OPTIONS_DEFINE= DOCS >+ > BROKEN_sparc64= Does not install: divide-by-zero error > > .include <bsd.port.pre.mk> >diff --git lang/elixir-mode.el/Makefile lang/elixir-mode.el/Makefile >index 729cc261c496..4166aa6e82e8 100644 >--- lang/elixir-mode.el/Makefile >+++ lang/elixir-mode.el/Makefile >@@ -20,9 +20,13 @@ GH_PROJECT= emacs-elixir > NO_ARCH= yes > NO_BUILD= yes > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR} > ${INSTALL_DATA} ${WRKSRC}/*.el ${STAGEDIR}${PREFIX}/${EMACS_SITE_LISPDIR} >+ >+post-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/*.md ${STAGEDIR}${DOCSDIR} > >diff --git lang/elk/Makefile lang/elk/Makefile >index a54e097eb479..49aceaab1a54 100644 >--- lang/elk/Makefile >+++ lang/elk/Makefile >@@ -24,6 +24,8 @@ MAKE_JOBS_UNSAFE= yes > CPPFLAGS+= -I${LOCALBASE}/include/libelf -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib > >+OPTIONS_DEFINE= EXAMPLES >+ > .include <bsd.port.pre.mk> > > .if ${ARCH} == "amd64" >diff --git lang/fasm/Makefile lang/fasm/Makefile >index 37f1bb344750..48a8f48c0752 100644 >--- lang/fasm/Makefile >+++ lang/fasm/Makefile >@@ -19,6 +19,8 @@ PLIST_FILES= bin/fasm > PORTDOCS= * > WRKSRC= ${WRKDIR}/${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if ${ARCH} != "i386" >diff --git lang/fpc-docs/Makefile lang/fpc-docs/Makefile >index 363f5b8766fc..68093d874c09 100644 >--- lang/fpc-docs/Makefile >+++ lang/fpc-docs/Makefile >@@ -21,6 +21,8 @@ PORTDOCS= chart.pdf fcl.pdf fclres.pdf fpdoc.pdf prog.pdf ref.pdf \ > rtl.pdf user.pdf > SUB_FILES= pkg-message > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > cd ${WRKDIR}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} >diff --git lang/gambit-c/Makefile lang/gambit-c/Makefile >index ce6d06882a57..d4e6165779b7 100644 >--- lang/gambit-c/Makefile >+++ lang/gambit-c/Makefile >@@ -31,7 +31,7 @@ USE_LDCONFIG= ${PREFIX}/lib/gambit-c > > INFO= gambit > >-OPTIONS_DEFINE= GCC >+OPTIONS_DEFINE= DOCS GCC > OPTIONS_DEFAULT=GCC > > GCC_DESC= Build with GCC >diff --git lang/gcc48/Makefile lang/gcc48/Makefile >index 2b2ea70ba984..652ae366ea60 100644 >--- lang/gcc48/Makefile >+++ lang/gcc48/Makefile >@@ -102,7 +102,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --enable-languages=${LANGUAGES} > MAKE_ARGS+= MAKEINFOFLAGS="--no-split" > USE_LDCONFIG= ${TARGLIB} >-PLIST_SUB= GCC_VERSION=${GCC_VERSION} \ >+PLIST_SUB+= GCC_VERSION=${GCC_VERSION} \ > GNU_HOST=${CONFIGURE_TARGET} \ > SUFFIX=${SUFFIX} > INFO= gcc${SUFFIX}/cpp \ >diff --git lang/gcc49/Makefile lang/gcc49/Makefile >index ba783bbcb4e9..a4db46650d39 100644 >--- lang/gcc49/Makefile >+++ lang/gcc49/Makefile >@@ -102,7 +102,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --enable-languages=${LANGUAGES} > MAKE_ARGS+= MAKEINFOFLAGS="--no-split" > USE_LDCONFIG= ${TARGLIB} >-PLIST_SUB= GCC_VERSION=${GCC_VERSION} \ >+PLIST_SUB+= GCC_VERSION=${GCC_VERSION} \ > GNU_HOST=${CONFIGURE_TARGET} \ > SUFFIX=${SUFFIX} > INFO= gcc${SUFFIX}/cpp \ >diff --git lang/gcc5/Makefile lang/gcc5/Makefile >index 4763d13d72d6..5c49f45056df 100644 >--- lang/gcc5/Makefile >+++ lang/gcc5/Makefile >@@ -101,7 +101,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --with-system-zlib > MAKE_ARGS+= MAKEINFOFLAGS="--no-split" > USE_LDCONFIG= ${TARGLIB} >-PLIST_SUB= GCC_VERSION=${GCC_VERSION} \ >+PLIST_SUB+= GCC_VERSION=${GCC_VERSION} \ > GNU_HOST=${CONFIGURE_TARGET} \ > SUFFIX=${SUFFIX} > INFO= gcc${SUFFIX}/cpp \ >diff --git lang/gcc6-devel/Makefile lang/gcc6-devel/Makefile >index caec49e8679b..71151c9ef6ca 100644 >--- lang/gcc6-devel/Makefile >+++ lang/gcc6-devel/Makefile >@@ -117,7 +117,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --with-system-zlib > MAKE_ARGS+= MAKEINFOFLAGS="--no-split" > USE_LDCONFIG= ${TARGLIB} >-PLIST_SUB= GCC_VERSION=${GCC_VERSION} \ >+PLIST_SUB+= GCC_VERSION=${GCC_VERSION} \ > GNU_HOST=${CONFIGURE_TARGET} \ > SUFFIX=${SUFFIX} > INFO= gcc${SUFFIX}/cpp \ >diff --git lang/gcc6/Makefile lang/gcc6/Makefile >index ecdfdfce3019..866fe18702bb 100644 >--- lang/gcc6/Makefile >+++ lang/gcc6/Makefile >@@ -117,7 +117,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --with-system-zlib > MAKE_ARGS+= MAKEINFOFLAGS="--no-split" > USE_LDCONFIG= ${TARGLIB} >-PLIST_SUB= GCC_VERSION=${GCC_VERSION} \ >+PLIST_SUB+= GCC_VERSION=${GCC_VERSION} \ > GNU_HOST=${CONFIGURE_TARGET} \ > SUFFIX=${SUFFIX} > INFO= gcc${SUFFIX}/cpp \ >diff --git lang/gcc7-devel/Makefile lang/gcc7-devel/Makefile >index 0372a1d2e33b..bb19849f276d 100644 >--- lang/gcc7-devel/Makefile >+++ lang/gcc7-devel/Makefile >@@ -99,7 +99,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --with-system-zlib > MAKE_ARGS+= MAKEINFOFLAGS="--no-split" > USE_LDCONFIG= ${TARGLIB} >-PLIST_SUB= GCC_VERSION=${GCC_VERSION} \ >+PLIST_SUB+= GCC_VERSION=${GCC_VERSION} \ > GNU_HOST=${CONFIGURE_TARGET} \ > SUFFIX=${SUFFIX} > INFO= gcc${SUFFIX}/cpp \ >diff --git lang/gcc7/Makefile lang/gcc7/Makefile >index da53bf0c4549..82ceefbe7211 100644 >--- lang/gcc7/Makefile >+++ lang/gcc7/Makefile >@@ -95,7 +95,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --with-system-zlib > MAKE_ARGS+= MAKEINFOFLAGS="--no-split" > USE_LDCONFIG= ${TARGLIB} >-PLIST_SUB= GCC_VERSION=${GCC_VERSION} \ >+PLIST_SUB+= GCC_VERSION=${GCC_VERSION} \ > GNU_HOST=${CONFIGURE_TARGET} \ > SUFFIX=${SUFFIX} > INFO= gcc${SUFFIX}/cpp \ >diff --git lang/gcc8-devel/Makefile lang/gcc8-devel/Makefile >index 64ee31f4d0e6..a56b195d3e4b 100644 >--- lang/gcc8-devel/Makefile >+++ lang/gcc8-devel/Makefile >@@ -99,7 +99,7 @@ CONFIGURE_ARGS+=--disable-nls \ > --with-system-zlib > MAKE_ARGS+= MAKEINFOFLAGS="--no-split" > USE_LDCONFIG= ${TARGLIB} >-PLIST_SUB= GCC_VERSION=${GCC_VERSION} \ >+PLIST_SUB+= GCC_VERSION=${GCC_VERSION} \ > GNU_HOST=${CONFIGURE_TARGET} \ > SUFFIX=${SUFFIX} > INFO= gcc${SUFFIX}/cpp \ >diff --git lang/lfe/Makefile lang/lfe/Makefile >index f47dafa2ade3..ed7c6138601c 100644 >--- lang/lfe/Makefile >+++ lang/lfe/Makefile >@@ -16,6 +16,8 @@ GH_ACCOUNT= rvirding > ALL_TARGET= compile > PORTDOCS= README.md > >+OPTIONS_DEFINE= DOCS >+ > do-build: > cd ${BUILD_WRKSRC} && \ > ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} >diff --git lang/linux-c6-tcl85/Makefile lang/linux-c6-tcl85/Makefile >index f49b67e3e885..a6ab50e330be 100644 >--- lang/linux-c6-tcl85/Makefile >+++ lang/linux-c6-tcl85/Makefile >@@ -18,4 +18,6 @@ USE_LDCONFIG= yes > USE_LINUX_RPM= yes > USE_LINUX_RPM_BAD_PERMS= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git lang/linux-c7-tcl85/Makefile lang/linux-c7-tcl85/Makefile >index 0705ace3c312..1730542700da 100644 >--- lang/linux-c7-tcl85/Makefile >+++ lang/linux-c7-tcl85/Makefile >@@ -20,4 +20,6 @@ USE_LDCONFIG= yes > USE_LINUX_RPM= yes > USE_LINUX_RPM_BAD_PERMS= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git lang/modula3/Makefile lang/modula3/Makefile >index 8cbdfbb26287..3f7783a31933 100644 >--- lang/modula3/Makefile >+++ lang/modula3/Makefile >@@ -51,6 +51,8 @@ STRIPPKG= m3staloneback/m3back \ > hack/dummy \ > test/test > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > M3BOOT_ENV= ${MAKE_ENV:C/^LDFLAGS=.*//:C/^CPPFLAGS=.*//} \ >@@ -77,7 +79,7 @@ MARCH= x86_64 > > NEWBOOTNAME= m3-bootstrap.${MARCH}.${OPSYS:tu}.${OSREL:S/.//}.tar.bz2 > M3TARGET= ${MARCH}_${OPSYS:tu} >-PLIST_SUB= T=${M3TARGET} P=cm3/pkg B=cm3/bin L=cm3/lib >+PLIST_SUB+= T=${M3TARGET} P=cm3/pkg B=cm3/bin L=cm3/lib > .endif > > post-extract: >diff --git lang/racket/Makefile lang/racket/Makefile >index 576278feeba6..8e2aede06247 100644 >--- lang/racket/Makefile >+++ lang/racket/Makefile >@@ -44,7 +44,7 @@ USE_LDCONFIG= yes > REINPLACE_ARGS= -i "" > USE_GNOME= cairo pango > >-OPTIONS_DEFINE= FUTURES >+OPTIONS_DEFINE= DOCS FUTURES > OPTIONS_DEFAULT=FUTURES > > OPTIONS_DEFINE_amd64= JIT >diff --git lang/smlnj/Makefile lang/smlnj/Makefile >index 7a9c5ae687c9..a879bb06ada5 100644 >--- lang/smlnj/Makefile >+++ lang/smlnj/Makefile >@@ -57,7 +57,7 @@ DISTFILES+= MLRISC.tgz ckit.tgz cml.tgz doc.tgz heap2asm.tgz \ > ml-burg.tgz ml-lpt.tgz ml-lex.tgz ml-yacc.tgz nlffi.tgz \ > smlnj-lib.tgz trace-debug-profile.tgz > >-PLIST_SUB= MLARCH=${MLARCH} >+PLIST_SUB+= MLARCH=${MLARCH} > > .if ${PORT_OPTIONS:MPOSITION64} || defined(ML_POSITION64) > ML_POSITION64?= ${PORT_OPTIONS:MPOSITION64} >diff --git lang/snobol4/Makefile lang/snobol4/Makefile >index f67df6c4e1b2..1bb139af09a2 100644 >--- lang/snobol4/Makefile >+++ lang/snobol4/Makefile >@@ -20,6 +20,8 @@ ALL_TARGET= xsnobol4 > DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's:[^=]*\.tmp$$:${WRKSRC}/&:' ${WRKSRC}/configure > @${REINPLACE_CMD} '/grep/s/$$/| egrep -v "built-in|command line"/' \ >diff --git mail/archiveopteryx-devel/Makefile mail/archiveopteryx-devel/Makefile >index 752143ca5a37..06215dae68ac 100644 >--- mail/archiveopteryx-devel/Makefile >+++ mail/archiveopteryx-devel/Makefile >@@ -42,6 +42,8 @@ PLIST_SUB+= GROUPS="${GROUPS}" > > JAM?= ${LOCALBASE}/bin/jam > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > # force Clang when on FreeBSD >diff --git mail/archiveopteryx/Makefile mail/archiveopteryx/Makefile >index b03bb1728639..2f3e3fda266f 100644 >--- mail/archiveopteryx/Makefile >+++ mail/archiveopteryx/Makefile >@@ -36,6 +36,8 @@ PLIST_SUB+= GROUPS="${GROUPS}" > JAM?= ${LOCALBASE}/bin/jam > JAMARG+= -dx > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > # force Clang when on FreeBSD >diff --git mail/cclient/Makefile mail/cclient/Makefile >index a34d08227792..556c296714d2 100644 >--- mail/cclient/Makefile >+++ mail/cclient/Makefile >@@ -55,7 +55,7 @@ SHLIBBASE= c-client4 > SHLIBMAJ= 9 > SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ} > MAKE_ENV+= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} >-PLIST_SUB= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} >+PLIST_SUB+= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} > > post-patch: > .for file in Makefile src/osdep/unix/Makefile src/osdep/unix/Makefile.gss >diff --git mail/exim-doc-html/Makefile mail/exim-doc-html/Makefile >index 303a20f81a18..b8721c1f1d7a 100644 >--- mail/exim-doc-html/Makefile >+++ mail/exim-doc-html/Makefile >@@ -24,6 +24,8 @@ AVAILABLE_FORMATS= html \ > postscript > NO_BUILD= yes > >+OPTIONS_DEFINE= DOCS >+ > .if make(makesum) && !defined(FETCH_ALL) > .error "You forgot to define FETCH_ALL to create the sane distinfo" > .endif >diff --git mail/fastforward/Makefile mail/fastforward/Makefile >index f98698d6af08..0f18cd9e7880 100644 >--- mail/fastforward/Makefile >+++ mail/fastforward/Makefile >@@ -19,6 +19,8 @@ PORTDOCS= ALIASES > > PLIST_FILES= ${FILES:S,^,bin/,} ${FILES:S,^,man/man1/,:S,$,.1.gz,} ${FILES:S,^,man/cat1/,:S,$,.0.gz,} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > .for binfile in ${FILES} > ${INSTALL_PROGRAM} ${WRKSRC}/${binfile} ${STAGEDIR}${PREFIX}/bin/${binfile} >diff --git mail/imapfilter/Makefile mail/imapfilter/Makefile >index 62116eedac31..246560acb761 100644 >--- mail/imapfilter/Makefile >+++ mail/imapfilter/Makefile >@@ -30,6 +30,8 @@ MAKE_ARGS= PREFIX=${PREFIX} \ > MANDIR=${MANPREFIX}/man \ > LIBLUA=-llua-${LUA_VER} > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's|-ldl ||' ${WRKSRC}/src/Makefile > >diff --git mail/muttils/Makefile mail/muttils/Makefile >index 1af3a43d0031..69057a0c6b4c 100644 >--- mail/muttils/Makefile >+++ mail/muttils/Makefile >@@ -20,6 +20,8 @@ USE_PYTHON= distutils autoplist > > PORTEXAMPLES= * > >+OPTIONS_DEFINE= EXAMPLES >+ > .include <bsd.port.options.mk> > > post-install: >diff --git mail/opendkim/Makefile mail/opendkim/Makefile >index fd05bf28ba68..5edf2dfb17f3 100644 >--- mail/opendkim/Makefile >+++ mail/opendkim/Makefile >@@ -40,7 +40,7 @@ OPTIONS_SUB= yes > OPTIONS_SINGLE= RESOLV > OPTIONS_SINGLE_RESOLV= STOCK_RESOLVER UNBOUND > OPTIONS_DEFINE= FILTER CURL GNUTLS JANSSON LDNS LMDB LUA MEMCACHED \ >- BDB_BASE OPENDBX OPENLDAP POPAUTH QUERY_CACHE SASL >+ BDB_BASE OPENDBX OPENLDAP POPAUTH QUERY_CACHE SASL DOCS > OPTIONS_DEFAULT= FILTER LUA UNBOUND > > STOCK_RESOLVER_DESC= Use the stock resolver library >@@ -100,8 +100,6 @@ QUERY_CACHE_CONFIGURE_ENABLE= query_cache > SASL_DESC= Enable SASL authentication with LDAP > SASL_CONFIGURE_WITH= sasl > >-DOCS_CONFIGURE_ON= --docdir=${WRKDIR}/doc >- > MAKE_ARGS+= pkgconfigdir="${PREFIX}/libdata/pkgconfig" > MAKE_ENV= INSTALL_STRIP_FLAG=${STRIP} > >diff --git mail/opendmarc/Makefile mail/opendmarc/Makefile >index fdbcd20c1b9f..2a6f92f252fb 100644 >--- mail/opendmarc/Makefile >+++ mail/opendmarc/Makefile >@@ -30,7 +30,7 @@ USE_RC_SUBR= opendmarc > > GNU_CONFIGURE= yes > >-OPTIONS_DEFINE= SPF >+OPTIONS_DEFINE= SPF DOCS > OPTIONS_DEFAULT= SPF > > SPF_DESC= Enable support for SPF record checking >diff --git mail/openemm2013/Makefile mail/openemm2013/Makefile >index 3422f1a239b9..4ac8bb8956fc 100644 >--- mail/openemm2013/Makefile >+++ mail/openemm2013/Makefile >@@ -67,6 +67,8 @@ ANT_TARGETS= build > ANT_BUILD_PARAM= -Dbuild=${WRKSRC}/target -Doe.home=${WRKSRC}/target -Dcatalina.home=${TOMCATDIR} -Dsrc=${WRKSRC} -f openemm_build.xml > JAVA_BUILD= yes > >+OPTIONS_DEFINE= DOCS >+ > do-extract: > @cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTNAME}.tar.gz ${EXTRACT_AFTER_ARGS} > >diff --git mail/openemm2015/Makefile mail/openemm2015/Makefile >index 71a7c916fe01..aa04b8766248 100644 >--- mail/openemm2015/Makefile >+++ mail/openemm2015/Makefile >@@ -64,6 +64,8 @@ ANT_TARGETS= build > ANT_BUILD_PARAM= -Dbuild=${WRKSRC}/target -Doe.home=${WRKSRC}/target -Dbin=${WRKSRC}/target/bin -Dcatalina.home=${TOMCATDIR} -Dsrc=${WRKSRC} -f openemm_build.xml > JAVA_BUILD= yes > >+OPTIONS_DEFINE= DOCS >+ > do-extract: > @cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTNAME}.tar.gz ${EXTRACT_AFTER_ARGS} > >diff --git mail/ovs/Makefile mail/ovs/Makefile >index fcf0f6921fd6..85d9e8904c9b 100644 >--- mail/ovs/Makefile >+++ mail/ovs/Makefile >@@ -35,6 +35,8 @@ PLIST_SUB= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWWROOT=${WWWROOT:S,${PREFIX}/,,} \ > > PORTDOCS= README CHANGES COPYING CHANGES.old README.old > >+OPTIONS_DEFINE= DOCS >+ > pre-everything:: > @${ECHO_MSG} "" > @${ECHO_MSG} "You may set following options:" >diff --git mail/panda-cclient/Makefile mail/panda-cclient/Makefile >index 1e5b14d7aeb1..a612b766ea8c 100644 >--- mail/panda-cclient/Makefile >+++ mail/panda-cclient/Makefile >@@ -57,7 +57,7 @@ SHLIBBASE= c-client4 > SHLIBMAJ= 10 > SHLIBNAME= lib${SHLIBBASE}.so.${SHLIBMAJ} > MAKE_ENV+= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} >-PLIST_SUB= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} >+PLIST_SUB+= SHLIBNAME=${SHLIBNAME} SHLIBBASE=${SHLIBBASE} > > pre-configure: > .for file in Makefile src/osdep/unix/Makefile src/osdep/unix/Makefile.gss >diff --git mail/policyd2/Makefile mail/policyd2/Makefile >index b87eda5c6908..599d76d131de 100644 >--- mail/policyd2/Makefile >+++ mail/policyd2/Makefile >@@ -32,7 +32,7 @@ SHEBANG_FILES= cbpadmin \ > WWWDIR= ${PREFIX}/www/policyd > PORTDOCS= AUTHORS ChangeLog INSTALL TODO WISHLIST > >-OPTIONS_DEFINE= MYSQL PGSQL SQLITE WEBUI >+OPTIONS_DEFINE= MYSQL PGSQL SQLITE WEBUI DOCS > OPTIONS_DEFAULT=MYSQL WEBUI > MYSQL_DESC= Add a dependency on DBD::mysql > PGSQL_DESC= Add a dependency on DBD::Pg >diff --git mail/postfix-policyd-sf/Makefile mail/postfix-policyd-sf/Makefile >index 033e4dde8292..d782040804df 100644 >--- mail/postfix-policyd-sf/Makefile >+++ mail/postfix-policyd-sf/Makefile >@@ -34,6 +34,8 @@ PLIST_FILES= sbin/${REALNAME}-cleanup \ > sbin/${REALNAME} \ > etc/${REALNAME}.conf.sample > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's,policyd.pid,postfix-policyd-sf.pid,' \ > ${WRKSRC}/policyd.conf >diff --git mail/pysieved/Makefile mail/pysieved/Makefile >index ff5a2718b441..b89439dc4777 100644 >--- mail/pysieved/Makefile >+++ mail/pysieved/Makefile >@@ -23,6 +23,8 @@ SUB_LIST= PORTNAME=${PORTNAME} PYTHON_CMD=${PYTHON_CMD} > > PORTDOCS= COPYING README README.Dovecot THANKS > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > ${REINPLACE_CMD} \ > 's!/usr/bin/env python!${PYTHON_CMD}!' \ >diff --git mail/qmail-rblchk/Makefile mail/qmail-rblchk/Makefile >index d835490a43a1..916b1e4d2743 100644 >--- mail/qmail-rblchk/Makefile >+++ mail/qmail-rblchk/Makefile >@@ -22,6 +22,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME} > ALL_TARGET= default > INSTALL_TARGET= setup > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e '/"cat/d; s|,02755|,0755|' ${WRKSRC}/hier.c > >diff --git mail/ratelimit-policyd/Makefile mail/ratelimit-policyd/Makefile >index 5c04d9670b0a..1f921908300c 100644 >--- mail/ratelimit-policyd/Makefile >+++ mail/ratelimit-policyd/Makefile >@@ -36,6 +36,8 @@ PLIST_FILES= bin/ratelimit-policyd.pl \ > PORTDATA= mysql-schema.sql > PORTDOCS= README.md > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/rc.d/ratelimit-policyd > ${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/ratelimit-policyd.pl >diff --git mail/sieve-connect/Makefile mail/sieve-connect/Makefile >index c77405a87619..6b39d8000f8b 100644 >--- mail/sieve-connect/Makefile >+++ mail/sieve-connect/Makefile >@@ -30,6 +30,8 @@ PLIST_FILES= bin/sieve-connect \ > > PORTDOCS= ChangeLog README.md TODO > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/sieve-connect \ > ${STAGEDIR}${PREFIX}/bin/sieve-connect >diff --git mail/slapd-cyrus/Makefile mail/slapd-cyrus/Makefile >index 9537f9ad0430..73995b4682ba 100644 >--- mail/slapd-cyrus/Makefile >+++ mail/slapd-cyrus/Makefile >@@ -28,6 +28,8 @@ PLIST_SUB= SITE_PERL_REL=${SITE_PERL_REL} \ > > PORTDOCS= slapd-cyrus.conf.sample > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} > ${INSTALL_DATA} -m 0444 ${WRKSRC}/t/etc/slapd.conf.dist \ >diff --git mail/spmfilter-clamav/Makefile mail/spmfilter-clamav/Makefile >index 409fe463e407..d831b21db94e 100644 >--- mail/spmfilter-clamav/Makefile >+++ mail/spmfilter-clamav/Makefile >@@ -19,7 +19,7 @@ CMAKE_ARGS+= --no-warn-unused-cli \ > > USE_LDCONFIG= ${PREFIX}/lib/spmfilter > >-OPTIONS_DEFINE= DEBUG >+OPTIONS_DEFINE= DEBUG DOCS > > DEBUG_CMAKE_ON= -DENABLE_DEBUG=TRUE > >diff --git mail/sympa/Makefile mail/sympa/Makefile >index 0d85773c254f..967ac4fea8a4 100644 >--- mail/sympa/Makefile >+++ mail/sympa/Makefile >@@ -99,7 +99,7 @@ USE_RC_SUBR= sympa > > CONFLICTS= sympa-5* > >-OPTIONS_DEFINE= FASTCGI APACHE >+OPTIONS_DEFINE= FASTCGI APACHE DOCS EXAMPLES > OPTIONS_DEFAULT=APACHE > OPTIONS_RADIO= DATABASE > OPTIONS_RADIO_DATABASE= PGSQL SYBASE MYSQL >diff --git math/blacs/Makefile math/blacs/Makefile >index 12a68f691bc3..276d44288f5e 100644 >--- math/blacs/Makefile >+++ math/blacs/Makefile >@@ -18,6 +18,8 @@ SUB_FILES= pkg-message > USES= fortran gmake > USE_LDCONFIG= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if ! ${PORT_OPTIONS:MDOCS} >diff --git math/blocksolve95/Makefile math/blocksolve95/Makefile >index e71d6b1df7be..3f1da1cf9142 100644 >--- math/blocksolve95/Makefile >+++ math/blocksolve95/Makefile >@@ -23,6 +23,7 @@ LIB_DEPENDS= libf2c.so:lang/f2c \ > > USES= fortran gmake tar:Z > >+OPTIONS_DEFINE= DOCS EXAMPLES > OPTIONS_RADIO= BLAS > OPTIONS_RADIO_BLAS= REFERENCE ATLAS > OPTIONS_DEFAULT= REFERENCE >diff --git math/ccmath/Makefile math/ccmath/Makefile >index e260ca32ad10..bc8596e475b4 100644 >--- math/ccmath/Makefile >+++ math/ccmath/Makefile >@@ -20,6 +20,8 @@ PORTDOCS= * > SRC_DIRS= cfit complex fft geom intg matrix roots sfunc simu sort statf \ > tseries util xarm > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if ${ARCH} == "amd64" >diff --git math/clp/Makefile math/clp/Makefile >index 8b4ed821b27d..4c1a014d72b8 100644 >--- math/clp/Makefile >+++ math/clp/Makefile >@@ -27,7 +27,7 @@ CONFIGURE_ARGS= --with-lapack-lib="${LAPACKLIB} -L${LOCALBASE}/lib" \ > --with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib" \ > --datadir=${DATADIR} > >-OPTIONS_DEFINE= DEBUG >+OPTIONS_DEFINE= DEBUG DOCS > PORTDOCS= * > > DEBUG_CXXFLAGS= -fomit-frame-pointer >diff --git math/emc2/Makefile math/emc2/Makefile >index 89b8478df487..74f1c714738c 100644 >--- math/emc2/Makefile >+++ math/emc2/Makefile >@@ -32,7 +32,7 @@ PORTEXAMPLES= * > > PLIST_FILES= bin/emc2 bin/prf_f3d > >-OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS EXAMPLES > > DOCS_DISTFILES= RTemc2_fr.pdf RTemc2_gb.pdf > >diff --git math/ggobi/Makefile math/ggobi/Makefile >index aef1dc8779cd..fb3389e2a127 100644 >--- math/ggobi/Makefile >+++ math/ggobi/Makefile >@@ -26,6 +26,8 @@ SUB_FILES= pkg-message > ALL_TARGET= all ggobirc > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > post-build: > @${REINPLACE_CMD} -e 's|plugin.la|plugin.so|g' ${WRKSRC}/ggobirc > >diff --git math/gracetmpl/Makefile math/gracetmpl/Makefile >index 9db940395e97..f89e4bc10bf8 100644 >--- math/gracetmpl/Makefile >+++ math/gracetmpl/Makefile >@@ -34,6 +34,8 @@ USE_GCC= yes > > PLIST_SUB+= PYTHON_VER=${PYTHON_VER} > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${ECHO_CMD} -n > ${WRKSRC}/Makefile.defs > >diff --git math/lapack95/Makefile math/lapack95/Makefile >index 0935bc737c47..0f55ffe5722b 100644 >--- math/lapack95/Makefile >+++ math/lapack95/Makefile >@@ -14,6 +14,8 @@ COMMENT= LAPACK95, Fortran90/95 wrapper for LAPACK > > USES= fortran tar:tgz > >+OPTIONS_DEFINE= EXAMPLES >+ > OPTIONS_RADIO= BLAS > OPTIONS_RADIO_BLAS= REFERENCE ATLAS > OPTIONS_DEFAULT= REFERENCE >diff --git math/liborigin/Makefile math/liborigin/Makefile >index f7d5eaee240c..e1756df6f17f 100644 >--- math/liborigin/Makefile >+++ math/liborigin/Makefile >@@ -23,7 +23,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME} > > PORTDOCS= * > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS >+ >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > > post-patch-DOXYGEN-off: >diff --git math/librsb/Makefile math/librsb/Makefile >index 1e307fb1d469..ce77473f1a6d 100644 >--- math/librsb/Makefile >+++ math/librsb/Makefile >@@ -28,6 +28,8 @@ USE_LDCONFIG= yes > > MANUAL_PACKAGE_BUILD= Optimizes for the local machine > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -E s/sed/gsed/g ${WRKSRC}/scripts/*.sh > >diff --git math/mpfr/Makefile math/mpfr/Makefile >index 2820612631e2..541f64840454 100644 >--- math/mpfr/Makefile >+++ math/mpfr/Makefile >@@ -35,4 +35,6 @@ INFO= mpfr > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git math/muparser/Makefile math/muparser/Makefile >index dbb0772fc80a..41600a1b57d0 100644 >--- math/muparser/Makefile >+++ math/muparser/Makefile >@@ -23,13 +23,12 @@ GNU_CONFIGURE= yes > # otherwise it fails to build when the EXAMPLES option is ON > MAKE_JOBS_UNSAFE= yes > >-OPTIONS_DEFINE= DOXYGEN EXAMPLES >+OPTIONS_DEFINE= DOCS DOXYGEN EXAMPLES > > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ > dot:graphics/graphviz > DOXYGEN_ALL_TARGET= documentation > DOXYGEN_PORTDOCS= * >-# PORTDOCS macro won't work if NOPORTDOCS is defined or if DOCS is disabled > DOXYGEN_IMPLIES= DOCS > > EXAMPLES_CONFIGURE_ENABLE= samples >diff --git math/nfft/Makefile math/nfft/Makefile >index 188a99c74c7c..17b7be82429b 100644 >--- math/nfft/Makefile >+++ math/nfft/Makefile >@@ -21,11 +21,12 @@ TEST_TARGET= check > USE_GITHUB= yes > GH_ACCOUNT= NFFT > >-OPTIONS_DEFINE= DOXYGEN >-OPTIONS_SUB= DOXYGEN >+OPTIONS_DEFINE= DOCS DOXYGEN >+OPTIONS_SUB= yes > > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_ALL_TARGET= all doc >+DOXYGEN_IMPLIES= DOCS > > INSTALL_TARGET=install-strip > >diff --git math/pari/Makefile math/pari/Makefile >index f9887b95d213..94aee0bab248 100644 >--- math/pari/Makefile >+++ math/pari/Makefile >@@ -29,7 +29,7 @@ CONFIGURE_ARGS= --mandir=${MANPREFIX}/man/man1 \ > --with-readline > ALL_TARGET= gp > >-OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS X11 >+OPTIONS_DEFINE= DOCS EXAMPLES OPTIMIZED_CFLAGS X11 > OPTIONS_RADIO= THREADS > OPTIONS_RADIO_THREADS= PTHREADS MPI > OPTIONS_DEFAULT= OPTIMIZED_CFLAGS X11 PTHREADS >diff --git math/ploticus/Makefile math/ploticus/Makefile >index c8ba20bd227b..a0aec46f0a7b 100644 >--- math/ploticus/Makefile >+++ math/ploticus/Makefile >@@ -39,6 +39,8 @@ PKGNAMESUFFIX= -nox11 > USE_XORG= xpm > .endif > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ > ${BUILD_WRKSRC}/Makefile ${BUILD_WRKSRC}/mkapi >diff --git math/py-bitvector/Makefile math/py-bitvector/Makefile >index 2cdf7e586fab..3267dfbe16a9 100644 >--- math/py-bitvector/Makefile >+++ math/py-bitvector/Makefile >@@ -19,6 +19,8 @@ PYDISTUTILS_PKGNAME= BitVector > > PORTDOCS= README BitVector-${PORTVERSION}.html > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${RM} ${WRKSRC}/test.py > >diff --git math/py-gato/Makefile math/py-gato/Makefile >index 6571ca80d647..ea1a80309ff1 100644 >--- math/py-gato/Makefile >+++ math/py-gato/Makefile >@@ -22,6 +22,8 @@ PORTEXAMPLES= * > USES= python:2.7 > USE_PYTHON= autoplist distutils > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > .for sample in *.alg *.pro *.cat >diff --git math/reduce-psl/Makefile math/reduce-psl/Makefile >index e9c987d649d9..db05bc78116c 100644 >--- math/reduce-psl/Makefile >+++ math/reduce-psl/Makefile >@@ -35,7 +35,7 @@ CONFIGURE_ARGS= --with-psl > > REDUCE_BINS= ${WRKSRC}/pslbuild/${TARGET_SDIR} > >-.include <bsd.port.options.mk> >+OPTIONS_DEFINE= DOCS > > do-install: > ${MKDIR} ${STAGEDIR}${DATADIR} >diff --git math/reduce/Makefile math/reduce/Makefile >index 957d1328243b..43430f7e5f33 100644 >--- math/reduce/Makefile >+++ math/reduce/Makefile >@@ -44,7 +44,7 @@ LDFLAGS+= `freetype-config --libs` > > REDUCE_BINS= ${WRKSRC}/cslbuild/${TARGET_SDIR} > >-.include <bsd.port.options.mk> >+OPTIONS_DEFINE= DOCS > > do-install: > ${MKDIR} ${STAGEDIR}${DATADIR} >diff --git math/scalapack/Makefile math/scalapack/Makefile >index 9a5418791f40..d5e460c0795b 100644 >--- math/scalapack/Makefile >+++ math/scalapack/Makefile >@@ -32,6 +32,8 @@ EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:tu} > SUB_FILES= pkg-message > PLIST_SUB= SVERSION=${SVERSION} PORTVERSION=${PORTVERSION} > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > .include <bsd.port.pre.mk> > > .if ${PORT_OPTIONS:MDOCS} >diff --git math/topaz/Makefile math/topaz/Makefile >index 7f9d925059ab..41437eda9d8f 100644 >--- math/topaz/Makefile >+++ math/topaz/Makefile >@@ -19,6 +19,8 @@ USES= ncurses readline > USE_XORG= x11 > MAKEFILE= Makefile.freebsd > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > ${LN} -sf ${PREFIX}/lib/topaz/topaz.sh ${STAGEDIR}${PREFIX}/bin/topaz > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >diff --git math/xgraph/Makefile math/xgraph/Makefile >index 62424b4785f2..46282e420020 100644 >--- math/xgraph/Makefile >+++ math/xgraph/Makefile >@@ -20,6 +20,8 @@ USES= imake tar:Z > USE_XORG= x11 xext > WRKSRC= ${WRKDIR}/${PORTNAME} > >+OPTIONS_DEFINE= EXAMPLES >+ > post-extract: > @${SED} -ne '2,19 {s|^ \* *||;p;}' < ${WRKSRC}/copyright.h > ${WRKSRC}/COPYING > >diff --git misc/elixir-mime/Makefile misc/elixir-mime/Makefile >index a3373256b69e..2a1612b1b470 100644 >--- misc/elixir-mime/Makefile >+++ misc/elixir-mime/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= elixir-lang > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git misc/elixir-uuid/Makefile misc/elixir-uuid/Makefile >index 5cfcdf2f8dee..b7cf2825f656 100644 >--- misc/elixir-uuid/Makefile >+++ misc/elixir-uuid/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= zyro > > ELIXIR_APP_NAME=uuid > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git misc/erlang-mimerl/Makefile misc/erlang-mimerl/Makefile >index 63319acc4b1d..f50951aff412 100644 >--- misc/erlang-mimerl/Makefile >+++ misc/erlang-mimerl/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar3 > USE_GITHUB= yes > GH_ACCOUNT= benoitc > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git misc/erlang-mimetypes/Makefile misc/erlang-mimetypes/Makefile >index 79bf86a2afdc..39c9bf76b597 100644 >--- misc/erlang-mimetypes/Makefile >+++ misc/erlang-mimetypes/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar3 > USE_GITHUB= yes > GH_ACCOUNT= spawngrid > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git misc/gwhich/Makefile misc/gwhich/Makefile >index 0048b0d793c1..ceca9bc521fa 100644 >--- misc/gwhich/Makefile >+++ misc/gwhich/Makefile >@@ -17,6 +17,8 @@ INFO= which > PORTEXAMPLES= EXAMPLES > PLIST_FILES= bin/gwhich man/man1/gwhich.1.gz > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/EXAMPLES ${STAGEDIR}${EXAMPLESDIR} >diff --git misc/heyu2/Makefile misc/heyu2/Makefile >index bfa603ef36a5..24c07dd9b935 100644 >--- misc/heyu2/Makefile >+++ misc/heyu2/Makefile >@@ -19,7 +19,7 @@ HAS_CONFIGURE= yes > CONFIGURE_SCRIPT= Configure > CONFIGURE_ARGS= freebsd > >-OPTIONS_DEFINE= CM17A EXTENDED RFXSENS RFXMETER DMX OREGON >+OPTIONS_DEFINE= CM17A EXTENDED RFXSENS RFXMETER DMX OREGON EXAMPLES > CM17A_DESC= X10 CM17A "Firecracker" Support > EXTENDED_DESC= Extended Type 0 (Shutter/Shade) Support > RFXSENS_DESC= RFXSensors (RF) Support >diff --git misc/qbrew/Makefile misc/qbrew/Makefile >index 540a73b9f94f..912f17190ca2 100644 >--- misc/qbrew/Makefile >+++ misc/qbrew/Makefile >@@ -19,6 +19,8 @@ QMAKE_ENV+= BINDIR="${PREFIX}/bin" \ > DATADIR="${DATADIR}" \ > DOCDIR="${DOCSDIR}" > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qbrew > >diff --git misc/sloccount/Makefile misc/sloccount/Makefile >index e16c0435b8ae..0789813c9836 100644 >--- misc/sloccount/Makefile >+++ misc/sloccount/Makefile >@@ -21,6 +21,8 @@ INSTALL_TARGET= install_programs install_man > > PORTDOCS= ChangeLog README TODO sloccount.html > >+OPTIONS_DEFINE= DOCS >+ > post-install: > .for file in lexcount1 c_count java_count php_count > @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${file} >diff --git misc/susv2/Makefile misc/susv2/Makefile >index 2f34848fa66a..26749c2b6737 100644 >--- misc/susv2/Makefile >+++ misc/susv2/Makefile >@@ -16,6 +16,8 @@ USES= tar:bzip2 > NO_BUILD= yes > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) >diff --git misc/susv3/Makefile misc/susv3/Makefile >index 23eb460dc3ae..e78307f40341 100644 >--- misc/susv3/Makefile >+++ misc/susv3/Makefile >@@ -16,6 +16,8 @@ USES= tar:bzip2 > NO_BUILD= yes > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) >diff --git misc/susv4/Makefile misc/susv4/Makefile >index ea54aac7e40b..6c33773db9bd 100644 >--- misc/susv4/Makefile >+++ misc/susv4/Makefile >@@ -20,6 +20,8 @@ NO_ARCH= yes > NO_BUILD= yes > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}) >diff --git misc/vdmfec/Makefile misc/vdmfec/Makefile >index 5f084954cb9b..6c6e941a3fe9 100644 >--- misc/vdmfec/Makefile >+++ misc/vdmfec/Makefile >@@ -24,6 +24,8 @@ PLIST_FILES= bin/vdm_decode \ > bin/vdmfec \ > man/man1/vdmfec.1.gz > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} >diff --git misc/vifm/Makefile misc/vifm/Makefile >index e439d03dc42e..c5b79d5d5ef9 100644 >--- misc/vifm/Makefile >+++ misc/vifm/Makefile >@@ -18,4 +18,6 @@ CONFIGURE_ARGS= --without-gtk > > USE_GITHUB= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git multimedia/avinfo/Makefile multimedia/avinfo/Makefile >index 3343ac78dc87..1b5d484e8ba7 100644 >--- multimedia/avinfo/Makefile >+++ multimedia/avinfo/Makefile >@@ -20,6 +20,8 @@ PLIST_FILES= bin/${PORTNAME} \ > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e '/^CC=/ d; /^CFLAGS=/ d; /^PREFIX=/ d' \ > ${WRKSRC}/config.mk >diff --git multimedia/cheese/Makefile multimedia/cheese/Makefile >index 36f6cfcee07f..30c17c725e15 100644 >--- multimedia/cheese/Makefile >+++ multimedia/cheese/Makefile >@@ -39,7 +39,7 @@ DOCS= AUTHORS COPYING ChangeLog NEWS README > GLIB_SCHEMAS= org.gnome.Cheese.gschema.xml > > OPTIONS_SUB= yes >-OPTIONS_DEFINE= MANPAGES >+OPTIONS_DEFINE= MANPAGES DOCS > OPTIONS_DEFAULT=MANPAGES > > MANPAGES_CONFIGURE_ENABLE= man >diff --git multimedia/devede/Makefile multimedia/devede/Makefile >index ad9c9bc1435a..3fb82008f382 100644 >--- multimedia/devede/Makefile >+++ multimedia/devede/Makefile >@@ -31,7 +31,7 @@ NO_BUILD= yes > > PORTDOCS= * > >-OPTIONS_DEFINE= IBUS NLS >+OPTIONS_DEFINE= DOCS IBUS NLS > OPTIONS_DEFAULT= IBUS > OPTIONS_SUB= yes > >diff --git multimedia/dvd-slideshow/Makefile multimedia/dvd-slideshow/Makefile >index c4ba26b8b1af..b4c22a9dc1d6 100644 >--- multimedia/dvd-slideshow/Makefile >+++ multimedia/dvd-slideshow/Makefile >@@ -28,7 +28,7 @@ RUN_DEPENDS= bash:shells/bash \ > NO_BUILD= yes > DATADIR= ${PREFIX}/share/apps/${PORTNAME} > >-OPTIONS_DEFINE= LAME THEMES TOOLAME VORBIS >+OPTIONS_DEFINE= DOCS LAME THEMES TOOLAME VORBIS > THEMES_DESC= Install optional themes > > LAME_RUN_DEPENDS= lame:audio/lame >diff --git multimedia/ffms2/Makefile multimedia/ffms2/Makefile >index 9e8e6bb6d9bf..6a6f30f3af88 100644 >--- multimedia/ffms2/Makefile >+++ multimedia/ffms2/Makefile >@@ -28,6 +28,8 @@ INSTALL_TARGET= install-strip > USE_LDCONFIG= yes > DATADIR= ${PREFIX}/lib/vapoursynth > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e '/^dist_doc_DATA/s,=,& \ > doc/${PORTNAME}-vapoursynth.md,' \ >diff --git multimedia/gpodder/Makefile multimedia/gpodder/Makefile >index 57db5325195c..219be587bf1e 100644 >--- multimedia/gpodder/Makefile >+++ multimedia/gpodder/Makefile >@@ -21,7 +21,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR} > ${PYTHON_PKGNAMEPREFIX}dbus>=0:devel/py-dbus@${PY_FLAVOR} \ > ${PYTHON_PKGNAMEPREFIX}eyed3>=0:audio/py-eyed3@${PY_FLAVOR} > >-OPTIONS_DEFINE= GTK2 NOTIFY MUTAGEN OGG2MP3 >+OPTIONS_DEFINE= GTK2 NOTIFY MUTAGEN OGG2MP3 DOCS > OPTIONS_DEFAULT= GTK2 > OPTIONS_SUB= yes > MUTAGEN_DESC= Allow metadata manipulation >diff --git multimedia/kvazaar/Makefile multimedia/kvazaar/Makefile >index 99cbc8477e21..6ca84abfce12 100644 >--- multimedia/kvazaar/Makefile >+++ multimedia/kvazaar/Makefile >@@ -29,7 +29,7 @@ TEST_TARGET= check > INSTALL_TARGET= install-strip > USE_LDCONFIG= yes > >-OPTIONS_DEFINE= ASM CRYPTOPP >+OPTIONS_DEFINE= ASM CRYPTOPP DOCS > OPTIONS_DEFAULT=ASM > > ASM_BUILD_DEPENDS= ${ASM_BUILD_DEPENDS_${ARCH}} >diff --git multimedia/libdvdnav/Makefile multimedia/libdvdnav/Makefile >index 4d0bdbf56dc8..f407442bedd9 100644 >--- multimedia/libdvdnav/Makefile >+++ multimedia/libdvdnav/Makefile >@@ -23,4 +23,6 @@ USE_LDCONFIG= yes > > PORTDOCS= AUTHORS COPYING ChangeLog README TODO > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git multimedia/libdvdread/Makefile multimedia/libdvdread/Makefile >index 090c3720709b..0fc9b3bada54 100644 >--- multimedia/libdvdread/Makefile >+++ multimedia/libdvdread/Makefile >@@ -21,7 +21,7 @@ USE_LDCONFIG= yes > > PORTDOCS= AUTHORS COPYING ChangeLog NEWS README TODO > >-OPTIONS_DEFINE= DVDCSS >+OPTIONS_DEFINE= DVDCSS DOCS > .if !defined(PACKAGE_BUILDING) > OPTIONS_DEFAULT= DVDCSS > .endif >diff --git multimedia/linux-c6-libtheora/Makefile multimedia/linux-c6-libtheora/Makefile >index 3cdef9b8bf0b..d59a3a716d76 100644 >--- multimedia/linux-c6-libtheora/Makefile >+++ multimedia/linux-c6-libtheora/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git multimedia/linux-c6-libv4l/Makefile multimedia/linux-c6-libv4l/Makefile >index cda377f15c93..0caabd0c7699 100644 >--- multimedia/linux-c6-libv4l/Makefile >+++ multimedia/linux-c6-libv4l/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git multimedia/linux-c7-libtheora/Makefile multimedia/linux-c7-libtheora/Makefile >index f513bd00a9d8..2085d50bf50e 100644 >--- multimedia/linux-c7-libtheora/Makefile >+++ multimedia/linux-c7-libtheora/Makefile >@@ -19,4 +19,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git multimedia/linux-c7-libv4l/Makefile multimedia/linux-c7-libv4l/Makefile >index 7cd889b2cf5b..2432339b9035 100644 >--- multimedia/linux-c7-libv4l/Makefile >+++ multimedia/linux-c7-libv4l/Makefile >@@ -20,4 +20,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git multimedia/mpc-qt/Makefile multimedia/mpc-qt/Makefile >index 02c31959c1a0..78b3fa203004 100644 >--- multimedia/mpc-qt/Makefile >+++ multimedia/mpc-qt/Makefile >@@ -24,4 +24,6 @@ USE_GL= gl > CXXFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \ > -D_DECLARE_C99_LDBL_MATH # XXX ports/193528 > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git multimedia/mpv/Makefile multimedia/mpv/Makefile >index 16f7cd13bb37..de13386a3f71 100644 >--- multimedia/mpv/Makefile >+++ multimedia/mpv/Makefile >@@ -42,7 +42,7 @@ CONFIGURE_ARGS= --docdir="${EXAMPLESDIR}" \ > --disable-vapoursynth-lazy \ > --enable-libmpv-shared > >-OPTIONS_DEFINE= ARCHIVE ASS DOCS LCMS2 LUAJIT MANPAGES TEST UCHARDET ZSH >+OPTIONS_DEFINE= ARCHIVE ASS DOCS LCMS2 LUAJIT MANPAGES TEST UCHARDET ZSH EXAMPLES > OPTIONS_DEFAULT= ARCHIVE ASS DVDREAD DVDNAV MANPAGES OPENGL UCHARDET \ > V4L VAAPI VDPAU X11 YTDL > OPTIONS_GROUP= IN VO AO >diff --git multimedia/nordlicht/Makefile multimedia/nordlicht/Makefile >index 0323eaefc93b..8fb35a648346 100644 >--- multimedia/nordlicht/Makefile >+++ multimedia/nordlicht/Makefile >@@ -30,6 +30,8 @@ BROKEN_powerpc64= Does not build > > SHEBANG_FILES= utils/mpv-nordlicht > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} \ > -e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' \ >diff --git multimedia/oscam/Makefile multimedia/oscam/Makefile >index 70174c62675c..09e7cb4ac304 100644 >--- multimedia/oscam/Makefile >+++ multimedia/oscam/Makefile >@@ -26,11 +26,15 @@ FETCH_DEPENDS+= svn:devel/subversion > SVN_REV= 11062 > SVN_SRC= http://www.streamboard.tv/svn/oscam/trunk > >+OPTIONS_DEFINE= EXAMPLES >+ > do-install: > ${RM} ${WRKSRC}/Distribution/*.debug > ${INSTALL_PROGRAM} ${WRKSRC}/Distribution/${PORTNAME}-${PORTVERSION}-* ${STAGEDIR}${PREFIX}/bin/oscam > ${INSTALL_MAN} ${WRKSRC}/Distribution/doc/man/*.1 ${STAGEDIR}${PREFIX}/man/man1/ > ${INSTALL_MAN} ${WRKSRC}/Distribution/doc/man/*.5 ${STAGEDIR}${PREFIX}/man/man5/ >+ >+do-install-EXAMPLES-on: > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ > ${INSTALL_DATA} ${WRKSRC}/Distribution/doc/example/* ${STAGEDIR}${EXAMPLESDIR}/ > >diff --git multimedia/sms1xxx-kmod/Makefile multimedia/sms1xxx-kmod/Makefile >index 4b8749534d88..0811e7ef61f1 100644 >--- multimedia/sms1xxx-kmod/Makefile >+++ multimedia/sms1xxx-kmod/Makefile >@@ -22,7 +22,7 @@ WRKSRC= ${WRKDIR}/siano-${PORTVERSION} > NO_PACKAGE= should be recompiled for a particular FreeBSD kernel > > NO_OPTIONS_SORT= yes >-OPTIONS_DEFINE= RC5WATCH DEBUG >+OPTIONS_DEFINE= DOCS RC5WATCH DEBUG > OPTIONS_MULTI= FIRMWARE > OPTIONS_MULTI_FIRMWARE= STELLAR NOVA > OPTIONS_DEFAULT= RC5WATCH NOVA >diff --git multimedia/vapoursynth-l-smash-works/Makefile multimedia/vapoursynth-l-smash-works/Makefile >index 3efaec5a87c8..cbecf92a31bb 100644 >--- multimedia/vapoursynth-l-smash-works/Makefile >+++ multimedia/vapoursynth-l-smash-works/Makefile >@@ -45,6 +45,8 @@ PLIST_FILES= lib/libvslsmashsource.so.${PORTVERSION:E} \ > %%DATADIR%%/libvslsmashsource.so > PORTDOCS= README > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -Ee '/CROSS/!s/^(CC|LD|REV|HASH)=.*/: $${&}/' \ > -e 's/pushd/cd/; s/popd/cd -/' \ >diff --git multimedia/winff/Makefile multimedia/winff/Makefile >index 5ede31e7eacf..a0762546fe84 100644 >--- multimedia/winff/Makefile >+++ multimedia/winff/Makefile >@@ -46,6 +46,8 @@ USE_GNOME+= cairo > INSTALLS_ICONS=yes > .endif > >+OPTIONS_DEFINE= DOCS >+ > pre-configure: > ${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|g' ${BUILD_WRKSRC}/unit1.pas > .for fp in unit1.pas unit4.pas scripts/check_presets.sh >diff --git net-im/centerim-devel/Makefile net-im/centerim-devel/Makefile >index 29e71591b30d..38402c1b504e 100644 >--- net-im/centerim-devel/Makefile >+++ net-im/centerim-devel/Makefile >@@ -29,7 +29,7 @@ SHEBANG_LANG= gawk > gawk_OLD_CMD= /bin/gawk > gawk_CMD= /usr/bin/awk > >-OPTIONS_DEFINE= NLS MULTIBYTE FRIBIDI MSN YAHOO IRC JABBER GPGME RSS LJ GG >+OPTIONS_DEFINE= NLS MULTIBYTE FRIBIDI MSN YAHOO IRC JABBER GPGME RSS LJ GG DOCS > > FRIBIDI_DESC= Fribidi Support > MSN_DESC= MSN Protocol >diff --git net-im/centerim/Makefile net-im/centerim/Makefile >index 3e87f9d199d4..d372b0b3138d 100644 >--- net-im/centerim/Makefile >+++ net-im/centerim/Makefile >@@ -29,7 +29,7 @@ SHEBANG_FILES= misc/CenterIMLog2HTML.py misc/cimformathistory misc/cimextracthis > gawk_OLD_CMD= /bin/gawk > gawk_CMD= /usr/bin/awk > >-OPTIONS_DEFINE= NLS MULTIBYTE FRIBIDI MSN YAHOO IRC JABBER GPGME RSS LJ GG >+OPTIONS_DEFINE= NLS MULTIBYTE FRIBIDI MSN YAHOO IRC JABBER GPGME RSS LJ GG DOCS > > FRIBIDI_DESC= Fribidi Support > MSN_DESC= MSN Protocol >diff --git net-im/prosody-modules/Makefile net-im/prosody-modules/Makefile >index 31dff4e878b5..dcadf1ccec5e 100644 >--- net-im/prosody-modules/Makefile >+++ net-im/prosody-modules/Makefile >@@ -23,6 +23,8 @@ PLIST_SUB= INSTALLPATH=${INSTALLPATH} > WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTNAME} > INSTALLPATH= ${PREFIX}/lib/${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${INSTALLPATH} ${STAGEDIR}${DOCSDIR} > cd ${WRKSRC} && ${INSTALL_DATA} mod_*/*.lua ${STAGEDIR}${INSTALLPATH} >diff --git net-im/sayaka/Makefile net-im/sayaka/Makefile >index f306d326d848..8e837cb0fc20 100644 >--- net-im/sayaka/Makefile >+++ net-im/sayaka/Makefile >@@ -22,7 +22,7 @@ PORTDOCS= README.md > > WRKSRC_SUBDIR= vala > >-OPTIONS_DEFINE= COLORMAP >+OPTIONS_DEFINE= COLORMAP DOCS > OPTIONS_DEFAULT=COLORMAP > OPTIONS_SUB= yes > >diff --git net-im/skype-devel/Makefile net-im/skype-devel/Makefile >index 257fee4403e2..7da7354e4227 100644 >--- net-im/skype-devel/Makefile >+++ net-im/skype-devel/Makefile >@@ -14,7 +14,7 @@ COMMENT= P2P VoIP software, development version > > CONFLICTS= skype-[0-9]* > >-OPTIONS_DEFINE= VIDEO >+OPTIONS_DEFINE= DOCS VIDEO > OPTIONS_DEFAULT=VIDEO > VIDEO_DESC= [broken] Video support > >diff --git net-im/skype/Makefile net-im/skype/Makefile >index a91cba9cc398..7b334f0af19e 100644 >--- net-im/skype/Makefile >+++ net-im/skype/Makefile >@@ -14,7 +14,7 @@ COMMENT= P2P VoIP software > > CONFLICTS= skype-devel-[0-9]* > >-OPTIONS_DEFINE= VIDEO >+OPTIONS_DEFINE= DOCS VIDEO > OPTIONS_DEFAULT=VIDEO > > NO_BUILD= yes >diff --git net-im/skype4/Makefile net-im/skype4/Makefile >index f1c6a5a71329..f8fda8f48077 100644 >--- net-im/skype4/Makefile >+++ net-im/skype4/Makefile >@@ -16,7 +16,7 @@ RUN_DEPENDS= ${LINUXBASE}/lib/skype_oss_wrapper/libpulse.so.0:audio/linux-skype_ > > CONFLICTS= skype-devel-[0-9]* > >-OPTIONS_DEFINE= VIDEO >+OPTIONS_DEFINE= DOCS VIDEO > OPTIONS_DEFAULT=VIDEO > > NO_BUILD= yes >diff --git net-im/talkatu/Makefile net-im/talkatu/Makefile >index bf9f7d0b13b9..798d30546e02 100644 >--- net-im/talkatu/Makefile >+++ net-im/talkatu/Makefile >@@ -22,4 +22,6 @@ USE_LDCONFIG= yes > MESON_ARGS= -Dgobject-introspection=false > WRKSRC= ${WRKDIR}/rw_grim-talkatu-${DISTNAME} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git net-im/telegram/Makefile net-im/telegram/Makefile >index 6161cc855e14..9283d5b85e85 100644 >--- net-im/telegram/Makefile >+++ net-im/telegram/Makefile >@@ -33,6 +33,8 @@ PLIST_FILES= bin/telegram-cli \ > etc/telegram-cli/server.pub > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/etc/telegram-cli > ${INSTALL_PROGRAM} ${WRKSRC}/bin/telegram-cli ${STAGEDIR}${PREFIX}/bin >diff --git net-im/vacuum-im/Makefile net-im/vacuum-im/Makefile >index 6c7e78f36c16..e21ead25b9cd 100644 >--- net-im/vacuum-im/Makefile >+++ net-im/vacuum-im/Makefile >@@ -28,4 +28,6 @@ DESKTOP_ENTRIES="Vacuum-IM" "Modular, crossplatform Jabber client" \ > "${PREFIX}/share/pixmaps/vacuum.png" "${PORTNAME}" \ > "Qt;Network;InstantMessaging;" false > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git net-mgmt/adcli/Makefile net-mgmt/adcli/Makefile >index a04e13cac701..b8b7284ed816 100644 >--- net-mgmt/adcli/Makefile >+++ net-mgmt/adcli/Makefile >@@ -20,6 +20,7 @@ BUILD_DEPENDS= xsltproc:textproc/libxslt \ > GNU_CONFIGURE= yes > TEST_TARGET= check > >+OPTIONS_DEFINE= DOCS > OPTIONS_SINGLE= GSSAPI > OPTIONS_SINGLE_GSSAPI= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT > OPTIONS_DEFAULT= GSSAPI_BASE >diff --git net-mgmt/argus3/Makefile net-mgmt/argus3/Makefile >index 7eba0fd49e0e..d9bfd19cab1f 100644 >--- net-mgmt/argus3/Makefile >+++ net-mgmt/argus3/Makefile >@@ -15,7 +15,7 @@ LICENSE= GPLv3 > > CONFLICTS= argus-2* argus-sasl-2* argus-clients-2* > >-OPTIONS_DEFINE= SASL >+OPTIONS_DEFINE= SASL EXAMPLES > OPTIONS_DEFAULT=SASL > SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 > SASL_CONFIGURE_ON= --with-sasl=${LOCALBASE} >diff --git net-mgmt/blackbox_exporter/Makefile net-mgmt/blackbox_exporter/Makefile >index f93dd32b0275..c695e599e1f4 100644 >--- net-mgmt/blackbox_exporter/Makefile >+++ net-mgmt/blackbox_exporter/Makefile >@@ -29,6 +29,8 @@ USE_RC_SUBR= ${PORTNAME} > > PORTEXAMPLES= ${WRKSRC}/*.yml > >+OPTIONS_DEFINE= EXAMPLES >+ > do-install: > ${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >diff --git net-mgmt/bsnmp-ucd/Makefile net-mgmt/bsnmp-ucd/Makefile >index 6ab2ff4a52bf..d88feedc8820 100644 >--- net-mgmt/bsnmp-ucd/Makefile >+++ net-mgmt/bsnmp-ucd/Makefile >@@ -16,7 +16,9 @@ GH_ACCOUNT= trociny > USES= uidfix > MAKE_ENV+= NO_OBJ=yes > >-post-install: >+OPTIONS_DEFINE= EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/snmpd.config.sample ${STAGEDIR}${EXAMPLESDIR} > >diff --git net-mgmt/dnsmap/Makefile net-mgmt/dnsmap/Makefile >index e9a25768c032..1e9ca285d572 100644 >--- net-mgmt/dnsmap/Makefile >+++ net-mgmt/dnsmap/Makefile >@@ -19,6 +19,8 @@ PORTDOCS= Changelog.txt README.txt CREDITS.txt use_cases.txt > > PLIST_FILES= bin/dnsmap bin/dnsmap-bulk ${DATADIR}/wordlist_TLAs.txt > >+OPTIONS_DEFINE= DOCS >+ > do-build: > ${CC} ${CFLAGS} ${WRKSRC}/dnsmap.c -o ${WRKSRC}/dnsmap > >diff --git net-mgmt/driftnet/Makefile net-mgmt/driftnet/Makefile >index f3510ada8451..28c4b2d74609 100644 >--- net-mgmt/driftnet/Makefile >+++ net-mgmt/driftnet/Makefile >@@ -29,4 +29,6 @@ PORTDOCS= * > > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git net-mgmt/fetchconfig/Makefile net-mgmt/fetchconfig/Makefile >index dd87340545cd..503853b3b925 100644 >--- net-mgmt/fetchconfig/Makefile >+++ net-mgmt/fetchconfig/Makefile >@@ -31,6 +31,8 @@ MODULES= model/3ComMSR.pm model/Abstract.pm model/Acme.pm \ > model/TellabsMSR.pm model/Terayon.pm Constants.pm Logger.pm > PORTDOCS= CHANGES README device_table.example > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \ > ${STAGEDIR}${PREFIX}/bin/${PORTNAME} >diff --git net-mgmt/hastmon/Makefile net-mgmt/hastmon/Makefile >index aeb1ac91d477..10d7112a7133 100644 >--- net-mgmt/hastmon/Makefile >+++ net-mgmt/hastmon/Makefile >@@ -21,6 +21,8 @@ INSTALL_TARGET= installdirs install > > PORTDOCS= ChangeLog COPYRIGHT README > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} \ > -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \ >diff --git net-mgmt/icinga-classicweb/Makefile net-mgmt/icinga-classicweb/Makefile >index cd45131d0a0f..6cc3b90ef37f 100644 >--- net-mgmt/icinga-classicweb/Makefile >+++ net-mgmt/icinga-classicweb/Makefile >@@ -7,6 +7,8 @@ DISTNAME= icinga-${PORTVERSION} > MAINTAINER= lme@FreeBSD.org > COMMENT= Classic web interface for Icinga 1 and 2 > >+OPTIONS_DEFINE= EXAMPLES >+ > .include "${.CURDIR}/../icinga-core/Makefile.common" > > LIB_DEPENDS+= libgd.so:graphics/gd >diff --git net-mgmt/icinga-core/Makefile net-mgmt/icinga-core/Makefile >index 2850906380bc..1a116c90ced9 100644 >--- net-mgmt/icinga-core/Makefile >+++ net-mgmt/icinga-core/Makefile >@@ -20,7 +20,7 @@ SUB_FILES= pkg-message > SUB_LIST= PREFIX=${PREFIX} \ > ${PLIST_SUB} > >-OPTIONS_DEFINE= IDOUTILS >+OPTIONS_DEFINE= IDOUTILS EXAMPLES > OPTIONS_RADIO= PLUGINS > OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS > OPTIONS_DEFAULT= IDOUTILS MONPLUGINS >diff --git net-mgmt/icingaweb2/Makefile net-mgmt/icingaweb2/Makefile >index 2135b584a739..44e86704eae4 100644 >--- net-mgmt/icingaweb2/Makefile >+++ net-mgmt/icingaweb2/Makefile >@@ -30,7 +30,7 @@ SUB_LIST= WWWDIR=${WWWDIR} \ > PLIST_SUB= WWWOWN=${WWWOWN} \ > WWWGRP=${WWWGRP} > >-OPTIONS_DEFINE= NLS LDAP MYSQL PGSQL PDF >+OPTIONS_DEFINE= NLS LDAP MYSQL PGSQL PDF EXAMPLES > OPTIONS_DEFAULT= LDAP MYSQL PGSQL > > PDF_DESC= Export graphs as PDF >diff --git net-mgmt/iftop/Makefile net-mgmt/iftop/Makefile >index 4c015ab6e554..63be88d437ea 100644 >--- net-mgmt/iftop/Makefile >+++ net-mgmt/iftop/Makefile >@@ -17,6 +17,8 @@ GNU_CONFIGURE= yes > PORTDOCS= README > PLIST_FILES= sbin/iftop man/man8/iftop.8.gz > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin > ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8 >diff --git net-mgmt/nagiosgraph/Makefile net-mgmt/nagiosgraph/Makefile >index 6689a275c651..db6c806d1e64 100644 >--- net-mgmt/nagiosgraph/Makefile >+++ net-mgmt/nagiosgraph/Makefile >@@ -15,7 +15,7 @@ LICENSE= ART20 > RUN_DEPENDS= rrdtool>=0:databases/rrdtool \ > p5-CGI>=0:www/p5-CGI > >-OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS EXAMPLES > OPTIONS_SINGLE= NAGIOS > OPTIONS_SINGLE_NAGIOS= NAGIOS35 NAGIOS4 > OPTIONS_DEFAULT= NAGIOS35 >diff --git net-mgmt/netmagis-database/Makefile net-mgmt/netmagis-database/Makefile >index 5d8759a11238..a6e70f63f6e5 100644 >--- net-mgmt/netmagis-database/Makefile >+++ net-mgmt/netmagis-database/Makefile >@@ -20,4 +20,6 @@ MASTERDIR= ${.CURDIR}/../netmagis-common > PKGMESSAGE= ${.CURDIR}/pkg-message > PLIST= ${.CURDIR}/pkg-plist > >+OPTIONS_DEFINE= EXAMPLES >+ > .include "${MASTERDIR}/Makefile" >diff --git net-mgmt/netmagis-detecteq/Makefile net-mgmt/netmagis-detecteq/Makefile >index 0d27d0fa1523..56739ac0716f 100644 >--- net-mgmt/netmagis-detecteq/Makefile >+++ net-mgmt/netmagis-detecteq/Makefile >@@ -15,4 +15,6 @@ MASTERDIR= ${.CURDIR}/../netmagis-common > PKGMESSAGE= ${.CURDIR}/pkg-message > PLIST= ${.CURDIR}/pkg-plist > >+OPTIONS_DEFINE= EXAMPLES >+ > .include "${MASTERDIR}/Makefile" >diff --git net-mgmt/netmagis-metro/Makefile net-mgmt/netmagis-metro/Makefile >index 218c51e11455..c3861ccfd1e1 100644 >--- net-mgmt/netmagis-metro/Makefile >+++ net-mgmt/netmagis-metro/Makefile >@@ -24,4 +24,6 @@ MASTERDIR= ${.CURDIR}/../netmagis-common > PKGMESSAGE= ${.CURDIR}/pkg-message > PLIST= ${.CURDIR}/pkg-plist > >+OPTIONS_DEFINE= EXAMPLES >+ > .include "${MASTERDIR}/Makefile" >diff --git net-mgmt/netmagis-servers/Makefile net-mgmt/netmagis-servers/Makefile >index 8485d6ebab81..975b3b7c4888 100644 >--- net-mgmt/netmagis-servers/Makefile >+++ net-mgmt/netmagis-servers/Makefile >@@ -15,4 +15,6 @@ MASTERDIR= ${.CURDIR}/../netmagis-common > PKGMESSAGE= ${.CURDIR}/pkg-message > PLIST= ${.CURDIR}/pkg-plist > >+OPTIONS_DEFINE= EXAMPLES >+ > .include "${MASTERDIR}/Makefile" >diff --git net-mgmt/netmagis-topo/Makefile net-mgmt/netmagis-topo/Makefile >index 3d19753f5e76..057d3d706cc2 100644 >--- net-mgmt/netmagis-topo/Makefile >+++ net-mgmt/netmagis-topo/Makefile >@@ -24,6 +24,8 @@ PLIST= ${.CURDIR}/pkg-plist > > ALL_TARGET=build${PKGNAMESUFFIX?=} > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > @${MKDIR} ${STAGEDIR}/var/netmagis/eqgen ${STAGEDIR}/var/netmagis/eqvirt > >diff --git net-mgmt/netmagis-www/Makefile net-mgmt/netmagis-www/Makefile >index fa00b8ca846d..cf46816cc0b3 100644 >--- net-mgmt/netmagis-www/Makefile >+++ net-mgmt/netmagis-www/Makefile >@@ -23,6 +23,8 @@ MASTERDIR= ${.CURDIR}/../netmagis-common > PKGMESSAGE= ${.CURDIR}/pkg-message > PLIST= ${.CURDIR}/pkg-plist > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/htgtcl > >diff --git net-mgmt/nsca-ng/Makefile net-mgmt/nsca-ng/Makefile >index 807549e76167..6b7342aa9733 100644 >--- net-mgmt/nsca-ng/Makefile >+++ net-mgmt/nsca-ng/Makefile >@@ -33,6 +33,8 @@ CONFIGURE_ARGS+= --enable-server > > PORTDOCS= NEWS COPYING README PROTOCOL TODO > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > .include <bsd.port.pre.mk> > > .if ${SSL_DEFAULT:Mlibressl*} >diff --git net-mgmt/p5-Monitoring-Plugin/Makefile net-mgmt/p5-Monitoring-Plugin/Makefile >index f0bad744cd14..d28299bd3411 100644 >--- net-mgmt/p5-Monitoring-Plugin/Makefile >+++ net-mgmt/p5-Monitoring-Plugin/Makefile >@@ -25,6 +25,8 @@ USE_PERL5= configure > > PORTDOCS= Changes README > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git net-mgmt/p5-Nagios-Plugin/Makefile net-mgmt/p5-Nagios-Plugin/Makefile >index d332b198707b..a5e183223756 100644 >--- net-mgmt/p5-Nagios-Plugin/Makefile >+++ net-mgmt/p5-Nagios-Plugin/Makefile >@@ -23,6 +23,8 @@ USE_PERL5= configure > > PORTDOCS= Changes README > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git net-mgmt/p5-RDR-Collector/Makefile net-mgmt/p5-RDR-Collector/Makefile >index 111f59e34be5..edec153143e8 100644 >--- net-mgmt/p5-RDR-Collector/Makefile >+++ net-mgmt/p5-RDR-Collector/Makefile >@@ -17,6 +17,8 @@ USES= perl5 shebangfix > USE_PERL5= configure > SHEBANG_FILES= examples/*.pl > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} >diff --git net-mgmt/pdagent-integrations/Makefile net-mgmt/pdagent-integrations/Makefile >index 100fe3ebe0d4..65d68d43f12d 100644 >--- net-mgmt/pdagent-integrations/Makefile >+++ net-mgmt/pdagent-integrations/Makefile >@@ -25,6 +25,8 @@ SUB_FILES= pagerduty-icinga2.conf pkg-message > NO_ARCH= yes > NO_BUILD= yes > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > ${REINPLACE_CMD} 's|/usr/share/pdagent-integrations/bin|${PREFIX}/bin|g' ${WRKSRC}/pagerduty_nagios.cfg ${WRKSRC}/conf.d/sensu_pagerduty_handler.json > >diff --git net-mgmt/pmacct/Makefile net-mgmt/pmacct/Makefile >index d54ba202a648..93447d413692 100644 >--- net-mgmt/pmacct/Makefile >+++ net-mgmt/pmacct/Makefile >@@ -22,7 +22,7 @@ CPPFLAGS+= "-I${LOCALBASE}/include" > LDFLAGS+= "-L${LOCALBASE}/lib" > > OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 THREADS LAYER2 IPV6 DEBUG \ >- DOCS PLABEL RABBITMQ KAFKA JANSSON AVRO >+ DOCS PLABEL RABBITMQ KAFKA JANSSON AVRO EXAMPLES > OPTIONS_DEFAULT=MMAP LAYER2 THREADS SHARED > > AVRO_DESC= Enable avro support >diff --git net-mgmt/pnp/Makefile net-mgmt/pnp/Makefile >index ffdfe8e3de8c..db58f3366f04 100644 >--- net-mgmt/pnp/Makefile >+++ net-mgmt/pnp/Makefile >@@ -19,7 +19,7 @@ RUN_DEPENDS?= ${LOCALBASE}/bin/rrdtool:databases/rrdtool \ > MAKE_JOBS_UNSAFE= yes > USES= dos2unix perl5 php php:web > >-OPTIONS_DEFINE= PDF >+OPTIONS_DEFINE= PDF EXAMPLES > OPTIONS_DEFAULT= PDF > PDF_DESC= Use built-in fpdf library to produce PDF views > >diff --git net-mgmt/py-snmp4/Makefile net-mgmt/py-snmp4/Makefile >index 2dd51a9abb88..8b9c56de0596 100644 >--- net-mgmt/py-snmp4/Makefile >+++ net-mgmt/py-snmp4/Makefile >@@ -28,6 +28,8 @@ DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} > PORTDOCS= * > PORTEXAMPLES= * > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > (cd ${WRKSRC}/docs/source/docs && \ >diff --git net-mgmt/smokeping/Makefile net-mgmt/smokeping/Makefile >index 8894d1f7f55f..5c509a1dcd7d 100644 >--- net-mgmt/smokeping/Makefile >+++ net-mgmt/smokeping/Makefile >@@ -64,7 +64,7 @@ RADIUS_DESC= Support for Radius probes > TELNET_DESC= Support for TelnetIOSPing probes > DNS_DESC= Support for AnotherDNS probes > >-OPTIONS_DEFINE= ECHOPING CURL RADIUS TELNET DNS FPING >+OPTIONS_DEFINE= ECHOPING CURL RADIUS TELNET DNS FPING EXAMPLES > OPTIONS_DEFAULT= FPING > > FPING_RUN_DEPENDS= ${LOCALBASE}/sbin/fping:net/fping >diff --git net-p2p/cpuminer/Makefile net-p2p/cpuminer/Makefile >index 0ef07ca21bbe..dd6f212f4e7c 100644 >--- net-p2p/cpuminer/Makefile >+++ net-p2p/cpuminer/Makefile >@@ -16,7 +16,7 @@ LICENSE= GPLv2 > LIB_DEPENDS= libcurl.so:ftp/curl \ > libjansson.so:devel/jansson > >-OPTIONS_DEFINE= GCC >+OPTIONS_DEFINE= GCC DOCS > OPTIONS_DEFAULT=GCC > > USES= autoreconf cpe >diff --git net-p2p/libbt/Makefile net-p2p/libbt/Makefile >index 8bec90c724ca..fb35fe30bc08 100644 >--- net-p2p/libbt/Makefile >+++ net-p2p/libbt/Makefile >@@ -19,6 +19,8 @@ LDFLAGS+= -L${LOCALBASE}/lib > > PORTDOCS= protocol-ext.txt protocol.txt > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > post-patch: >diff --git net-p2p/libswift/Makefile net-p2p/libswift/Makefile >index 54d3d54a2609..2b6798c4d2ab 100644 >--- net-p2p/libswift/Makefile >+++ net-p2p/libswift/Makefile >@@ -43,6 +43,8 @@ SWIFT_PIDDIR= /var/run/${PORTNAME}/ > > USE_RC_SUBR= ${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} \ > ${STAGEDIR}${SWIFT_SHAREDIR} \ >diff --git net-p2p/linuxdcpp/Makefile net-p2p/linuxdcpp/Makefile >index b70ebf70708f..4ba454ff8cb9 100644 >--- net-p2p/linuxdcpp/Makefile >+++ net-p2p/linuxdcpp/Makefile >@@ -19,7 +19,7 @@ USE_GNOME= libglade2 > PORTDOCS= * > DESTDIRNAME= FAKE_ROOT > >-OPTIONS_DEFINE= NOTIFY >+OPTIONS_DEFINE= NOTIFY DOCS > OPTIONS_DEFAULT=NOTIFY > > .if defined(WITH_DEBUG) >diff --git net-p2p/minder/Makefile net-p2p/minder/Makefile >index ebe180916a35..1e059d18f360 100644 >--- net-p2p/minder/Makefile >+++ net-p2p/minder/Makefile >@@ -26,6 +26,8 @@ LDFLAGS+= $$(pkg-config --libs libxml-2.0) \ > PORTEXAMPLES= minder.cfg > PLIST_FILES= bin/minder > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e \ > 's|^CFLAGS|#CFLAGS| ; \ >diff --git net/axa/Makefile net/axa/Makefile >index 280fbb97371f..007f31d85c01 100644 >--- net/axa/Makefile >+++ net/axa/Makefile >@@ -32,13 +32,14 @@ SHEBANG_FILES= cert_tools/axa_link_certs.in > > PORTDOCS= * > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOCS DOXYGEN > OPTIONS_DEFAULT=DOXYGEN > > ALL_TARGET= all > INSTALL_TARGET= install-strip > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_ALL_TARGET= html-local >+DOXYGEN_IMPLIES= DOCS > > LDFLAGS+= -lm > >diff --git net/bsdproxy/Makefile net/bsdproxy/Makefile >index b228029f3c84..e8421d944db5 100644 >--- net/bsdproxy/Makefile >+++ net/bsdproxy/Makefile >@@ -16,6 +16,8 @@ USE_GNOME= glib12 > PLIST_FILES= bin/${PORTNAME} > PORTDOCS= ChangeLog README > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} >diff --git net/corosync2/Makefile.common net/corosync2/Makefile.common >index ddc71a2b0e78..ad516a7dbf7e 100644 >--- net/corosync2/Makefile.common >+++ net/corosync2/Makefile.common >@@ -26,7 +26,7 @@ LDFLAGS+= -B${LOCALBASE}/bin > INSTALL_TARGET= install-strip > TEST_TARGET= check > >-OPTIONS_DEFINE= DBUS SNMP >+OPTIONS_DEFINE= DBUS DOCS SNMP > OPTIONS_SUB= yes > > DBUS_LIB_DEPENDS+= libdbus-1.so:devel/dbus >diff --git net/delegate/Makefile net/delegate/Makefile >index d4b9e3e6f696..1a5120b3a537 100644 >--- net/delegate/Makefile >+++ net/delegate/Makefile >@@ -25,6 +25,8 @@ PLIST_FILES= sbin/delegated etc/rc.d/delegated.sh-dist > PORTDOCS= CHANGES COPYRIGHT DG9note.html HowToDG.html IPv6NOTE.txt \ > Manual.htm jpconv.htm tutor-en.htm tutor-jp.htm > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${LN} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/DG9note.html \ > ${WRKSRC}/IPv6NOTE.txt ${WRKSRC}/doc >diff --git net/deviceatlas-enterprise-c/Makefile net/deviceatlas-enterprise-c/Makefile >index 1ab57bee5d3f..42493635b720 100644 >--- net/deviceatlas-enterprise-c/Makefile >+++ net/deviceatlas-enterprise-c/Makefile >@@ -26,6 +26,8 @@ PLIST_SUB= PORTVERSION=${PORTVERSION} > > REGISTRATION_URL= https://deviceatlas.com/deviceatlas-haproxy-module > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > .include <bsd.port.pre.mk> > > .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) >diff --git net/dhcpd-pools/Makefile net/dhcpd-pools/Makefile >index 3ada2766b32f..b6982de3a35f 100644 >--- net/dhcpd-pools/Makefile >+++ net/dhcpd-pools/Makefile >@@ -25,6 +25,8 @@ MAKE_JOBS_UNSAFE= yes > > PORTDATA= snmptest.pl > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e '/features.h/d' ${WRKSRC}/src/getdata.c > >diff --git net/elixir-kafka_ex/Makefile net/elixir-kafka_ex/Makefile >index 3497173f43ba..3e5e61651187 100644 >--- net/elixir-kafka_ex/Makefile >+++ net/elixir-kafka_ex/Makefile >@@ -18,4 +18,6 @@ USE_GITHUB= yes > GH_ACCOUNT= jacklund > NO_ARCH= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git net/elixir-oauth2/Makefile net/elixir-oauth2/Makefile >index 0d176655e6e9..b7eceeeb48a9 100644 >--- net/elixir-oauth2/Makefile >+++ net/elixir-oauth2/Makefile >@@ -19,4 +19,6 @@ USE_GITHUB= yes > GH_ACCOUNT= scrogson > NO_ARCH= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git net/erlang-ranch/Makefile net/erlang-ranch/Makefile >index 0ca8754280d3..99b6b67e7448 100644 >--- net/erlang-ranch/Makefile >+++ net/erlang-ranch/Makefile >@@ -15,7 +15,9 @@ USE_GITHUB= yes > GH_ACCOUNT= ninenines > ERL_DOCS= doc/src/guide/* doc/src/manual/* > >-post-install: >+OPTIONS_DEFINE= DOCS EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} > >diff --git net/erlang-xmlrpc/Makefile net/erlang-xmlrpc/Makefile >index b3da3afd244c..a2db5e889a16 100644 >--- net/erlang-xmlrpc/Makefile >+++ net/erlang-xmlrpc/Makefile >@@ -16,6 +16,8 @@ WRKSRC= ${WRKDIR}/xmlrpc-${PORTVERSION} > > ERL_DOCS= doc/xmlrpc.pdf doc/xmlrpc.ps doc/xmlrpc.txt > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > do-build: > cd ${WRKSRC}/src && ${GMAKE} > >@@ -24,8 +26,10 @@ post-patch: > @${RM} ${WRKSRC}/src/*.orig > > post-install: >+ ${INSTALL_MAN} ${WRKSRC}/doc/xmlrpc.3 ${STAGEDIR}${MANPREFIX}/man/man3/erlang_xmlrpc.3 >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} >- ${INSTALL_MAN} ${WRKSRC}/doc/xmlrpc.3 ${STAGEDIR}${MANPREFIX}/man/man3/erlang_xmlrpc.3 > > .include <bsd.port.mk> >diff --git net/file2pcap/Makefile net/file2pcap/Makefile >index 3cda019ec66a..72e975722cdc 100644 >--- net/file2pcap/Makefile >+++ net/file2pcap/Makefile >@@ -21,6 +21,8 @@ ALL_TARGET= file2pcap > PLIST_FILES= bin/file2pcap > PORTDOCS= Changelog README.md TODO > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/file2pcap ${STAGEDIR}/${PREFIX}/bin > ${MKDIR} ${STAGEDIR}/${DOCSDIR} >diff --git net/freeradius3/Makefile net/freeradius3/Makefile >index 26de0d847500..a9e9462138e2 100644 >--- net/freeradius3/Makefile >+++ net/freeradius3/Makefile >@@ -50,7 +50,7 @@ OPTIONS_SUB= yes > OPTIONS_DEFINE= USER LDAP MYSQL PGSQL UNIXODBC FIREBIRD REDIS \ > EXPERIMENTAL UDPFROMTO DEVELOPER EDIR PERL REST \ > FREETDS IDN DOCS SQLITE3 PYTHON RUBY UNBOUND PCRE \ >- WINBIND >+ WINBIND EXAMPLES > OPTIONS_DEFAULT=USER PERL HEIMDAL UDPFROMTO > OPTIONS_SINGLE= KRB > OPTIONS_SINGLE_KRB= NOKRB HEIMDAL HEIMDAL_PORT MITKRB_PORT >diff --git net/freeswitch/Makefile net/freeswitch/Makefile >index fdc1f600eb2a..77cedda221f8 100644 >--- net/freeswitch/Makefile >+++ net/freeswitch/Makefile >@@ -46,7 +46,7 @@ GROUPS= ${USERS} > > SUB_FILES= pkg-message > >-OPTIONS_DEFINE= ALL_MODULES X11 >+OPTIONS_DEFINE= ALL_MODULES X11 EXAMPLES > OPTIONS_DEFAULT= 8K 16K ENGLISH > OPTIONS_MULTI= BITRATE LANGUAGE > OPTIONS_MULTI_BITRATE= 8K 16K 32K 48K >diff --git net/glusterfs/Makefile net/glusterfs/Makefile >index e5b1991d047c..50684e57e94f 100644 >--- net/glusterfs/Makefile >+++ net/glusterfs/Makefile >@@ -55,6 +55,8 @@ INSTALL_TARGET= install-strip > PLIST_SUB= GLUSTERLIBDIR="lib/${PORTNAME}/${PORTVERSION}" > KMODDIR?= /boot/modules > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1101001 >diff --git net/gnatsd/Makefile net/gnatsd/Makefile >index 1a88c373d630..dfee6ae31eaf 100644 >--- net/gnatsd/Makefile >+++ net/gnatsd/Makefile >@@ -18,6 +18,8 @@ GH_ACCOUNT= nats-io > > USE_RC_SUBR= gnatsd.sh > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/etc > ${INSTALL_DATA} ${FILESDIR}/gnatsd.conf ${STAGEDIR}${PREFIX}/etc/gnatsd.conf.sample >diff --git net/iodine/Makefile net/iodine/Makefile >index 4f975471c817..fd967e152fdd 100644 >--- net/iodine/Makefile >+++ net/iodine/Makefile >@@ -20,6 +20,8 @@ USE_RC_SUBR= iodined > USERS= _iodined > GROUPS= _iodined > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/bin/iodine ${STAGEDIR}${PREFIX}/bin > ${INSTALL_PROGRAM} ${WRKSRC}/bin/iodined ${STAGEDIR}${PREFIX}/sbin >diff --git net/l2tpd/Makefile net/l2tpd/Makefile >index 9d3a02207609..2daa9a333a89 100644 >--- net/l2tpd/Makefile >+++ net/l2tpd/Makefile >@@ -18,6 +18,8 @@ USES= compiler:nestedfct > PORTDOCS= README > ETCDIR= ${PREFIX}/etc/l2tp > >+OPTIONS_DEFINE= DOCS >+ > do-configure: > ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/doc/l2tpd.8 \ > ${WRKSRC}/doc/l2tpd.conf.sample ${WRKSRC}/doc/l2tp-secrets.5 \ >diff --git net/ldapscripts/Makefile net/ldapscripts/Makefile >index 60d4442a8b62..3dd0279943f9 100644 >--- net/ldapscripts/Makefile >+++ net/ldapscripts/Makefile >@@ -21,7 +21,7 @@ RUN_DEPENDS= ldapadd:net/openldap${OPENLDAP_VER}${OPENLDAP_FLAVOUR}-client \ > > NO_ARCH= yes > >-OPTIONS_DEFINE= SASL >+OPTIONS_DEFINE= SASL DOCS > SASL_VARS= OPENLDAP_FLAVOUR=-sasl WANT_OPENLDAP_SASL=yes > > USES= iconv tar:tgz >diff --git net/libmateweather/Makefile net/libmateweather/Makefile >index e1ad62dea537..3267c6dcf927 100644 >--- net/libmateweather/Makefile >+++ net/libmateweather/Makefile >@@ -26,4 +26,6 @@ INSTALL_TARGET= install-strip > > GLIB_SCHEMAS= org.mate.weather.gschema.xml > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git net/libnss-pgsql/Makefile net/libnss-pgsql/Makefile >index f6726bcda31e..3bfb6dfd0308 100644 >--- net/libnss-pgsql/Makefile >+++ net/libnss-pgsql/Makefile >@@ -19,6 +19,8 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc --includedir=${PREFIX}/include --libd > USE_LDCONFIG= yes > GNU_CONFIGURE= yes > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/conf/* ${STAGEDIR}${DOCSDIR} >diff --git net/linknx/Makefile net/linknx/Makefile >index 71fd9e0d60a9..97b97fcb0deb 100644 >--- net/linknx/Makefile >+++ net/linknx/Makefile >@@ -25,7 +25,7 @@ GNU_CONFIGURE= yes > CONFIGURE_ARGS+=CFLAGS="-I${LOCALBASE}/include" \ > LDFLAGS="-I${LOCALBASE}/include -L/${LOCALBASE}/lib" > >-OPTIONS_DEFINE= LIBESMTP LIBCURL LIBLUA MYSQL >+OPTIONS_DEFINE= LIBESMTP LIBCURL LIBLUA MYSQL DOCS > OPTIONS_DEFAULT= LIBESMTP > OPTIONS_SUB= > LIBESMTP_DESC= Install libesmtp for SMTP support >diff --git net/linux-c6-openldap/Makefile net/linux-c6-openldap/Makefile >index ee24b991e14b..385cb139a78c 100644 >--- net/linux-c6-openldap/Makefile >+++ net/linux-c6-openldap/Makefile >@@ -16,6 +16,8 @@ USE_LDCONFIG= yes > USE_LINUX= cyrus-sasl2 nss nspr > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > # do not install any openldap configuration directories/files > post-patch: > @${RM} -r ${WRKSRC}/etc >diff --git net/linux-c6-tcp_wrappers-libs/Makefile net/linux-c6-tcp_wrappers-libs/Makefile >index 670d083c5e7a..5a37cf71b414 100644 >--- net/linux-c6-tcp_wrappers-libs/Makefile >+++ net/linux-c6-tcp_wrappers-libs/Makefile >@@ -19,4 +19,6 @@ USE_LDCONFIG= yes > USE_LINUX= xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git net/linux-c7-openldap/Makefile net/linux-c7-openldap/Makefile >index 0d7a99551d2c..11c4b8799196 100644 >--- net/linux-c7-openldap/Makefile >+++ net/linux-c7-openldap/Makefile >@@ -17,6 +17,8 @@ USE_LDCONFIG= yes > USE_LINUX= cyrus-sasl2 nspr nss > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > # do not install any openldap configuration directories/files > post-patch: > @${RM} -r ${WRKSRC}/etc >diff --git net/linux-c7-tcp_wrappers-libs/Makefile net/linux-c7-tcp_wrappers-libs/Makefile >index f8b05929caa4..517f953e801b 100644 >--- net/linux-c7-tcp_wrappers-libs/Makefile >+++ net/linux-c7-tcp_wrappers-libs/Makefile >@@ -21,4 +21,6 @@ USE_LDCONFIG= yes > USE_LINUX= xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git net/megatools/Makefile net/megatools/Makefile >index 46a39146d899..849316ec6a01 100644 >--- net/megatools/Makefile >+++ net/megatools/Makefile >@@ -23,6 +23,8 @@ USE_GNOME= glib20 > > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > # Unsilence build > ${REINPLACE_CMD} -e '/^export\ MAKEFLAGS/s|^|#|' ${WRKSRC}/Makefile.in >diff --git net/mininet/Makefile net/mininet/Makefile >index 8b06383a905f..3e3ea902ea34 100644 >--- net/mininet/Makefile >+++ net/mininet/Makefile >@@ -25,6 +25,8 @@ USE_GITHUB= yes > GH_ACCOUNT= akoshibe > GH_TAGNAME= b88c58c > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > do-build: > @${CC} ${WRKSRC}/mnexec.c -o ${BUILD_WRKSRC}/mnexec > @help2man -N -n "create a Mininet network." --no-discard-stderr \ >diff --git net/mpd5/Makefile net/mpd5/Makefile >index 4874394a7224..86f04a3b1645 100644 >--- net/mpd5/Makefile >+++ net/mpd5/Makefile >@@ -16,7 +16,7 @@ LICENSE= BSD3CLAUSE > > BROKEN_SSL= openssl-devel > >-OPTIONS_DEFINE= NG_IPACCT >+OPTIONS_DEFINE= DOCS NG_IPACCT > NG_IPACCT_DESC= Use ng_ipacct kernel module from port > > HAS_CONFIGURE= YES >diff --git net/nats-streaming-server/Makefile net/nats-streaming-server/Makefile >index c0eff5daf1b8..c6e0bc175181 100644 >--- net/nats-streaming-server/Makefile >+++ net/nats-streaming-server/Makefile >@@ -18,6 +18,8 @@ GH_ACCOUNT= nats-io > > USE_RC_SUBR= nats_streaming.sh > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/etc > ${INSTALL_SCRIPT} ${FILESDIR}/nats_streaming.conf ${STAGEDIR}${PREFIX}/etc/nats_streaming.conf.sample >diff --git net/netsed/Makefile net/netsed/Makefile >index c4863c8fc684..a4594e7bfa7b 100644 >--- net/netsed/Makefile >+++ net/netsed/Makefile >@@ -15,6 +15,8 @@ MAKE_ARGS= CFLAGS="${CFLAGS}" > PLIST_FILES= bin/${PORTNAME} > PORTDOCS= README > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin > @${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git net/nmsg/Makefile net/nmsg/Makefile >index 8567e5cfed36..764caeadcb44 100644 >--- net/nmsg/Makefile >+++ net/nmsg/Makefile >@@ -27,13 +27,14 @@ PORTDOCS= * > > # The DOXYGEN option is best effort. > # If doxygen is installed, it will get used if the option is set to NO. >-OPTIONS_DEFINE= DOXYGEN EXAMPLES MANPAGES >+OPTIONS_DEFINE= DOXYGEN EXAMPLES MANPAGES DOCS > OPTIONS_DEFAULT= DOXYGEN MANPAGES > OPTIONS_SUB= yes > > CPPFLAGS+= -I${LOCALBASE}/include/yajl > > ALL_TARGET= all >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_ALL_TARGET= html-local > DOCBOOK_XML= ${LOCALBASE}/share/xml/docbook/4.2 >diff --git net/openbsc/Makefile net/openbsc/Makefile >index 94ea1c955348..21f3fef11bd4 100644 >--- net/openbsc/Makefile >+++ net/openbsc/Makefile >@@ -24,7 +24,7 @@ USES= autoreconf compiler:c11 gmake pathfix pkgconfig ssl > GNU_CONFIGURE= yes > CONFIGURE_ARGS+= CFLAGS="-I${LOCALBASE}/include" > >-OPTIONS_DEFINE= BSC NAT SQLITE >+OPTIONS_DEFINE= BSC NAT SQLITE DOCS > OPTIONS_DEFAULT= BSC NAT > > BSC_DESC= Enable OSMO BSC >diff --git net/openldap24-server/Makefile net/openldap24-server/Makefile >index 9b09dce560c9..972d37c17f68 100644 >--- net/openldap24-server/Makefile >+++ net/openldap24-server/Makefile >@@ -75,7 +75,9 @@ OPTIONS_DEFINE= DEBUG FETCH GSSAPI > FETCH_DESC= Enable fetch(3) support > GSSAPI_DESC= With GSSAPI support (implies SASL support) > >-.if !defined(CLIENT_ONLY) >+.if defined(CLIENT_ONLY) >+OPTIONS_DEFINE+= DOCS >+.else > OPTIONS_DEFINE+= DYNACL ACI BDB MDB DNSSRV PASSWD PERL RELAY SHELL > OPTIONS_DEFINE+= SOCK ODBC RLOOKUPS SLP SLAPI TCP_WRAPPERS > OPTIONS_DEFINE+= ACCESSLOG AUDITLOG COLLECT CONSTRAINT DDS >diff --git net/pecl-radius/Makefile net/pecl-radius/Makefile >index a8148276cca6..52af9c53b926 100644 >--- net/pecl-radius/Makefile >+++ net/pecl-radius/Makefile >@@ -14,7 +14,9 @@ USES= php:pecl > > CONFIGURE_ARGS= --enable-radius > >-post-install: >+OPTIONS_DEFINE= EXAMPLES >+ >+post-install-EXAMPLES-on: > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} > >diff --git net/py-pynmsg/Makefile net/py-pynmsg/Makefile >index 59b182be9ffb..99982010d240 100644 >--- net/py-pynmsg/Makefile >+++ net/py-pynmsg/Makefile >@@ -23,6 +23,8 @@ PORTEXAMPLES= * > > CPPFLAGS+= -I${LOCALBASE}/include > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_nmsg.so > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >diff --git net/quagga/Makefile net/quagga/Makefile >index f869f2f040cf..de00c9cd3f02 100644 >--- net/quagga/Makefile >+++ net/quagga/Makefile >@@ -27,7 +27,7 @@ USE_PERL5= build > INFO= quagga > > OPTIONS_DEFINE= ISISD PIMD PAM RTADV SNMP TCPSOCKETS DLMALLOC \ >- NO_BGP_ANNOUNCE OSPF_NEXTHOP ISIS_TOPOLOGY >+ NO_BGP_ANNOUNCE OSPF_NEXTHOP ISIS_TOPOLOGY EXAMPLES > # IRDP needs something freebsd does not seem to have: > # configure: error: 'IRDP requires in_pktinfo at the moment!' > OPTIONS_DEFAULT= ISISD PIMD RTADV >diff --git net/radvd/Makefile net/radvd/Makefile >index 2b8b077f108c..ba532e3dd2a0 100644 >--- net/radvd/Makefile >+++ net/radvd/Makefile >@@ -23,6 +23,8 @@ USE_RC_SUBR= radvd > > PORTDOCS= CHANGES COPYRIGHT INTRO.html README TODO > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${INSTALL_DATA} ${WRKSRC}/radvd.conf.example ${STAGEDIR}${PREFIX}/etc/radvd.conf.sample > ${INSTALL} -d ${STAGEDIR}${DOCSDIR} >diff --git net/scribe/Makefile net/scribe/Makefile >index f1c876f877ca..e6da415b4564 100644 >--- net/scribe/Makefile >+++ net/scribe/Makefile >@@ -36,6 +36,8 @@ CONFIGURE_ARGS= --with-boost-filesystem=boost_filesystem \ > PY_PREFIX="${PREFIX}" > USE_RC_SUBR= ${PORTNAME} > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e 's/^AM_INIT_AUTOMAKE/#/' ${WRKSRC}/configure.ac > @${REINPLACE_CMD} -e '/boost/! s/shared_ptr/boost::&/g' \ >diff --git net/sflowtool/Makefile net/sflowtool/Makefile >index 0f187aac9730..b48372ac7af0 100644 >--- net/sflowtool/Makefile >+++ net/sflowtool/Makefile >@@ -21,7 +21,7 @@ PORTDOCS= README > PORTEXAMPLES= README ipTopTalkers ipTrafficMatrix sflowRRDChart.cgi \ > sflowRRDLoad sflowenable > >-.include <bsd.port.options.mk> >+OPTIONS_DEFINE= DOCS EXAMPLES > > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git net/siproxd/Makefile net/siproxd/Makefile >index 9135da13ff22..1f39159a8e02 100644 >--- net/siproxd/Makefile >+++ net/siproxd/Makefile >@@ -25,6 +25,8 @@ PORTDOCS2= FAQ KNOWN_BUGS RFC3261_compliance.txt \ > sample_cfg_budgetone.txt sample_cfg_x-lite.txt > PORTDOCS= ${PORTDOCS1} ${PORTDOCS2} > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > .for docs in ${PORTDOCS2} > ${CP} ${WRKSRC}/doc/${docs} ${WRKSRC} >diff --git net/spread/Makefile net/spread/Makefile >index 71da121ba08f..30d3fb331cc6 100644 >--- net/spread/Makefile >+++ net/spread/Makefile >@@ -32,6 +32,8 @@ PKGMESSAGE= ${WRKSRC}/license.txt > PORTDOCS= Readme.txt LICENSE > HEADERFILES= sp_func.h sp_func.h sp_events.h > >+OPTIONS_DEFINE= DOCS >+ > # The configure script fails to find nroff in LOCALBASE, but works fine if > # 'groff' is used directly > >diff --git net/syncthing/Makefile net/syncthing/Makefile >index a19cbedea7a8..266ab789d8ab 100644 >--- net/syncthing/Makefile >+++ net/syncthing/Makefile >@@ -26,6 +26,8 @@ PORTDOCS= * > USERS= syncthing > GROUPS= syncthing > >+OPTIONS_DEFINE= DOCS >+ > do-build: > @cd ${WRKSRC}/src/github.com/${PORTNAME}/${PORTNAME} ; \ > ${SETENV} ${MAKE_ENV} CGO_ENABLED=0 go run build.go -no-upgrade=true -version v${PORTVERSION} >diff --git net/tcludp/Makefile net/tcludp/Makefile >index 2ec91cad21b7..ecd9d833b4b9 100644 >--- net/tcludp/Makefile >+++ net/tcludp/Makefile >@@ -22,6 +22,6 @@ TEST_TARGET= test > > PLIST_FILES= lib/${TCL_PKG}/lib${TCL_PKG}.so \ > lib/${TCL_PKG}/pkgIndex.tcl \ >- %%PORTDOCS%%man/mann/udp.n.gz >+ man/mann/udp.n.gz > > .include <bsd.port.mk> >diff --git net/tcpillust/Makefile net/tcpillust/Makefile >index bd5ddea8829f..184d97e8dfb0 100644 >--- net/tcpillust/Makefile >+++ net/tcpillust/Makefile >@@ -25,6 +25,8 @@ PLIST_FILES= bin/tcpillust \ > > WRKSRC= ${WRKDIR}/${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > do-build: > .for file in binread.c button.c draw.c parser.c tcpillust.c tcpdump/print-tcp.c > ${CC} ${CFLAGS} -DHAVE_BPF_DUMP -I/usr/include -I/usr/include/pcap -I${LOCALBASE}/include/ -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR} \ >diff --git news/husky-fidoconf/Makefile news/husky-fidoconf/Makefile >index dd258c6972f7..69979a3c609a 100644 >--- news/husky-fidoconf/Makefile >+++ news/husky-fidoconf/Makefile >@@ -20,6 +20,8 @@ PORTDOCS= fidoconfig.html > DOCSDIR= ${PREFIX}/share/doc/husky > INFO= fidoconfig > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e 's^/path/to/config^${PREFIX}/etc/fido/config^' \ > ${WRKSRC}/man/linkedto.1 >diff --git news/husky-hpt/Makefile news/husky-hpt/Makefile >index 2f5b7bc5772b..f2710179d071 100644 >--- news/husky-hpt/Makefile >+++ news/husky-hpt/Makefile >@@ -15,6 +15,8 @@ INFO= hpt > MASTERDIR= ${.CURDIR}/../husky > COMPONENT_SUBDIR= hpt > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e 's^/path/to/config^${PREFIX}/etc/fido/config^' \ > ${WRKSRC}/man/hptlink.1 >diff --git news/husky-htick/Makefile news/husky-htick/Makefile >index 6a9a8741c6c4..17fe85c0b66f 100644 >--- news/husky-htick/Makefile >+++ news/husky-htick/Makefile >@@ -23,6 +23,8 @@ PORTDOCS= htick.html > DOCSDIR= ${PREFIX}/share/doc/husky > INFO= htick > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e 's^/fido/etc/config^${PREFIX}/etc/fido/config^' \ > ${WRKSRC}/man/htick.1 >diff --git news/husky-huskylib/Makefile news/husky-huskylib/Makefile >index 8df055464560..00fe96816a93 100644 >--- news/husky-huskylib/Makefile >+++ news/husky-huskylib/Makefile >@@ -10,4 +10,6 @@ USE_LDCONFIG= yes > MASTERDIR= ${.CURDIR}/../husky > COMPONENT_SUBDIR= huskylib > >+OPTIONS_DEFINE= DOCS >+ > .include "${MASTERDIR}/Makefile" >diff --git news/inn/Makefile news/inn/Makefile >index e74ac9943ef6..6dece965bedb 100644 >--- news/inn/Makefile >+++ news/inn/Makefile >@@ -24,7 +24,7 @@ CONFLICTS?= inn-stable-[0-9]* inn-current-[0-9]* > > OPTIONS_DEFINE= BERKELEYDB GNUPG KERBEROS SASL KEYWORDS \ > LARGE_FILES OPENSSL SETGID_INEWS TAGGED_HASH \ >- UUCP_RNEWS >+ UUCP_RNEWS DOCS EXAMPLES > OPTIONS_DEFAULT= BERKELEYDB GNUPG KEYWORDS OPENSSL LARGE_FILES \ > SETGID_INEW UUCP_RNEWS > OPTIONS_SUB= yes >diff --git news/leafnode/Makefile news/leafnode/Makefile >index 3bc785cace23..206a87819b27 100644 >--- news/leafnode/Makefile >+++ news/leafnode/Makefile >@@ -31,7 +31,7 @@ LEAFNODE_SPOOLDIR?=/var/spool/news > LEAFNODE_SPOOLDIR?=${LOCALBASE}/var/spool/leafnode > .endif > LEAFNODE_SPOOLDIR?=/var/spool/leafnode >-PLIST_SUB= SPOOLDIR=${LEAFNODE_SPOOLDIR} REALPREFIX=${PREFIX} >+PLIST_SUB+= SPOOLDIR=${LEAFNODE_SPOOLDIR} REALPREFIX=${PREFIX} > > CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/leafnode \ > --with-spooldir=${LEAFNODE_SPOOLDIR} --with-ipv6 \ >diff --git news/mail2nntp/Makefile news/mail2nntp/Makefile >index 5143946934bf..36ff8d19fa23 100644 >--- news/mail2nntp/Makefile >+++ news/mail2nntp/Makefile >@@ -21,6 +21,8 @@ SHEBANG_FILES= mail2nntp.pl > PORTDOCS= * > PLIST_FILES= bin/mail2nntp.pl > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/mail2nntp.pl ${STAGEDIR}${PREFIX}/bin > @${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git polish/qfaktury/Makefile polish/qfaktury/Makefile >index 9c794c9f54d1..3468a4d6f94d 100644 >--- polish/qfaktury/Makefile >+++ polish/qfaktury/Makefile >@@ -15,6 +15,8 @@ USE_QT= uic_build moc_build rcc_build corelib gui xml qt3support > > PORTDOCS= ChangeLog.txt ReadMe.txt ReleaseNotes.txt TODO.txt > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|@PREFIX@|${PREFIX}|g' qfaktury.pro \ > QFaktury.desktop >diff --git ports-mgmt/bsdadminscripts2/Makefile ports-mgmt/bsdadminscripts2/Makefile >index 9bc6f618f712..99d587035fc2 100644 >--- ports-mgmt/bsdadminscripts2/Makefile >+++ ports-mgmt/bsdadminscripts2/Makefile >@@ -19,6 +19,8 @@ NO_ARCH= yes > > CONFLICTS_INSTALL= bsdadminscripts > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @cd ${WRKSRC} && ${SH} install.sh \ > -destdir="${STAGEDIR}" -prefix="${PREFIX}" \ >diff --git ports-mgmt/pkg-devel/Makefile ports-mgmt/pkg-devel/Makefile >index 7be2fb2b1538..873ebb142c3d 100644 >--- ports-mgmt/pkg-devel/Makefile >+++ ports-mgmt/pkg-devel/Makefile >@@ -27,6 +27,8 @@ CONFIGURE_ARGS= --mandir=${PREFIX}/man > # so that pkg-static is used from the wrkdir > USE_SUBMAKE= yes > >+OPTIONS_DEFINE= DOCS >+ > .if !exists(/usr/include/jail.h) > EXTRA_PATCHES= ${FILESDIR}/extra-patch-docs_pkg.8 > .endif >diff --git ports-mgmt/pkg/Makefile ports-mgmt/pkg/Makefile >index fddf0a1d922e..36ac998733da 100644 >--- ports-mgmt/pkg/Makefile >+++ ports-mgmt/pkg/Makefile >@@ -28,6 +28,8 @@ PORTSCOUT= ignore:1 > USE_SUBMAKE= yes > CFLAGS+= -Wno-error > >+OPTIONS_DEFINE= DOCS >+ > .if !exists(/usr/include/jail.h) > EXTRA_PATCHES= ${FILESDIR}/extra-patch-docs_pkg.8 > .endif >@@ -79,9 +81,11 @@ PKG_BIN= ${WRKSRC}/src/pkg-static > .endif > > post-install: >- @${MKDIR} ${STAGEDIR}${DOCSDIR} >- ${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}/NEWS > @${MV} ${STAGEDIR}${PREFIX}/lib/libpkg_static.a \ > ${STAGEDIR}${PREFIX}/lib/libpkg.a > >+post-install-DOCS-on: >+ @${MKDIR} ${STAGEDIR}${DOCSDIR} >+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${STAGEDIR}${DOCSDIR}/NEWS >+ > .include <bsd.port.post.mk> >diff --git ports-mgmt/pkgcompare/Makefile ports-mgmt/pkgcompare/Makefile >index 90cd2d0407de..d3d227b19669 100644 >--- ports-mgmt/pkgcompare/Makefile >+++ ports-mgmt/pkgcompare/Makefile >@@ -28,6 +28,8 @@ PLIST_FILES= man/man8/pkg-compare.8.gz \ > sbin/pkg-compare > SUB_FILES= pkg-message > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/${BINARY} ${STAGEDIR}${PREFIX}/sbin > ${INSTALL_MAN} ${WRKSRC}/pkg-compare.8 \ >diff --git ports-mgmt/portell/Makefile ports-mgmt/portell/Makefile >index 064739c70ceb..51485dc30971 100644 >--- ports-mgmt/portell/Makefile >+++ ports-mgmt/portell/Makefile >@@ -19,6 +19,8 @@ NO_BUILD= yes > PLIST_FILES= bin/portell > PORTDOCS= README.txt > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' ${WRKSRC}/portell.py > ${REINPLACE_CMD} -e 's/free/freebsd/' ${WRKSRC}/portell.py >diff --git print/linux-c7-cups-libs/Makefile print/linux-c7-cups-libs/Makefile >index 29e053c31aa4..9fd458087c49 100644 >--- print/linux-c7-cups-libs/Makefile >+++ print/linux-c7-cups-libs/Makefile >@@ -22,4 +22,6 @@ USE_LDCONFIG= yes > USE_LINUX= avahi-libs openssl > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git print/linux-c7-harfbuzz/Makefile print/linux-c7-harfbuzz/Makefile >index ca26434b0280..6c76554216ad 100644 >--- print/linux-c7-harfbuzz/Makefile >+++ print/linux-c7-harfbuzz/Makefile >@@ -14,4 +14,6 @@ USE_LDCONFIG= yes > USE_LINUX= graphite2 > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git print/muttprint/Makefile print/muttprint/Makefile >index 407f6102fb5b..19ff530e11a4 100644 >--- print/muttprint/Makefile >+++ print/muttprint/Makefile >@@ -26,7 +26,7 @@ USE_TEX= latex dvipsk > NO_BUILD= yes > REINPLACE_ARGS= -i "" > >-OPTIONS_DEFINE= CUPS X11 >+OPTIONS_DEFINE= CUPS X11 DOCS > OPTIONS_DEFAULT= X11 > X11_DESC= graphics/ImageMagick[-nox11] dependency > >diff --git print/pdflib/Makefile print/pdflib/Makefile >index cef8d4a71b49..14bb85c69cc5 100644 >--- print/pdflib/Makefile >+++ print/pdflib/Makefile >@@ -13,7 +13,7 @@ COMMENT= C library for dynamically generating PDF > > RESTRICTED= Many odd restrictions on usage and distribution > >-OPTIONS_DEFINE= PERL JAVA >+OPTIONS_DEFINE= PERL JAVA DOCS > PERL_DESC= Build perl bindings > JAVA_DESC= Build Java bindings > >@@ -29,11 +29,11 @@ PERL_USES= perl5 > .include <bsd.port.pre.mk> > > .if ${PORT_OPTIONS:MPERL} >-PLIST_SUB= PERL="" >+PLIST_SUB+= PERL="" > CONFIGURE_ARGS+=--with-perl=${PERL} > .else > CONFIGURE_ARGS+=--with-perl=no >-PLIST_SUB= PERL="@comment " >+PLIST_SUB+= PERL="@comment " > .endif > > .if ${PORT_OPTIONS:MJAVA} >diff --git print/pdfstitch/Makefile print/pdfstitch/Makefile >index de8a2bc0f449..c90e8e1acea8 100644 >--- print/pdfstitch/Makefile >+++ print/pdfstitch/Makefile >@@ -23,6 +23,8 @@ GH_ACCOUNT= sur5r > NO_ARCH= yes > NO_BUILD= yes > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/pdfstitch ${STAGEDIR}${PREFIX}/bin/pdfstitch > ${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git science/afni/Makefile science/afni/Makefile >index ca06f8c947ee..2400136c5fd9 100644 >--- science/afni/Makefile >+++ science/afni/Makefile >@@ -48,6 +48,8 @@ SHEBANG_FILES= suma_change_spec \ > pkundu/meica.libs/mdp/test/run_tests.py > USE_GNOME= glib20 > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > USE_GL= gl glu glw >diff --git science/aircraft-datcom/Makefile science/aircraft-datcom/Makefile >index 176a47e08847..e651970395ea 100644 >--- science/aircraft-datcom/Makefile >+++ science/aircraft-datcom/Makefile >@@ -16,10 +16,10 @@ GH_TAGNAME= ed877bb > > USES= fortran cmake > >-.include <bsd.port.pre.mk> >+OPTIONS_DEFINE= DOCS > >-post-install: >+post-install-DOCS-on: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >diff --git science/cdcl/Makefile science/cdcl/Makefile >index 18d8a584b49c..fdf859bc538f 100644 >--- science/cdcl/Makefile >+++ science/cdcl/Makefile >@@ -16,7 +16,7 @@ COMMENT= Scientific graphic library for geoscience > BROKEN_armv6= fails to link: final link failed: Nonrepresentable section on output > BROKEN_armv7= fails to link: final link failed: Nonrepresentable section on output > >-OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS EXAMPLES > USES= desthack pkgconfig > USE_XORG= x11 xext > USE_GNOME= gtk20 gdkpixbuf2 >diff --git science/cgnslib/Makefile science/cgnslib/Makefile >index 544f4b2f8b3a..1d69ca36033e 100644 >--- science/cgnslib/Makefile >+++ science/cgnslib/Makefile >@@ -34,13 +34,13 @@ OPTIONS_DEFAULT=HDF5 TESTS TOOLS > LIB_DEPENDS+= libhdf5.so:science/hdf5 > CMAKE_ARGS+= -DCGNS_ENABLE_HDF5:BOOL=TRUE -DHDF5_NEED_ZLIB:BOOL=TRUE \ > -DHDF5_INCLUDE_PATH:PATH="${LOCALBASE}/include" >-PLIST_SUB= HDF5="" >+PLIST_SUB+= HDF5="" > . if ${PORT_OPTIONS:MSZIP} > CMAKE_ARGS+= -DHDF5_NEED_SZIP:BOOL=OFF > . endif > .else > CMAKE_ARGS+= -DCGNS_ENABLE_HDF5:BOOL=OFF >-PLIST_SUB= HDF5="@comment " >+PLIST_SUB+= HDF5="@comment " > .endif > > .if ${PORT_OPTIONS:MTESTS} >@@ -56,9 +56,9 @@ USE_XORG= x11 xmu > CMAKE_ARGS+= -DCGNS_BUILD_CGNSTOOLS:BOOL=TRUE \ > -DTCL_INCLUDE_PATH:STRING="${TCL_INCLUDEDIR}" \ > -DTK_INCLUDE_PATH:STRING="${TK_INCLUDEDIR}" >-PLIST_SUB= TOOLS="" >+PLIST_SUB+= TOOLS="" > .else >-PLIST_SUB= TOOLS="@comment " >+PLIST_SUB+= TOOLS="@comment " > .endif > > LIBVER= ${PORTVERSION:R} >diff --git science/jstrack/Makefile science/jstrack/Makefile >index 8898cb2ad5d7..9980b967e89c 100644 >--- science/jstrack/Makefile >+++ science/jstrack/Makefile >@@ -30,6 +30,8 @@ SUB_LIST= WISH=${WISH} > > PORTDOCS= 00-README_FIRST.txt HISTORY install.txt jstrackdoc-v2.pdf > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/paths.tcl > >diff --git science/sigrok-firmware-fx2lafw/Makefile science/sigrok-firmware-fx2lafw/Makefile >index bbed862173d9..2f605d3f1924 100644 >--- science/sigrok-firmware-fx2lafw/Makefile >+++ science/sigrok-firmware-fx2lafw/Makefile >@@ -32,6 +32,8 @@ FW_FILES= fx2lafw-braintechnology-usb-lps.fw \ > PORTDOCS= README NEWS > PLIST_FILES= ${FW_FILES:S,^,share/sigrok-firmware/,} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > .for docfile in README NEWS >diff --git science/sigrok-firmware-utils/Makefile science/sigrok-firmware-utils/Makefile >index bc5438af9d18..473e4951d610 100644 >--- science/sigrok-firmware-utils/Makefile >+++ science/sigrok-firmware-utils/Makefile >@@ -32,6 +32,8 @@ PLIST_FILES= ${PY_FILES:S,^,bin/,} \ > ${EX_FILES:S,^,bin/,} \ > ${EX_FILES:S,^,man/man1/,:S,$,.1.gz,} > >+OPTIONS_DEFINE= DOCS >+ > do-extract: > @${MKDIR} ${WRKSRC} > @${CP} ${FILESDIR}/* ${WRKSRC} >diff --git security/amavisd-milter/Makefile security/amavisd-milter/Makefile >index 877e37f1dd1f..cb66efbba0bc 100644 >--- security/amavisd-milter/Makefile >+++ security/amavisd-milter/Makefile >@@ -42,6 +42,8 @@ PLIST_SUB= ${SUB_LIST} > > PORTDOCS= AUTHORS CHANGES INSTALL LICENSE README TODO > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" >diff --git security/cisco-torch/Makefile security/cisco-torch/Makefile >index ed098af1f377..65caa86ad788 100644 >--- security/cisco-torch/Makefile >+++ security/cisco-torch/Makefile >@@ -31,6 +31,8 @@ FILELIST= brutefile.txt \ > tfingerprint.db \ > users.txt > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/cisco-torch.pl ${STAGEDIR}${PREFIX}/bin/cisco-torch > ${MKDIR} ${STAGEDIR}${DATADIR}/include >diff --git security/courier-authlib/Makefile security/courier-authlib/Makefile >index ca057989dbe8..95c47f4e9a31 100644 >--- security/courier-authlib/Makefile >+++ security/courier-authlib/Makefile >@@ -75,6 +75,8 @@ CONFIGURE_ARGS+=--with-base --with-authpam --with-authpipe > USERS= ${MAILOWN} > GROUPS= ${MAILGRP} > >+OPTIONS_DEFINE+= DOCS >+ > DOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README \ > README.authdebug.html README_authlib.html > >@@ -108,6 +110,8 @@ REMOVE_SUBDIRS+=makedat userdb > > .if ${AUTHMOD} == authldap > RUN_DEPENDS+= ${LOCALBASE}/share/sysconftool/sysconftool:devel/sysconftool >+OPTIONS_DEFINE+= DOCS >+ > DOCS= README.ldap > USE_OPENLDAP= yes > CONFIGURE_ARGS+=--with-authldap >@@ -117,6 +121,8 @@ CONFIGURE_ARGS+=--without-authldap > > .if ${AUTHMOD} == authmysql > RUN_DEPENDS+= ${LOCALBASE}/share/sysconftool/sysconftool:devel/sysconftool >+OPTIONS_DEFINE+= DOCS >+ > DOCS= README.authmysql.html README.authmysql.myownquery > USE_MYSQL= yes > CONFIGURE_ARGS+=--with-authmysql \ >@@ -128,6 +134,8 @@ CONFIGURE_ARGS+=--without-authmysql > > .if ${AUTHMOD} == authpgsql > RUN_DEPENDS+= ${LOCALBASE}/share/sysconftool/sysconftool:devel/sysconftool >+OPTIONS_DEFINE+= DOCS >+ > DOCS= README.authpostgres.html > USES+= pgsql > CONFIGURE_ARGS+=--with-authpgsql >diff --git security/cvechecker/Makefile security/cvechecker/Makefile >index ea4f779c8639..a7b84b444a68 100644 >--- security/cvechecker/Makefile >+++ security/cvechecker/Makefile >@@ -27,6 +27,7 @@ CONFIGURE_ARGS= --localstatedir=/var/db > > bash_OLD_CMD+= /bin/sh > >+OPTIONS_DEFINE= DOCS > OPTIONS_MULTI= DB > OPTIONS_MULTI_DB= MYSQL SQLITE > OPTIONS_DEFAULT= SQLITE >diff --git security/elixir-comeonin/Makefile security/elixir-comeonin/Makefile >index 8080cb4b7861..d1d79d543e2d 100644 >--- security/elixir-comeonin/Makefile >+++ security/elixir-comeonin/Makefile >@@ -20,6 +20,8 @@ MIX_BUILD_DEPS= devel/elixir-make \ > security/elixir-comeonin_i18n > MIX_RUN_DEPS:= security/elixir-comeonin_i18n > >+OPTIONS_DEFINE= DOCS >+ > post-build: > ${STRIP_CMD} ${WRKSRC}/priv/bcrypt_nif.so > >diff --git security/elixir-comeonin_i18n/Makefile security/elixir-comeonin_i18n/Makefile >index 4493b697aa45..4abf239582e3 100644 >--- security/elixir-comeonin_i18n/Makefile >+++ security/elixir-comeonin_i18n/Makefile >@@ -16,4 +16,6 @@ GH_ACCOUNT= riverrun > MIX_BUILD_DEPS= devel/elixir-gettext > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/elixir-jose/Makefile security/elixir-jose/Makefile >index 13f76537c99e..7bf2408a57a5 100644 >--- security/elixir-jose/Makefile >+++ security/elixir-jose/Makefile >@@ -21,4 +21,6 @@ MIX_BUILD_DEPS= converters/erlang-base64url \ > security/erlang-jose > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/erlang-fast_tls/Makefile security/erlang-fast_tls/Makefile >index caa6133b5e4e..280e30d36bbc 100644 >--- security/erlang-fast_tls/Makefile >+++ security/erlang-fast_tls/Makefile >@@ -24,6 +24,8 @@ CPPFLAGS+= -I${OPENSSLINC} > CFLAGS+= -I${OPENSSLINC} > LDFLAGS+= -L${OPENSSLLIB} > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv/lib/*.so > >diff --git security/erlang-jose/Makefile security/erlang-jose/Makefile >index 54b63e4e5528..25de1abf6ab6 100644 >--- security/erlang-jose/Makefile >+++ security/erlang-jose/Makefile >@@ -21,4 +21,6 @@ NO_ARCH= yes > ERL_BUILD_DEPS= converters/erlang-base64url > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/fwbuilder/Makefile security/fwbuilder/Makefile >index bc1f920e025b..4272bd428693 100644 >--- security/fwbuilder/Makefile >+++ security/fwbuilder/Makefile >@@ -16,7 +16,7 @@ BROKEN_powerpc64= fails to configure: libz library not found > LIB_DEPENDS= libxslt.so:textproc/libxslt \ > libnetsnmp.so:net-mgmt/net-snmp > >-#OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS > > BUILD= 3599 > >diff --git security/gorilla/Makefile security/gorilla/Makefile >index 2f069e0754df..257fbef4243a 100644 >--- security/gorilla/Makefile >+++ security/gorilla/Makefile >@@ -17,6 +17,8 @@ LICENSE= GPLv2 > RUN_DEPENDS= itcl>=3.4:lang/itcl \ > wish:x11-toolkits/tk-wrapper > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > .if ${ARCH} == i386 >diff --git security/govpn/Makefile security/govpn/Makefile >index 6b63cf33cdc4..6f007ad8d331 100644 >--- security/govpn/Makefile >+++ security/govpn/Makefile >@@ -25,4 +25,6 @@ INSTALL_TARGET= install-strip > PLIST_FILES= bin/govpn-server bin/govpn-client bin/govpn-verifier \ > share/govpn/newclient.sh > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/gtkpasman/Makefile security/gtkpasman/Makefile >index 357d07f34aac..453953ae6f57 100644 >--- security/gtkpasman/Makefile >+++ security/gtkpasman/Makefile >@@ -24,6 +24,8 @@ SUB_FILES= pkg-message > PORTDOCS= * > PLIST_FILES= bin/gtkpasman share/applications/gtkpasman.desktop > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > post-patch: >diff --git security/hamachi/Makefile security/hamachi/Makefile >index e8e8319870b2..2f014148dedc 100644 >--- security/hamachi/Makefile >+++ security/hamachi/Makefile >@@ -21,6 +21,8 @@ PLIST_FILES= bin/hamachi bin/hamachi-init sbin/hamachi-tuncfg > PORTDOCS= README CHANGES > MAKE_ENV= HAMACHI_DST=${STAGEDIR}${PREFIX}/bin TUNCFG_DST=${STAGEDIR}${PREFIX}/sbin > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${RM} ${WRKSRC}/tuncfg/tuncfg > ${LOCALBASE}/bin/upx -d ${WRKSRC}/hamachi >diff --git security/hashcat-legacy/Makefile security/hashcat-legacy/Makefile >index 0715f65b710e..f62a74d2be97 100644 >--- security/hashcat-legacy/Makefile >+++ security/hashcat-legacy/Makefile >@@ -26,6 +26,8 @@ ONLY_FOR_ARCHS_REASON= uses amd64 instructions > > ALL_TARGET= posix64 posixXOP > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -r 's|^(CC_.*[[:blank:]]*=[[:blank:]]*)gcc[[:blank:]]*$$|\1${CC}|' ${WRKSRC}/src/Makefile > >diff --git security/hashcat/Makefile security/hashcat/Makefile >index 2f2686ba19c2..e4e8d2118d5a 100644 >--- security/hashcat/Makefile >+++ security/hashcat/Makefile >@@ -32,6 +32,8 @@ MAKE_ARGS= SHARED=1 \ > LFLAGS_NATIVE="${LDFLAGS} -lpthread -lm" \ > CFLAGS_NATIVE="${CFLAGS} -Iinclude -IOpenCL -Ideps/lzma_sdk" > >+OPTIONS_DEFINE= DOCS >+ > pre-install: > ${STRIP_CMD} ${WRKSRC}/libhashcat.so.${PORTVERSION} > ${STRIP_CMD} ${WRKSRC}/hashcat >diff --git security/hitch/Makefile security/hitch/Makefile >index 936fa68f41a1..3954df6bfdaf 100644 >--- security/hitch/Makefile >+++ security/hitch/Makefile >@@ -28,6 +28,8 @@ USE_RC_SUBR= ${PORTNAME} > CPPFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib -lcrypto -lssl > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${PREFIX}/etc > ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${PREFIX}/etc/ >diff --git security/ipguard/Makefile security/ipguard/Makefile >index 9333e39fdce0..d5e2a049843c 100644 >--- security/ipguard/Makefile >+++ security/ipguard/Makefile >@@ -19,6 +19,8 @@ PORTDOCS= COPYRIGHT NEWS README README.tcpdump README.log ethers.sample rfc826.t > PLIST_FILES= sbin/ipguard \ > man/man8/${PORTNAME}.8.gz > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} >diff --git security/libntlm/Makefile security/libntlm/Makefile >index 6433417a3c16..b495c5715eb0 100644 >--- security/libntlm/Makefile >+++ security/libntlm/Makefile >@@ -18,7 +18,9 @@ USE_LDCONFIG= yes > > PORTDOCS= AUTHORS ChangeLog NEWS README THANKS > >-post-install: >+OPTIONS_DEFINE= DOCS >+ >+post-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} > >diff --git security/linux-c6-cyrus-sasl2/Makefile security/linux-c6-cyrus-sasl2/Makefile >index c4da1d446430..4ba6d1025d23 100644 >--- security/linux-c6-cyrus-sasl2/Makefile >+++ security/linux-c6-cyrus-sasl2/Makefile >@@ -19,4 +19,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c6-libgcrypt/Makefile security/linux-c6-libgcrypt/Makefile >index 41f3c3da6bf1..aee3f2140e38 100644 >--- security/linux-c6-libgcrypt/Makefile >+++ security/linux-c6-libgcrypt/Makefile >@@ -16,4 +16,6 @@ USE_LDCONFIG= yes > USE_LINUX= libgpg-error > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c6-libssh2/Makefile security/linux-c6-libssh2/Makefile >index 0b33b4fe59c5..9d97ab328fe5 100644 >--- security/linux-c6-libssh2/Makefile >+++ security/linux-c6-libssh2/Makefile >@@ -16,4 +16,6 @@ USE_LDCONFIG= yes > USE_LINUX= openssl > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c6-libtasn1/Makefile security/linux-c6-libtasn1/Makefile >index c8533b88f3b3..d8487f8e1b83 100644 >--- security/linux-c6-libtasn1/Makefile >+++ security/linux-c6-libtasn1/Makefile >@@ -16,4 +16,6 @@ CPE_VENDOR= gnu > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c6-openssl/Makefile security/linux-c6-openssl/Makefile >index 60ba11bf4f5a..dfebecd5351c 100644 >--- security/linux-c6-openssl/Makefile >+++ security/linux-c6-openssl/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c7-cyrus-sasl2/Makefile security/linux-c7-cyrus-sasl2/Makefile >index 34f641dcfa8f..5e3e5ea70714 100644 >--- security/linux-c7-cyrus-sasl2/Makefile >+++ security/linux-c7-cyrus-sasl2/Makefile >@@ -21,4 +21,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c7-libgcrypt/Makefile security/linux-c7-libgcrypt/Makefile >index 576d571c4cf4..9837ac751ac1 100644 >--- security/linux-c7-libgcrypt/Makefile >+++ security/linux-c7-libgcrypt/Makefile >@@ -20,4 +20,6 @@ USE_LDCONFIG= yes > USE_LINUX= libgpg-error > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c7-libssh2/Makefile security/linux-c7-libssh2/Makefile >index d838dc2a0f5d..fd63e2babc98 100644 >--- security/linux-c7-libssh2/Makefile >+++ security/linux-c7-libssh2/Makefile >@@ -18,4 +18,6 @@ USE_LDCONFIG= yes > USE_LINUX= openssl > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c7-libtasn1/Makefile security/linux-c7-libtasn1/Makefile >index 7b6d4d22b073..198af538efdf 100644 >--- security/linux-c7-libtasn1/Makefile >+++ security/linux-c7-libtasn1/Makefile >@@ -19,4 +19,6 @@ CPE_VENDOR= gnu > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c7-nettle/Makefile security/linux-c7-nettle/Makefile >index 1a527a04cae3..8239e2c38c27 100644 >--- security/linux-c7-nettle/Makefile >+++ security/linux-c7-nettle/Makefile >@@ -13,4 +13,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c7-openssl/Makefile security/linux-c7-openssl/Makefile >index bb1bc9006550..f68542c938d4 100644 >--- security/linux-c7-openssl/Makefile >+++ security/linux-c7-openssl/Makefile >@@ -23,4 +23,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c7-p11-kit/Makefile security/linux-c7-p11-kit/Makefile >index 31b7f43e6a7a..9c1b7b74658c 100644 >--- security/linux-c7-p11-kit/Makefile >+++ security/linux-c7-p11-kit/Makefile >@@ -13,4 +13,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/linux-c7-trousers/Makefile security/linux-c7-trousers/Makefile >index cd548a557e4a..6751d02a7676 100644 >--- security/linux-c7-trousers/Makefile >+++ security/linux-c7-trousers/Makefile >@@ -14,4 +14,6 @@ USE_LDCONFIG= yes > USE_LINUX= openssl > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git security/logcheck/Makefile security/logcheck/Makefile >index 3fef7bd0f9f2..eae2e5374242 100644 >--- security/logcheck/Makefile >+++ security/logcheck/Makefile >@@ -27,7 +27,7 @@ BASEDIR?= # None. portlint compliance > DBDIR= ${BASEDIR}/var/db/${PORTNAME} > RUNDIR= ${BASEDIR}/var/run/${PORTNAME} > >-OPTIONS_DEFINE= CRON >+OPTIONS_DEFINE= CRON DOCS EXAMPLES > CRON_DESC= Install cron script automatically > .if !defined(BATCH) > OPTIONS_DEFAULT=CRON >diff --git security/lynis/Makefile security/lynis/Makefile >index cd30c62d0b10..b3ee5165952c 100644 >--- security/lynis/Makefile >+++ security/lynis/Makefile >@@ -22,6 +22,8 @@ NO_ARCH= yes > > PORTDOCS= FAQ README > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e '/tINCLUDE_TARGETS/ s|".*"|"${DATADIR}/include"|; \ > /tPLUGIN_TARGETS/ s|".*"|"${DATADIR}/plugins"|; \ >diff --git security/obfsclient/Makefile security/obfsclient/Makefile >index 2cf6c63050bc..eb5b3de624af 100644 >--- security/obfsclient/Makefile >+++ security/obfsclient/Makefile >@@ -28,6 +28,8 @@ PLIST_FILES= bin/${PORTNAME} > > PORTDOCS= COPYING > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR} >diff --git security/openconnect/Makefile security/openconnect/Makefile >index 0e2d163caab7..84c00d2ed7f0 100644 >--- security/openconnect/Makefile >+++ security/openconnect/Makefile >@@ -27,7 +27,7 @@ INSTALL_TARGET= install-strip > USE_LDCONFIG= yes > PORTDOCS= * > >-OPTIONS_DEFINE= PROXY GNUTLS GSSAPI LZ4 P11 STOKEN >+OPTIONS_DEFINE= DOCS PROXY GNUTLS GSSAPI LZ4 P11 STOKEN > OPTIONS_DEFAULT=GSSAPI > > LZ4_DESC= LZ4-based compression >diff --git security/openct/Makefile security/openct/Makefile >index fef293e46d0c..021b3273faee 100644 >--- security/openct/Makefile >+++ security/openct/Makefile >@@ -14,7 +14,7 @@ LICENSE= LGPL21 > > LIB_DEPENDS= libltdl.so:devel/libltdl > >-OPTIONS_DEFINE= PCSC DOCS >+OPTIONS_DEFINE= PCSC DOCS EXAMPLES > PCSC_DESC= Enable PC/SC support > > GNU_CONFIGURE= yes >diff --git security/p5-Digest-SHA-PurePerl/Makefile security/p5-Digest-SHA-PurePerl/Makefile >index 1f0f50eeeb75..b4766f2eb37e 100644 >--- security/p5-Digest-SHA-PurePerl/Makefile >+++ security/p5-Digest-SHA-PurePerl/Makefile >@@ -20,6 +20,8 @@ NO_ARCH= true > > PORTEXAMPLES= dups > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL > >diff --git security/pad/Makefile security/pad/Makefile >index e58ace3c0192..9b24454c593f 100644 >--- security/pad/Makefile >+++ security/pad/Makefile >@@ -20,6 +20,8 @@ PORTDOCS= COPYING README ChangeLog > CFLAGS+= -I${OPENSSLINC} > LDFLAGS+= -L${OPENSSLLIB} > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e "s|\(-lcrypto\)|${LDFLAGS} \1|g" \ > ${WRKSRC}/Makefile.in >diff --git security/pam-mysql/Makefile security/pam-mysql/Makefile >index 9f4c3e87bc9c..ead530d66bde 100644 >--- security/pam-mysql/Makefile >+++ security/pam-mysql/Makefile >@@ -26,7 +26,7 @@ SUB_FILES= pkg-message > PORTDOCS= * > PLIST_FILES= lib/pam_mysql.so lib/pam_mysql.la > >-OPTIONS_DEFINE= SSL >+OPTIONS_DEFINE= DOCS SSL > SSL_DESC= Build with OpenSSL support (non-crypt()ish MD5 hash) > SSL_CONFIGURE_WITH= openssl > >diff --git security/pkcs11-gateway/Makefile security/pkcs11-gateway/Makefile >index 5f2452b3bf0f..7fb72b36caf3 100644 >--- security/pkcs11-gateway/Makefile >+++ security/pkcs11-gateway/Makefile >@@ -20,6 +20,8 @@ PLIST_FILES= bin/pkcs11-gateway lib/libpkcs11-gateway.so \ > > PORTDOCS= README > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/pkcs11-gateway ${STAGEDIR}${PREFIX}/bin > ${INSTALL_LIB} ${WRKSRC}/libpkcs11-gateway.so.1 ${STAGEDIR}${PREFIX}/lib >diff --git security/pkesh/Makefile security/pkesh/Makefile >index 0d279d71ceab..93d9f507a52d 100644 >--- security/pkesh/Makefile >+++ security/pkesh/Makefile >@@ -16,6 +16,8 @@ NO_BUILD= yes > PLIST_FILES= bin/pkesh > PORTDOCS= README > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/pkesh.sh ${STAGEDIR}${PREFIX}/bin/pkesh > ${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git security/rcracki_mt/Makefile security/rcracki_mt/Makefile >index 2e97d8df9fe8..1db5eac7a7b5 100644 >--- security/rcracki_mt/Makefile >+++ security/rcracki_mt/Makefile >@@ -21,6 +21,8 @@ USES= 7z gmake ssl > PLIST_FILES= bin/${PORTNAME} > PORTDOCS= ChangeLog.txt README.txt > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} \ > -e 's,CC = g++,CXX ?= g++,' \ >diff --git security/signing-party/Makefile security/signing-party/Makefile >index 3b359effd3dc..725b2f374956 100644 >--- security/signing-party/Makefile >+++ security/signing-party/Makefile >@@ -44,6 +44,8 @@ PORTEXAMPLES= ${EXAMPLES:T} > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e 's|/usr/share/doc/signing-party/caff/caffrc\.sample|${EXAMPLESDIR}/caffrc.sample|' \ > ${WRKSRC}/caff/caff >diff --git security/stoken/Makefile security/stoken/Makefile >index 2406f39eb414..c8915af6dea3 100644 >--- security/stoken/Makefile >+++ security/stoken/Makefile >@@ -20,7 +20,7 @@ USE_GNOME= libxml2 > USE_LDCONFIG= yes > INSTALL_TARGET= install-strip > >-OPTIONS_DEFINE= X11 >+OPTIONS_DEFINE= DOCS X11 > OPTIONS_SUB= yes > > X11_CONFIGURE_WITH= gtk >diff --git security/tclsasl/Makefile security/tclsasl/Makefile >index 17d09394e7a7..cdcf27c203d1 100644 >--- security/tclsasl/Makefile >+++ security/tclsasl/Makefile >@@ -20,6 +20,8 @@ CONFIGURE_ENV= INSTALL="${INSTALL_DATA}" STAGEDIR="${STAGEDIR}" > > PORTDOCS= tclsasl.html > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/doc/tclsasl.html ${STAGEDIR}${DOCSDIR} >diff --git security/tmux-cssh/Makefile security/tmux-cssh/Makefile >index fea1c6888e60..80092b5419d9 100644 >--- security/tmux-cssh/Makefile >+++ security/tmux-cssh/Makefile >@@ -19,7 +19,10 @@ USE_GITHUB= yes > GH_ACCOUNT= dennishafemann > GH_TAGNAME= 2175073 > >-PLIST_FILES= bin/tmux-cssh %%PORTDOCS%%%%DOCSDIR%%/README.md >+PLIST_FILES= bin/tmux-cssh >+PORTDOCS= README.md >+ >+OPTIONS_DEFINE= DOCS > > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/tmux-cssh ${STAGEDIR}${PREFIX}/bin >diff --git security/vlock/Makefile security/vlock/Makefile >index f159e7a86b84..b290c0f28460 100644 >--- security/vlock/Makefile >+++ security/vlock/Makefile >@@ -24,7 +24,7 @@ CONFIGURE_ARGS= --enable-plugins --enable-pam \ > USES= gmake > USE_CSTD= gnu99 > >-OPTIONS_DEFINE= ROOTPWD VLOCKSCRIPTS CACASAVER >+OPTIONS_DEFINE= ROOTPWD VLOCKSCRIPTS CACASAVER DOCS > OPTIONS_DEFAULT= ROOTPWD > OPTIONS_SUB= yes > ROOTPWD_DESC= Enable unlock using root password >diff --git security/whatweb/Makefile security/whatweb/Makefile >index 4175b20b02fd..7f2488bde8d1 100644 >--- security/whatweb/Makefile >+++ security/whatweb/Makefile >@@ -21,6 +21,8 @@ NO_BUILD= yes > NO_ARCH= yes > PORTDOCS= CHANGELOG INSTALL README whatweb.xsl > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e \ > 's!/usr/share/whatweb/!${RUBY_SITELIBDIR}/whatweb!' \ >diff --git security/wolfssl/Makefile security/wolfssl/Makefile >index 7c84acfd45f9..d61d322a328d 100644 >--- security/wolfssl/Makefile >+++ security/wolfssl/Makefile >@@ -28,6 +28,8 @@ CONFIGURE_ARGS= --disable-dependency-tracking \ > USE_LDCONFIG= yes > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-configure: > @${REINPLACE_CMD} \ > -e 's|$${prefix}/cyassl/include|$${prefix}/include/cyassl|' \ >diff --git security/xmlsec1/Makefile security/xmlsec1/Makefile >index ca240a3a40ec..bb7625b886f8 100644 >--- security/xmlsec1/Makefile >+++ security/xmlsec1/Makefile >@@ -31,7 +31,7 @@ MAKE_ENV= ABS_BUILDDIR=${WRKSRC} TMPFOLDER=${WRKSRC} > INSTALL_TARGET= install-strip > PORTDOCS= * > >-OPTIONS_DEFINE= GNUTLS NSS >+OPTIONS_DEFINE= DOCS GNUTLS NSS > OPTIONS_DEFAULT= NSS > OPTIONS_SUB= yes > >diff --git shells/44bsd-csh/Makefile shells/44bsd-csh/Makefile >index 6f1e877f1baf..7d96705c1499 100644 >--- shells/44bsd-csh/Makefile >+++ shells/44bsd-csh/Makefile >@@ -18,6 +18,8 @@ USES= tar:bzip2 > NO_WRKSUBDIR= yes > PORTDOCS= paper.ascii.gz > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > cd ${WRKSRC} ; co RCS/*,v; chmod u+w * > cd ${WRKSRC}/USD.doc ; co RCS/*,v >diff --git shells/heirloom-sh/Makefile shells/heirloom-sh/Makefile >index e810852c83ab..becc941cf370 100644 >--- shells/heirloom-sh/Makefile >+++ shells/heirloom-sh/Makefile >@@ -20,6 +20,8 @@ PORTDOCS= CALDERA.LICENSE OPENSOLARIS.LICENSE CHANGES README > PKGINSTALL= pkg-install > PKGDEINSTALL= pkg-deinstall > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/jsh ${STAGEDIR}${PREFIX}/bin > ${INSTALL_MAN} ${WRKSRC}/sh.1.out ${STAGEDIR}${MANPREFIX}/man/man1/jsh.1 >diff --git shells/jailkit/Makefile shells/jailkit/Makefile >index 45b3a82e3ad9..40021bddb8ce 100644 >--- shells/jailkit/Makefile >+++ shells/jailkit/Makefile >@@ -19,6 +19,8 @@ CONFIGURE_ENV= PYTHONINTERPRETER=${PYTHON_CMD} > > PORTDOCS= COPYRIGHT README.txt > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} >diff --git shells/lshell/Makefile shells/lshell/Makefile >index d74e66a80fee..00efead8d1bc 100644 >--- shells/lshell/Makefile >+++ shells/lshell/Makefile >@@ -19,6 +19,8 @@ USES= python:2.7 > USE_GITHUB= yes > USE_PYTHON= distutils > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e \ > "s|(.*lshell.conf.*),|| ; \ >diff --git shells/osh/Makefile shells/osh/Makefile >index 98e6ffe8abd3..9aa4526a4cdf 100644 >--- shells/osh/Makefile >+++ shells/osh/Makefile >@@ -18,6 +18,8 @@ PORTEXAMPLES= * > INSTALL_TARGET= install install-doc install-exp > PLIST_SUB+= VER=${DISTVERSION} > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -E -e 's|(DESTEXPDIR)=|\1?=|' \ > ${WRKSRC}/Makefile >diff --git sysutils/atop/Makefile sysutils/atop/Makefile >index adec2a1fb552..aa991aa0f008 100644 >--- sysutils/atop/Makefile >+++ sysutils/atop/Makefile >@@ -31,6 +31,8 @@ PORTDOCS= AUTHOR \ > README \ > README.FreeBSD > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/atop ${STAGEDIR}${PREFIX}/bin > ${LN} -sf atop ${STAGEDIR}${PREFIX}/bin/atopsar >diff --git sysutils/backupchecker/Makefile sysutils/backupchecker/Makefile >index 4ce96b94f5f8..77ace41585df 100644 >--- sysutils/backupchecker/Makefile >+++ sysutils/backupchecker/Makefile >@@ -19,6 +19,8 @@ USE_PYTHON= autoplist distutils > > PORTDOCS= README.md > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} "s|'share','man'|'${MANPREFIX}/man'|" ${WRKSRC}/setup.py > >diff --git sysutils/bacula-docs/Makefile sysutils/bacula-docs/Makefile >index 5ae310ee58cd..92c1e36c9831 100644 >--- sysutils/bacula-docs/Makefile >+++ sysutils/bacula-docs/Makefile >@@ -14,6 +14,8 @@ NO_BUILD= yes > > PORTDOCS= *.pdf > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${FIND} ${WRKSRC}/manuals/en \ >diff --git sysutils/bacula9-docs/Makefile sysutils/bacula9-docs/Makefile >index 813afddfe8e1..f2f9518235d3 100644 >--- sysutils/bacula9-docs/Makefile >+++ sysutils/bacula9-docs/Makefile >@@ -18,6 +18,8 @@ NO_BUILD= yes > > PORTDOCS= *.pdf > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${FIND} ${WRKSRC}/manuals/en \ >diff --git sysutils/bareos-docs/Makefile sysutils/bareos-docs/Makefile >index 5a8c31bd292d..5b0977c8f7e3 100644 >--- sysutils/bareos-docs/Makefile >+++ sysutils/bareos-docs/Makefile >@@ -14,6 +14,8 @@ NO_BUILD= yes > > PORTDOCS= *.pdf > >+OPTIONS_DEFINE= DOCS >+ > do-extract: > ${MKDIR} ${WRKSRC} > ${CP} ${DISTDIR}/${PORTNAME}-manual-main-reference.pdf ${WRKSRC} >diff --git sysutils/catfish/Makefile sysutils/catfish/Makefile >index 63da9c907917..ab1d3f931fab 100644 >--- sysutils/catfish/Makefile >+++ sysutils/catfish/Makefile >@@ -22,7 +22,7 @@ USES= desktop-file-utils python:2.7 tar:bz2 > USE_PYTHON= distutils > USE_GNOME= gtk30 intltool pygobject3 > >-OPTIONS_DEFINE= ZEITGEIST >+OPTIONS_DEFINE= DOCS ZEITGEIST > OPTIONS_DEFAULT=ZEITGEIST > > ZEITGEIST_DESC= Provide recent search suggestions >diff --git sysutils/cdbkup/Makefile sysutils/cdbkup/Makefile >index cde5ca310838..be8380373019 100644 >--- sysutils/cdbkup/Makefile >+++ sysutils/cdbkup/Makefile >@@ -23,4 +23,6 @@ CONFIGURE_ENV+= PATH=${PATH}:${LOCALBASE}/sbin > > PORTDOCS= README TODO COMPLIANCE > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git sysutils/cfengine22/Makefile sysutils/cfengine22/Makefile >index 3fa1b966d4db..9ab7839e62b3 100644 >--- sysutils/cfengine22/Makefile >+++ sysutils/cfengine22/Makefile >@@ -36,7 +36,7 @@ CONFIGURE_ENV+= BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \ > > INFO= cfengine-Tutorial cfengine-Reference > >-OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS EXAMPLES > > post-patch: > @${REINPLACE_CMD} -e '/^docdir/s!=.*!= @docdir@!'\ >diff --git sysutils/ck4up/Makefile sysutils/ck4up/Makefile >index c858f4576d09..2c86f224be9a 100644 >--- sysutils/ck4up/Makefile >+++ sysutils/ck4up/Makefile >@@ -21,6 +21,8 @@ PORTEXAMPLES= ck4up.conf > PLIST_FILES= bin/ck4up \ > man/man1/ck4up.1.gz > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \ > ${WRKSRC}/Makefile >diff --git sysutils/clonehdd/Makefile sysutils/clonehdd/Makefile >index 49796ec8040c..6889e37c26d6 100644 >--- sysutils/clonehdd/Makefile >+++ sysutils/clonehdd/Makefile >@@ -18,6 +18,8 @@ PLIST_FILES= sbin/clonehdd man/man8/${PORTNAME}.8.gz > NO_BUILD= yes > PORTDOCS= CHANGES README > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/clonehdd ${STAGEDIR}${PREFIX}/sbin > ${INSTALL_MAN} ${WRKSRC}/clonehdd.8 ${STAGEDIR}${MAN8PREFIX}/man/man8 >diff --git sysutils/cmockery2/Makefile sysutils/cmockery2/Makefile >index 7729aef01638..bf8b9cfc4a1e 100644 >--- sysutils/cmockery2/Makefile >+++ sysutils/cmockery2/Makefile >@@ -22,6 +22,8 @@ INSTALL_TARGET= install-strip > # Disable gcov on FreeBSD > # CONFIGURE_ARGS= --enable-gcov > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e '/^docdir =/s|-$$(VERSION)||' \ > -e '/^pkgconfigdir =/s|$$(libdir)|$$(prefix)/libdata|' \ >diff --git sysutils/deltup/Makefile sysutils/deltup/Makefile >index dae02d72d762..0f68f4b3a326 100644 >--- sysutils/deltup/Makefile >+++ sysutils/deltup/Makefile >@@ -37,6 +37,8 @@ WRKSRC_BZIP2_103= ${WRKDIR}/bzip2-${BZIP2_103} > > PORTDOCS= ChangeLog README > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's/CC/CXX/' -e 's,gcc,$${CXX},' \ > -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" ${WRKSRC}/Makefile >diff --git sysutils/detox/Makefile sysutils/detox/Makefile >index cf22e702282e..bbaa03145435 100644 >--- sysutils/detox/Makefile >+++ sysutils/detox/Makefile >@@ -17,6 +17,8 @@ USE_GITHUB= yes > GNU_CONFIGURE= yes > GH_ACCOUNT= dharple > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/detox > ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/inline-detox >diff --git sysutils/djmount/Makefile sysutils/djmount/Makefile >index 0cd771d9e0b3..cd4e80690572 100644 >--- sysutils/djmount/Makefile >+++ sysutils/djmount/Makefile >@@ -23,6 +23,8 @@ CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} \ > > PORTDOCS= AUTHORS ChangeLog NEWS README TODO > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${INSTALL} -d ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git sysutils/duff/Makefile sysutils/duff/Makefile >index f742c56a81e3..1f13a2131c50 100644 >--- sysutils/duff/Makefile >+++ sysutils/duff/Makefile >@@ -19,7 +19,7 @@ SHEBANG_FILES= join-duplicates.sh > > PORTDOCS= README.SHA > >-OPTIONS_DEFINE= JOIN NLS >+OPTIONS_DEFINE= DOCS JOIN NLS > OPTIONS_SUB= yes > > JOIN_DESC= Add run-dependencies for join-duplicates.sh >diff --git sysutils/duply/Makefile sysutils/duply/Makefile >index cda544e0d230..9b510da53d31 100644 >--- sysutils/duply/Makefile >+++ sysutils/duply/Makefile >@@ -27,6 +27,8 @@ PERIODICFILE?= 300.duply > PERIODICDIR?= ${PREFIX}/etc/periodic/backup > SUB_FILES= pkg-message periodic_duply > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e "s,/etc/duply,${ETCDIR},g" ${WRKSRC}/duply > >diff --git sysutils/fanout/Makefile sysutils/fanout/Makefile >index eddcda514155..b53f47da9d33 100644 >--- sysutils/fanout/Makefile >+++ sysutils/fanout/Makefile >@@ -17,6 +17,8 @@ NO_BUILD= yes > PLIST_FILES= bin/fanout bin/fanterm bin/fanmux > PORTDOCS= README index.html > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \ > ${WRKSRC}/fanterm >diff --git sysutils/fpart/Makefile sysutils/fpart/Makefile >index 74a683739c69..653d86db8a8c 100644 >--- sysutils/fpart/Makefile >+++ sysutils/fpart/Makefile >@@ -18,7 +18,7 @@ CONFIGURE_ARGS= --disable-embfts > PLIST_FILES= bin/fpart man/man1/fpart.1.gz > PORTDOCS= Changelog README TODO > >-OPTIONS_DEFINE= FPSYNC >+OPTIONS_DEFINE= FPSYNC DOCS > OPTIONS_DEFAULT= FPSYNC > FPSYNC_DESC= Install fpsync tool > FPSYNC_RUN_DEPENDS= rsync:net/rsync \ >diff --git sysutils/fswatch-mon/Makefile sysutils/fswatch-mon/Makefile >index 098292f6e157..634fa78c29eb 100644 >--- sysutils/fswatch-mon/Makefile >+++ sysutils/fswatch-mon/Makefile >@@ -21,7 +21,7 @@ INFO= fswatch > > CONFLICTS_INSTALL= fswatch-[0-9]* > >-OPTIONS_DEFINE= NLS >+OPTIONS_DEFINE= DOCS NLS > OPTIONS_SUB= yes > > NLS_USES= gettext >diff --git sysutils/hfm/Makefile sysutils/hfm/Makefile >index 9a7c616f3b37..553efe25d80a 100644 >--- sysutils/hfm/Makefile >+++ sysutils/hfm/Makefile >@@ -33,6 +33,8 @@ MAKE_ARGS+= ETCDIR=${ETCDIR} TAG=${DISTVERSIONPREFIX}${PORTVERSION} > > ALL_TARGET= test build > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > do-patch: > (cd ${WRKSRC}; ${PATCH} vendor/src/github.com/mitchellh/go-libucl/libucl.go < vendor/patches/github.com/mitchellh/go-libucl/libucl.go.patch ) > >diff --git sysutils/immortal/Makefile sysutils/immortal/Makefile >index 27c84bb65f8d..ec1cebe52389 100644 >--- sysutils/immortal/Makefile >+++ sysutils/immortal/Makefile >@@ -21,6 +21,8 @@ GH_TUPLE= immortal:logrotate:6f52ae7:logrotate/src/github.com/immortal/logrotate > go-yaml:yaml:5420a8b:yaml/src/github.com/go-yaml/yaml > GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME} > >+OPTIONS_DEFINE= EXAMPLES >+ > do-build: > @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \ > ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \ >diff --git sysutils/lava/Makefile sysutils/lava/Makefile >index 33e3a88661a0..f4211cadb8dc 100644 >--- sysutils/lava/Makefile >+++ sysutils/lava/Makefile >@@ -23,6 +23,8 @@ NO_ARCH= yes > PLIST_FILES= bin/${PORTNAME}.sh > PORTDOCS= README.md > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ >diff --git sysutils/liburcu/Makefile sysutils/liburcu/Makefile >index f05e3f5eb9c0..d2605b01ef87 100644 >--- sysutils/liburcu/Makefile >+++ sysutils/liburcu/Makefile >@@ -26,4 +26,6 @@ CONFIGURE_ARGS+= --docdir=${DOCSDIR} > INSTALL_TARGET= install-strip > TEST_TARGET= check > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git sysutils/lttng-tools/Makefile sysutils/lttng-tools/Makefile >index db64664869f1..53e8c2ed3e26 100644 >--- sysutils/lttng-tools/Makefile >+++ sysutils/lttng-tools/Makefile >@@ -31,6 +31,8 @@ CONFIGURE_ARGS= --with-lttng-ust-prefix=${LOCALBASE} \ > --disable-maintainer-mode > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${STAGEDIR}${MANPREFIX}/man/man1/ > ${INSTALL_MAN} ${WRKSRC}/doc/man/*.3 ${STAGEDIR}${MANPREFIX}/man/man3/ >diff --git sysutils/lttng-ust/Makefile sysutils/lttng-ust/Makefile >index 4d2df52acf22..a569eccbba3f 100644 >--- sysutils/lttng-ust/Makefile >+++ sysutils/lttng-ust/Makefile >@@ -25,6 +25,8 @@ GNU_CONFIGURE= yes > INSTALL_TARGET= install-strip > TEST_TARGET= check > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|%%PYTHON_VERSION%%|${PYTHON_VERSION}|g' \ > ${PATCH_WRKSRC}/tools/lttng-gen-tp >diff --git sysutils/memdump/Makefile sysutils/memdump/Makefile >index e91d516cf493..cdbcade6de73 100644 >--- sysutils/memdump/Makefile >+++ sysutils/memdump/Makefile >@@ -20,6 +20,8 @@ MAKE_ARGS= OPT="${CFLAGS}" DEBUG='' > PORTDOCS= README > PLIST_FILES= bin/memdump man/man1/memdump.1.gz > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/memdump ${STAGEDIR}${PREFIX}/bin > ${INSTALL_MAN} ${WRKSRC}/memdump.1 ${STAGEDIR}${MANPREFIX}/man/man1 >diff --git sysutils/monitorix/Makefile sysutils/monitorix/Makefile >index ccb2460e81aa..aa002614676e 100644 >--- sysutils/monitorix/Makefile >+++ sysutils/monitorix/Makefile >@@ -52,6 +52,8 @@ WWW_FILES= logo_top.png \ > PORTDOCS= * > PORTDATA= *.pm > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.options.mk> > > pre-everything:: >diff --git sysutils/most/Makefile sysutils/most/Makefile >index 94f1ad0432f1..17e7526a6b52 100644 >--- sysutils/most/Makefile >+++ sysutils/most/Makefile >@@ -25,6 +25,8 @@ PORTDOCS= README changes.txt lesskeys.rc most-fun.txt most.doc most.rc > > PORTSCOUT= skipv:5.0.0a > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|' \ > ${WRKSRC}/src/jdmacros.h >diff --git sysutils/nbosd/Makefile sysutils/nbosd/Makefile >index aa81465aa292..11ff52ca16e0 100644 >--- sysutils/nbosd/Makefile >+++ sysutils/nbosd/Makefile >@@ -15,6 +15,8 @@ LIB_DEPENDS= libxosd.so:misc/xosd > PLIST_FILES= bin/nbosd > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/nbosd ${STAGEDIR}${PREFIX}/bin > ${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git sysutils/openhpi/Makefile sysutils/openhpi/Makefile >index 20bdc52b7c54..ba55ba2b0b4a 100644 >--- sysutils/openhpi/Makefile >+++ sysutils/openhpi/Makefile >@@ -29,6 +29,8 @@ USE_LDCONFIG= yes > USE_PERL5= build > USE_RC_SUBR= openhpid > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} 's/-lstdc++//' \ > ${WRKSRC}/baselib/Makefile.in \ >diff --git sysutils/py-bcfg2/Makefile sysutils/py-bcfg2/Makefile >index 735341b719a0..cce0af9995bc 100644 >--- sysutils/py-bcfg2/Makefile >+++ sysutils/py-bcfg2/Makefile >@@ -17,7 +17,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}daemon>=0:devel/py-daemon@${PY_FLAVOR} \ > ${PYTHON_PKGNAMEPREFIX}lockfile>=0:devel/py-lockfile@${PY_FLAVOR} \ > ${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} > >-OPTIONS_DEFINE= CHEETAH GENSHI >+OPTIONS_DEFINE= CHEETAH GENSHI DOCS > CHEETAH_DESC= Support Cheetah Templates > GENSHI_DESC= Support Genshi Templates > >diff --git sysutils/py-supervisor/Makefile sysutils/py-supervisor/Makefile >index b63008b3fc5e..78e1b2d864f8 100644 >--- sysutils/py-supervisor/Makefile >+++ sysutils/py-supervisor/Makefile >@@ -31,6 +31,8 @@ SHEBANG_FILES= supervisor/scripts/*.py supervisor/tests/fixtures/*.py > python_OLD_CMD= "/usr/bin/env python" > python_OLD_CMD+= "<<PYTHON>>" > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!' ${WRKSRC}/supervisor/options.py > >diff --git sysutils/qdirstat/Makefile sysutils/qdirstat/Makefile >index feb71726ff3d..b0055f3943c8 100644 >--- sysutils/qdirstat/Makefile >+++ sysutils/qdirstat/Makefile >@@ -18,6 +18,8 @@ USE_GL= gl > USE_QT= buildtools_build core gui widgets > SHEBANG_FILES= scripts/qdirstat-cache-writer > >+OPTIONS_DEFINE= DOCS >+ > pre-configure: > ${REINPLACE_CMD} -e 's,/usr/,${PREFIX}/,g' \ > ${WRKSRC}/doc/doc.pro >diff --git sysutils/racktables/Makefile sysutils/racktables/Makefile >index cf4dda210f43..c0eba2140ae0 100644 >--- sysutils/racktables/Makefile >+++ sysutils/racktables/Makefile >@@ -28,7 +28,7 @@ PLIST_SUB= WWWDIR_REL=${WWWDIR_REL} WWWDIR=${WWWDIR} > WWWUSER?= www > WWWGRP?= www > >-OPTIONS_DEFINE= LDAP SNMP CURL PCNTL PCRE >+OPTIONS_DEFINE= LDAP SNMP CURL PCNTL PCRE EXAMPLES > PCRE_DESC= Regular Expression Support > PCNTL_DESC= pcntl Support > LDAP_USE= PHP=ldap >diff --git sysutils/read-edid/Makefile sysutils/read-edid/Makefile >index d2a9870cffa9..c5c1a31e26a3 100644 >--- sysutils/read-edid/Makefile >+++ sysutils/read-edid/Makefile >@@ -16,4 +16,6 @@ USES= cmake localbase > PLIST_FILES= bin/get-edid bin/parse-edid man/man1/get-edid.1.gz > PORTDOCS= AUTHORS ChangeLog LICENSE README > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git sysutils/sas2ircu/Makefile sysutils/sas2ircu/Makefile >index f9968ed5b0a6..d02e320a12ea 100644 >--- sysutils/sas2ircu/Makefile >+++ sysutils/sas2ircu/Makefile >@@ -26,17 +26,17 @@ NO_WRKSRC= yes > ONLY_FOR_ARCHS= i386 amd64 > ONLY_FOR_ARCHS_REASON= Binaries only available for i386 and amd64 from Broadcom > >-.include <bsd.port.pre.mk> >+OPTIONS_DEFINE= DOCS > > do-install: >-.if ${PORT_OPTIONS:MDOCS} >+ ${INSTALL_PROGRAM} ${WRKSRC}/sas2ircu_freebsd_${ARCH}_rel/sas2ircu\ >+ ${STAGEDIR}${PREFIX}/sbin >+ >+post-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/Readme_Release_Notes_SAS2IRCU_Phase_${PORTVERSION}.txt\ > ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/SAS2IRCU_Phase20.0-${PORTVERSION}.pdf\ > ${STAGEDIR}${DOCSDIR} >-.endif >- ${INSTALL_PROGRAM} ${WRKSRC}/sas2ircu_freebsd_${ARCH}_rel/sas2ircu\ >- ${STAGEDIR}${PREFIX}/sbin > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >diff --git sysutils/scct/Makefile sysutils/scct/Makefile >index 3b3f85890f7f..0f91697c67ad 100644 >--- sysutils/scct/Makefile >+++ sysutils/scct/Makefile >@@ -20,6 +20,8 @@ GH_ACCOUNT= Jehops > PLIST_FILES= bin/scct > PORTDOCS= README.org > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/scct ${STAGEDIR}${PREFIX}/bin > ${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git sysutils/signon-qt5/Makefile sysutils/signon-qt5/Makefile >index 1a979e70610a..825faa704fa0 100644 >--- sysutils/signon-qt5/Makefile >+++ sysutils/signon-qt5/Makefile >@@ -22,6 +22,8 @@ GL_ACCOUNT= accounts-sso > GL_PROJECT= signond > GL_COMMIT= aa1bcf3c9218addbdb376a40151b689409046125 > >+OPTIONS_DEFINE= DOCS >+ > pre-configure: > #make it find qdbusxml2ccp (as ${QT_BINDIR} is not in PATH) > ${REINPLACE_CMD} -e 's,qdbusxml2cpp,${QT_BINDIR}/qdbusxml2cpp,' \ >diff --git sysutils/tkdvd/Makefile sysutils/tkdvd/Makefile >index fcd8eb4464b7..30555c3de6c2 100644 >--- sysutils/tkdvd/Makefile >+++ sysutils/tkdvd/Makefile >@@ -28,7 +28,7 @@ DESKTOP_ENTRIES="TkDVD" \ > "AudioVideo;DiscBurning;" \ > true > >-.include <bsd.port.options.mk> >+OPTIONS_DEFINE= DOCS > > post-patch: > @${REINPLACE_CMD} -e 's|tclsh|${TCLSH}|' ${WRKSRC}/install.tcl \ >diff --git sysutils/tree/Makefile sysutils/tree/Makefile >index 4e64b9eec67a..07b8fe5bd00d 100644 >--- sysutils/tree/Makefile >+++ sysutils/tree/Makefile >@@ -19,6 +19,8 @@ PLIST_FILES= bin/tree \ > > PORTDOCS= CHANGES README > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/tree ${STAGEDIR}${PREFIX}/bin > ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 >diff --git sysutils/ts/Makefile sysutils/ts/Makefile >index 0dae8c5e8612..6391a68524bb 100644 >--- sysutils/ts/Makefile >+++ sysutils/ts/Makefile >@@ -16,6 +16,8 @@ PLIST_FILES= bin/ts \ > man/man8/ts.8.gz > PORTDOCS= OBJECTIVES PROTOCOL README TRICKS > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} -e '/^GLIBCFLAGS/d;/^CFLAGS/d'\ > ${WRKSRC}/Makefile >diff --git sysutils/tw_cli/Makefile sysutils/tw_cli/Makefile >index a32ff9fe60e7..423441a8d854 100644 >--- sysutils/tw_cli/Makefile >+++ sysutils/tw_cli/Makefile >@@ -29,6 +29,8 @@ PORTDOCS= tw_cli.8.html > PLIST_FILES= etc/periodic/daily/407.status-3ware-raid\ > man/man8/tw_cli.8.gz sbin/tw_cli > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/${ARCH:S,i386,x86,:S,amd64,x86_64,}/tw_cli\ > ${STAGEDIR}${PREFIX}/sbin/tw_cli >diff --git sysutils/ucspi-ssl/Makefile sysutils/ucspi-ssl/Makefile >index 4d4ab5763444..d6b7c58917b8 100644 >--- sysutils/ucspi-ssl/Makefile >+++ sysutils/ucspi-ssl/Makefile >@@ -21,6 +21,8 @@ WRKSRC= ${WRKDIR}/host/superscript.com/net/${DISTNAME} > > SCRIPTS_TO_INSTALL= https@ sslcat sslconnect > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > post-patch: >diff --git sysutils/watchman/Makefile sysutils/watchman/Makefile >index 0c1c76522b8e..b58c916239ac 100644 >--- sysutils/watchman/Makefile >+++ sysutils/watchman/Makefile >@@ -27,7 +27,7 @@ PLIST_FILES= bin/${PORTNAME} \ > "@dir(,,2777) /var/run/${PORTNAME}" > PORTDOCS= README.markdown > >-OPTIONS_DEFINE= BACKTRACE PCRE >+OPTIONS_DEFINE= BACKTRACE PCRE DOCS > OPTIONS_DEFAULT=BACKTRACE PCRE > > BACKTRACE_DESC= Stack backtrace support via (lib)execinfo >diff --git sysutils/xcdroast/Makefile sysutils/xcdroast/Makefile >index c778fed06ce5..32228e8de498 100644 >--- sysutils/xcdroast/Makefile >+++ sysutils/xcdroast/Makefile >@@ -34,9 +34,9 @@ CONFIGURE_ARGS= --with-cdrtools-prefix=${LOCALBASE} \ > > .if ${PORT_OPTIONS:MNLS} > CONFIGURE_ARGS+=--disable-nls >-PLIST_SUB= NLS="@comment " >+PLIST_SUB+= NLS="@comment " > .else >-PLIST_SUB= NLS="" >+PLIST_SUB+= NLS="" > .endif > > .if ${PORT_OPTIONS:MGTK2} >diff --git sysutils/xjobs/Makefile sysutils/xjobs/Makefile >index bfe93bca5644..d6f8a8ebefad 100644 >--- sysutils/xjobs/Makefile >+++ sysutils/xjobs/Makefile >@@ -17,6 +17,8 @@ USES= tar:tgz > > PORTDOCS= ChangeLog README > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin > ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 >diff --git sysutils/zap/Makefile sysutils/zap/Makefile >index 77dd96cacc73..4278181ea093 100644 >--- sysutils/zap/Makefile >+++ sysutils/zap/Makefile >@@ -21,6 +21,8 @@ PORTDOCS= README.org > USERS= ${PORTNAME} > GROUPS= ${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin > ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1 >diff --git sysutils/zfsnap2/Makefile sysutils/zfsnap2/Makefile >index dee524ffef40..63094d0b464a 100644 >--- sysutils/zfsnap2/Makefile >+++ sysutils/zfsnap2/Makefile >@@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE > NO_BUILD= yes > USE_GITHUB= yes > >-OPTIONS_DEFINE= BASH ZSH >+OPTIONS_DEFINE= BASH ZSH DOCS EXAMPLES > OPTIONS_DEFAULT= BASH ZSH > OPTIONS_SUB= yes > >diff --git textproc/apache-solr3/Makefile textproc/apache-solr3/Makefile >index 671a9ac0289a..f2f4d4c1fa2e 100644 >--- textproc/apache-solr3/Makefile >+++ textproc/apache-solr3/Makefile >@@ -24,6 +24,8 @@ CPE_PRODUCT= solr > CPE_VENDOR= apache > NO_ARCH= yes > >+OPTIONS_DEFINE= EXAMPLES >+ > do-install: > cd ${WRKSRC}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${JAVAJARDIR} > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >diff --git textproc/bibtool/Makefile textproc/bibtool/Makefile >index a45f7d1b6c5d..122056a258b8 100644 >--- textproc/bibtool/Makefile >+++ textproc/bibtool/Makefile >@@ -23,6 +23,8 @@ INSTALL_TARGET= install install.man > > PORTDOCS= bibtool.pdf ref_card.pdf c_lib.pdf > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${REINPLACE_CMD} 's/bibtex$$/&8/' ${WRKSRC}/doc/Makefile > >diff --git textproc/docbook-utils/Makefile textproc/docbook-utils/Makefile >index 95ad8d246720..9c16e6a27ba5 100644 >--- textproc/docbook-utils/Makefile >+++ textproc/docbook-utils/Makefile >@@ -30,6 +30,8 @@ perl_OLD_CMD= @perl_bindir@/perl > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|/etc/sgml/catalog|${PREFIX}/share/sgml/catalog|g' \ > ${WRKSRC}/doc/HTML/Makefile.in >diff --git textproc/elixir-earmark/Makefile textproc/elixir-earmark/Makefile >index 145e5ddfa3e9..7c976bc6c023 100644 >--- textproc/elixir-earmark/Makefile >+++ textproc/elixir-earmark/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= pragdave > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/elixir-ex_doc/Makefile textproc/elixir-ex_doc/Makefile >index ddd2a7278e52..d151ea29d270 100644 >--- textproc/elixir-ex_doc/Makefile >+++ textproc/elixir-ex_doc/Makefile >@@ -22,4 +22,6 @@ MIX_BUILD_DEPS= textproc/elixir-earmark > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/elixir-funnel/Makefile textproc/elixir-funnel/Makefile >index 9daad4ef44e2..6adc1c4cd66b 100644 >--- textproc/elixir-funnel/Makefile >+++ textproc/elixir-funnel/Makefile >@@ -21,4 +21,6 @@ MIX_BUILD_DEPS= devel/elixir-poison \ > www/elixir-httpoison > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/elixir-sweet_xml/Makefile textproc/elixir-sweet_xml/Makefile >index 327980b84578..18fd0aab33c2 100644 >--- textproc/elixir-sweet_xml/Makefile >+++ textproc/elixir-sweet_xml/Makefile >@@ -15,4 +15,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= gniquil > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/erlang-edown/Makefile textproc/erlang-edown/Makefile >index 4d23577bfa8c..484dc9f8506c 100644 >--- textproc/erlang-edown/Makefile >+++ textproc/erlang-edown/Makefile >@@ -14,4 +14,6 @@ GH_ACCOUNT= uwiger > > ERL_DOCS= doc/* > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/erlang-fast_xml/Makefile textproc/erlang-fast_xml/Makefile >index a39b462ad800..16f88173472f 100644 >--- textproc/erlang-fast_xml/Makefile >+++ textproc/erlang-fast_xml/Makefile >@@ -22,6 +22,8 @@ ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > CFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib -l expat > >+OPTIONS_DEFINE= DOCS >+ > pre-install: > ${STRIP_CMD} ${WRKSRC}/priv/lib/*.so > >diff --git textproc/erlang-p1_utils/Makefile textproc/erlang-p1_utils/Makefile >index 09c89dd55e34..0b5314b4c7f9 100644 >--- textproc/erlang-p1_utils/Makefile >+++ textproc/erlang-p1_utils/Makefile >@@ -14,4 +14,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= processone > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/erlang-yamerl/Makefile textproc/erlang-yamerl/Makefile >index 516de1f38ca0..9d862fde8ac6 100644 >--- textproc/erlang-yamerl/Makefile >+++ textproc/erlang-yamerl/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= yakaz > > ERL_DOCS= README.md doc > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/expat2/Makefile textproc/expat2/Makefile >index 4d211683e70b..215dc10c0aa3 100644 >--- textproc/expat2/Makefile >+++ textproc/expat2/Makefile >@@ -19,4 +19,6 @@ USE_LDCONFIG= yes > CONFIGURE_ARGS= --without-docbook > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/highlight/Makefile textproc/highlight/Makefile >index 39aa1c5788c3..b9d6f94a3e52 100644 >--- textproc/highlight/Makefile >+++ textproc/highlight/Makefile >@@ -25,6 +25,8 @@ MAKE_ARGS= CXX="${CXX}" \ > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} \ > -e 's|^PREFIX =|PREFIX ?=|' \ >diff --git textproc/html-xml-utils/Makefile textproc/html-xml-utils/Makefile >index da3838a8f4da..2e998addc93f 100644 >--- textproc/html-xml-utils/Makefile >+++ textproc/html-xml-utils/Makefile >@@ -21,7 +21,7 @@ SHEBANG_FILES= ${WRKSRC}/hxcite-mkbib > CONFIGURE_ARGS= LDFLAGS=${ICONV_LIB} > > OPTIONS_SUB= yes >-OPTIONS_DEFINE= CURL IDN IDN2 >+OPTIONS_DEFINE= CURL IDN IDN2 DOCS > CURL_CONFIGURE_WITH= libcurl=${LOCALBASE} > CURL_LIB_DEPENDS= libcurl.so:ftp/curl > IDN_CONFIGURE_WITH= libidn=${LOCALBASE} >diff --git textproc/htmlc/Makefile textproc/htmlc/Makefile >index 114016f24214..ce610b712945 100644 >--- textproc/htmlc/Makefile >+++ textproc/htmlc/Makefile >@@ -21,6 +21,8 @@ PORTDOCS= LICENSE INSTALL README JoeCaml.gif rocq.gif copyright-eng.htm \ > HAS_CONFIGURE= yes > CONFIGURE_ARGS= --prefix ${LOCALBASE} > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > ${RM} ${WRKSRC}/doc/Makefile > ${TOUCH} ${WRKSRC}/doc/Makefile >diff --git textproc/java2html/Makefile textproc/java2html/Makefile >index 3015897136d7..91da197f2a0c 100644 >--- textproc/java2html/Makefile >+++ textproc/java2html/Makefile >@@ -16,6 +16,8 @@ GNU_CONFIGURE= yes > PORTDOCS= AUTHORS NEWS README > PLIST_FILES= bin/java2html man/man1/java2html.1.gz > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} >diff --git textproc/libepubgen/Makefile textproc/libepubgen/Makefile >index 1dbce5f6bbf7..bf89fdc446be 100644 >--- textproc/libepubgen/Makefile >+++ textproc/libepubgen/Makefile >@@ -28,7 +28,7 @@ USES= compiler:c++11-lang libtool pathfix pkgconfig tar:xz > USE_LDCONFIG= yes > INSTALL_TARGET= install-strip > >-OPTIONS_DEFINE= DOXYGEN TEST >+OPTIONS_DEFINE= DOCS DOXYGEN TEST > OPTIONS_DEFAULT= > OPTIONS_SUB= yes > >@@ -40,5 +40,6 @@ TEST_CONFIGURE_ENABLE= tests > PORTDOCS= * > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_CONFIGURE_OFF= --without-docs >+DOXYGEN_IMPLIES= DOCS > > .include <bsd.port.mk> >diff --git textproc/libqxp/Makefile textproc/libqxp/Makefile >index 14cb2ddcafe0..270505828345 100644 >--- textproc/libqxp/Makefile >+++ textproc/libqxp/Makefile >@@ -30,7 +30,7 @@ USES= compiler:c++11-lang libtool pathfix pkgconfig tar:xz > USE_LDCONFIG= yes > INSTALL_TARGET= install-strip > >-OPTIONS_DEFINE= DOXYGEN TEST >+OPTIONS_DEFINE= DOCS DOXYGEN TEST > OPTIONS_DEFAULT= > OPTIONS_SUB= yes > >@@ -41,5 +41,6 @@ TEST_CONFIGURE_ENABLE= tests > PORTDOCS= * > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_CONFIGURE_OFF= --without-docs >+DOXYGEN_IMPLIES= DOCS > > .include <bsd.port.mk> >diff --git textproc/librevenge/Makefile textproc/librevenge/Makefile >index b3a97b6b43d1..6f7d70c49bc9 100644 >--- textproc/librevenge/Makefile >+++ textproc/librevenge/Makefile >@@ -19,12 +19,13 @@ INSTALL_TARGET= install-strip > > BUILD_DEPENDS= ${LOCALBASE}/include/boost/algorithm/string.hpp:devel/boost-libs > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS > > CPPFLAGS= -I${LOCALBASE}/include > CONFIGURE_ARGS= -disable-werror --disable-tests > > PORTDOCS= * >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_CONFIGURE_OFF= --without-docs > >diff --git textproc/libxml++26-reference/pkg-plist textproc/libxml++26-reference/pkg-plist >index cce2f0a79f99..f690fea54084 100644 >--- textproc/libxml++26-reference/pkg-plist >+++ textproc/libxml++26-reference/pkg-plist >@@ -1 +1 @@ >-%%PORTDOCS%%share/devhelp/books/libxml++-%%API_VERSION%%/libxml++-%%API_VERSION%%.devhelp2 >+share/devhelp/books/libxml++-%%API_VERSION%%/libxml++-%%API_VERSION%%.devhelp2 >diff --git textproc/linux-c6-expat/Makefile textproc/linux-c6-expat/Makefile >index b212984d9b50..ba96f1190c6b 100644 >--- textproc/linux-c6-expat/Makefile >+++ textproc/linux-c6-expat/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/linux-c6-libxml2/Makefile textproc/linux-c6-libxml2/Makefile >index a7a519b0040c..ba6641234886 100644 >--- textproc/linux-c6-libxml2/Makefile >+++ textproc/linux-c6-libxml2/Makefile >@@ -15,4 +15,6 @@ USES= linux:c6 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/linux-c7-expat/Makefile textproc/linux-c7-expat/Makefile >index 958712c37409..272d3914ec72 100644 >--- textproc/linux-c7-expat/Makefile >+++ textproc/linux-c7-expat/Makefile >@@ -19,4 +19,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/linux-c7-libxml2/Makefile textproc/linux-c7-libxml2/Makefile >index be3580c9d024..c0baf1ac538f 100644 >--- textproc/linux-c7-libxml2/Makefile >+++ textproc/linux-c7-libxml2/Makefile >@@ -19,4 +19,6 @@ USES= linux:c7 > USE_LDCONFIG= yes > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git textproc/metauml/Makefile textproc/metauml/Makefile >index 8075c5448940..4ab469808690 100644 >--- textproc/metauml/Makefile >+++ textproc/metauml/Makefile >@@ -32,6 +32,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}_lib > PORTDOCS= ${PORTNAME}_manual_${PORTVERSION}.pdf > PORTEXAMPLES= *.1 *.jpg *.mp lop lop.html lop.pdf lop.tex > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > do-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/${MPDIR} > ${INSTALL_DATA} ${WRKSRC}/thrunk/*.mp ${STAGEDIR}${PREFIX}/${MPDIR} >diff --git textproc/py-xlwriter/Makefile textproc/py-xlwriter/Makefile >index ef0f71606cec..69f028a38eab 100644 >--- textproc/py-xlwriter/Makefile >+++ textproc/py-xlwriter/Makefile >@@ -16,6 +16,8 @@ USE_PYTHON= distutils autoplist > > PORTEXAMPLES= * > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${FIND} ${WRKSRC}/examples -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR} \; >diff --git textproc/rss2html/Makefile textproc/rss2html/Makefile >index d00a3044ffed..d110416fc2d2 100644 >--- textproc/rss2html/Makefile >+++ textproc/rss2html/Makefile >@@ -20,6 +20,8 @@ CFLAGS+= "-I${LOCALBASE}/include" "-L${LOCALBASE}/lib" > PLIST_FILES= bin/rss2html man/man1/rss2html.1.gz > PORTDOCS= rss2html.links usage.example rss2html.template > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e '16,20d' ${WRKSRC}/Makefile.acr > >diff --git textproc/ruby-rdtool/Makefile textproc/ruby-rdtool/Makefile >index cde135906286..b405ca77923e 100644 >--- textproc/ruby-rdtool/Makefile >+++ textproc/ruby-rdtool/Makefile >@@ -24,7 +24,7 @@ RUBY_MODNAME= rd > DOCS_EN= README.rd doc/rd-draft.rd > DOCS_JA= README.rd.ja doc/rd-draft.rd.ja > >-OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS EXAMPLES > > post-install: > ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/rd >diff --git textproc/smi/Makefile textproc/smi/Makefile >index 85edf5fc535b..55dcf418a01f 100644 >--- textproc/smi/Makefile >+++ textproc/smi/Makefile >@@ -24,6 +24,8 @@ MAKE_ENV= PROG="${PORTNAME}" FILES="${PORTDOCS}" \ > MANDIR="${MANPREFIX}/man/man" > CFLAGS+= -DVERSION=${PORTVERSION} > >+OPTIONS_DEFINE= DOCS >+ > pre-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > >diff --git textproc/tex2im/Makefile textproc/tex2im/Makefile >index 9df1be9be6c2..9815828cdac0 100644 >--- textproc/tex2im/Makefile >+++ textproc/tex2im/Makefile >@@ -20,6 +20,8 @@ PORTEXAMPLES= example1.png example1.tex example2.png example2.tex \ > example3.png example3.tex example4.png example4.tex \ > fig_1.eps > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e "s,^#!/bin/bash,#!${LOCALBASE}/bin/bash,g" ${WRKSRC}/tex2im > >diff --git textproc/xerces-j/Makefile textproc/xerces-j/Makefile >index 8197a835c219..b9ea2465fb23 100644 >--- textproc/xerces-j/Makefile >+++ textproc/xerces-j/Makefile >@@ -26,6 +26,8 @@ JARFILES= xercesImpl.jar xml-apis.jar > > PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,} > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > do-install: > @${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..." > .for JARFILE in ${JARFILES} >diff --git textproc/xom/Makefile textproc/xom/Makefile >index c8fe407a4499..8c2eb38088c5 100644 >--- textproc/xom/Makefile >+++ textproc/xom/Makefile >@@ -18,7 +18,7 @@ JAVA_VERSION= 1.6+ > NO_BUILD= yes > WRKSRC= ${WRKDIR}/XOM > >-OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS EXAMPLES > > PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar > PORTDOCS= overview.html apidocs >diff --git textproc/xp/Makefile textproc/xp/Makefile >index 3c36ee841ae4..950b5b57cc90 100644 >--- textproc/xp/Makefile >+++ textproc/xp/Makefile >@@ -23,6 +23,8 @@ PORTDOCS= api copying.txt index.html > JARFILE= ${PORTNAME}.jar > PLIST_FILES+= %%JAVAJARDIR%%/${JARFILE} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${ECHO_CMD} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..." > @${MKDIR} ${STAGEDIR}${JAVAJARDIR} >diff --git www/amphetadesk/Makefile www/amphetadesk/Makefile >index 94d572475d75..bea32ca64edc 100644 >--- www/amphetadesk/Makefile >+++ www/amphetadesk/Makefile >@@ -38,6 +38,8 @@ SUB_LIST+= PERL="${PERL}" > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > post-patch: >diff --git www/apache24/Makefile.options www/apache24/Makefile.options >index 4980ae71e634..14828e0c7be3 100644 >--- www/apache24/Makefile.options >+++ www/apache24/Makefile.options >@@ -85,6 +85,7 @@ ALL_MODULES= ${MOST_ENABLED_MODULES} ${MOST_DISABLED_MODULES} \ > ${EXAMPLE_MODULES} ${META_MODULES} > > OPTIONS_DEFINE= \ >+ DOCS \ > ${MOST_ENABLED_MODULES} \ > ${MOST_DISABLED_MODULES}\ > ${ADDITIONAL_OPT} \ >diff --git www/axis/Makefile www/axis/Makefile >index a60ea613c41e..6eaa826c2ddd 100644 >--- www/axis/Makefile >+++ www/axis/Makefile >@@ -13,6 +13,7 @@ COMMENT= Java SOAP implementation by Apache > > LICENSE= APACHE20 > >+OPTIONS_DEFINE= DOCS EXAMPLES > OPTIONS_SINGLE= AS > OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7 > OPTIONS_DEFAULT= TOMCAT6 >diff --git www/cgicc/Makefile www/cgicc/Makefile >index f2756ffd48a7..ac1c0f53824d 100644 >--- www/cgicc/Makefile >+++ www/cgicc/Makefile >@@ -11,7 +11,7 @@ COMMENT= C++ class library for writing CGI applications > > LICENSE= LGPL3+ > >-OPTIONS_DEFINE= DOXYGEN >+OPTIONS_DEFINE= DOXYGEN DOCS > > USES= gmake pathfix libtool > GNU_CONFIGURE= yes >@@ -24,6 +24,7 @@ CXXFLAGS+= -Wno-unknown-pragmas > > PORTDOCS= * > >+DOXYGEN_IMPLIES= DOCS > DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen > DOXYGEN_CONFIGURE_ENV_OFF= ac_cv_prog_DOXYGEN="${ECHO_CMD}" > >diff --git www/elixir-html_entities/Makefile www/elixir-html_entities/Makefile >index 08296be23d89..f012ebc95ceb 100644 >--- www/elixir-html_entities/Makefile >+++ www/elixir-html_entities/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= martinsvalin > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-html_sanitize_ex/Makefile www/elixir-html_sanitize_ex/Makefile >index 7f81788da679..f1e08952ae49 100644 >--- www/elixir-html_sanitize_ex/Makefile >+++ www/elixir-html_sanitize_ex/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= www/erlang-mochiweb > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-httpoison/Makefile www/elixir-httpoison/Makefile >index 5a21a91c8f5b..f4568886efd5 100644 >--- www/elixir-httpoison/Makefile >+++ www/elixir-httpoison/Makefile >@@ -18,4 +18,6 @@ GH_ACCOUNT= edgurgel > MIX_BUILD_DEPS= www/erlang-hackney > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-httpotion/Makefile www/elixir-httpotion/Makefile >index 3f9bf1bbadbc..02a2cbd642f4 100644 >--- www/elixir-httpotion/Makefile >+++ www/elixir-httpotion/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= www/erlang-ibrowse > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-joken/Makefile www/elixir-joken/Makefile >index e7221efd3642..06d732dbe450 100644 >--- www/elixir-joken/Makefile >+++ www/elixir-joken/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= devel/elixir-plug \ > security/elixir-jose > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-maru/Makefile www/elixir-maru/Makefile >index 0339542ef659..2b362f71a41b 100644 >--- www/elixir-maru/Makefile >+++ www/elixir-maru/Makefile >@@ -20,4 +20,6 @@ MIX_BUILD_DEPS= devel/elixir-plug \ > www/erlang-cowboy > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-phoenix/Makefile www/elixir-phoenix/Makefile >index e8054e3230d1..838de1a58910 100644 >--- www/elixir-phoenix/Makefile >+++ www/elixir-phoenix/Makefile >@@ -15,7 +15,7 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= phoenixframework > >-OPTIONS_DEFINE= COWBOY >+OPTIONS_DEFINE= COWBOY DOCS > COWBOY_DESC= Use Cowboy library > > COWBOY_BUILD_DEPENDS= erlang-cowboy>=0:www/erlang-cowboy >diff --git www/elixir-phoenix_ecto/Makefile www/elixir-phoenix_ecto/Makefile >index 915679b8ae32..deee537ff17a 100644 >--- www/elixir-phoenix_ecto/Makefile >+++ www/elixir-phoenix_ecto/Makefile >@@ -22,4 +22,6 @@ MIX_BUILD_DEPS= databases/elixir-ecto \ > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-phoenix_html/Makefile www/elixir-phoenix_html/Makefile >index 2509717eca45..b528647490b9 100644 >--- www/elixir-phoenix_html/Makefile >+++ www/elixir-phoenix_html/Makefile >@@ -19,4 +19,6 @@ MIX_BUILD_DEPS= devel/elixir-plug > MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-phoenix_pubsub/Makefile www/elixir-phoenix_pubsub/Makefile >index 97cd12a1c9c2..2e5d702cd8e8 100644 >--- www/elixir-phoenix_pubsub/Makefile >+++ www/elixir-phoenix_pubsub/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= phoenixframework > > MIX_REWRITE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/elixir-webassembly/Makefile www/elixir-webassembly/Makefile >index e1e9de064075..2bb815b528a2 100644 >--- www/elixir-webassembly/Makefile >+++ www/elixir-webassembly/Makefile >@@ -15,4 +15,6 @@ USES= elixir > USE_GITHUB= yes > GH_ACCOUNT= herenowcoder > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/erlang-cowboy/Makefile www/erlang-cowboy/Makefile >index b7dbbbc022f3..0136a22964e7 100644 >--- www/erlang-cowboy/Makefile >+++ www/erlang-cowboy/Makefile >@@ -18,7 +18,9 @@ ERL_BUILD_DEPS= www/erlang-cowlib > ERL_RUN_DEPS= www/erlang-cowlib \ > net/erlang-ranch > >-post-install: >+OPTIONS_DEFINE= DOCS EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} > >diff --git www/erlang-cowlib/Makefile www/erlang-cowlib/Makefile >index 66ca4067f285..06457f42a3f3 100644 >--- www/erlang-cowlib/Makefile >+++ www/erlang-cowlib/Makefile >@@ -15,4 +15,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= ninenines > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/erlang-hackney/Makefile www/erlang-hackney/Makefile >index 65c984671b88..9cce3b684f6b 100644 >--- www/erlang-hackney/Makefile >+++ www/erlang-hackney/Makefile >@@ -21,6 +21,8 @@ ERL_BUILD_DEPS= dns/erlang-idna \ > misc/erlang-mimerl > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > pre-build: > @${MKDIR} ${WRKSRC}/_build/default/lib > .for lib in idna certifi ssl_verify_fun metrics mimerl >diff --git www/erlang-ibrowse/Makefile www/erlang-ibrowse/Makefile >index ad3facf1ee42..b19a8c5eae03 100644 >--- www/erlang-ibrowse/Makefile >+++ www/erlang-ibrowse/Makefile >@@ -16,4 +16,6 @@ USES= erlang:rebar > USE_GITHUB= yes > GH_ACCOUNT= cmullaparthi > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/erlang-mochiweb-basho/Makefile www/erlang-mochiweb-basho/Makefile >index f1640e60bbd6..4e3870275aab 100644 >--- www/erlang-mochiweb-basho/Makefile >+++ www/erlang-mochiweb-basho/Makefile >@@ -18,7 +18,9 @@ USE_GITHUB= yes > GH_ACCOUNT= basho > GH_TAGNAME= 4d38821 # required > >-post-install: >+OPTIONS_DEFINE= DOCS EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} > >diff --git www/erlang-mochiweb/Makefile www/erlang-mochiweb/Makefile >index d69708d4b4ec..d6966373d2c0 100644 >--- www/erlang-mochiweb/Makefile >+++ www/erlang-mochiweb/Makefile >@@ -18,7 +18,9 @@ CPE_VENDOR= mochiweb_project > USE_GITHUB= yes > GH_ACCOUNT= mochi > >-post-install: >+OPTIONS_DEFINE= DOCS EXAMPLES >+ >+post-install-EXAMPLES-on: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} > >diff --git www/erlang-webmachine/Makefile www/erlang-webmachine/Makefile >index c7e20b004e9d..252aa4f191a0 100644 >--- www/erlang-webmachine/Makefile >+++ www/erlang-webmachine/Makefile >@@ -17,4 +17,6 @@ GH_ACCOUNT= webmachine > ERL_BUILD_DEPS= www/erlang-mochiweb-basho > ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/hypermail/Makefile www/hypermail/Makefile >index e19ef899d790..688965954614 100644 >--- www/hypermail/Makefile >+++ www/hypermail/Makefile >@@ -24,6 +24,8 @@ CONFIGURE_ARGS= --with-htmldir=${STAGEDIR}${PREFIX}/share/doc/hypermail \ > CFLAGS+= -L${LOCALBASE}/lib > WRKSRC= ${WRKDIR}/${PORTNAME} > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/hypermail \ > ${STAGEDIR}/${PREFIX}/bin/msg2archive \ >diff --git www/jericho-html/Makefile www/jericho-html/Makefile >index 5e1ce2349f51..de30f4572e3e 100644 >--- www/jericho-html/Makefile >+++ www/jericho-html/Makefile >@@ -21,6 +21,8 @@ INTERFACES:= "compile-time-dependencies/slf4j-api-1.6.1.jar:\ > PORTDOCS= * > PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar > >+OPTIONS_DEFINE= DOCS >+ > do-build: > (cd ${WRKSRC} && ${RM} -r classes/* && ${SETENV} \ > LANG=en_US.ISO8859-1 LC_ALL=en_US.ISO8859-1 ${JAVAC} \ >diff --git www/linux-opera/Makefile www/linux-opera/Makefile >index 7768fc123f9d..2584e3348e94 100644 >--- www/linux-opera/Makefile >+++ www/linux-opera/Makefile >@@ -38,6 +38,8 @@ RENAME= opera lib/opera \ > share/doc/opera share/opera man/man1/opera.1 \ > share/mime/packages/opera-extension.xml > >+OPTIONS_DEFINE= DOCS >+ > post-extract: > @${GUNZIP_CMD} ${WRKSRC}/share/man/man1/*.gz > @${MV} ${WRKSRC}/share/man ${WRKSRC}/man >diff --git www/luakit/Makefile www/luakit/Makefile >index ec3d36333b35..196a7474ca40 100644 >--- www/luakit/Makefile >+++ www/luakit/Makefile >@@ -30,7 +30,7 @@ NOT_FOR_ARCHS_REASON_sparc64= Does not install on sparc64 > > MAKE_ARGS+= DEVELOPMENT_PATHS=0 > >-OPTIONS_DEFINE= LUAJIT >+OPTIONS_DEFINE= DOCS LUAJIT > LUAJIT_DESC= Use the Just-In-Time compiler for lua > LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit > LUAJIT_MAKE_ARGS= USE_LUAJIT=1 >diff --git www/mod_auth_cas/Makefile www/mod_auth_cas/Makefile >index a8f693eb3032..d8edcb2123e4 100644 >--- www/mod_auth_cas/Makefile >+++ www/mod_auth_cas/Makefile >@@ -35,7 +35,7 @@ SUB_FILES= ${APMOD_FILE} > APMOD_FILE= 250_${PORTNAME}.conf.sample > PLIST_SUB+= APMOD_FILE=${APMOD_FILE} > >-.include <bsd.port.pre.mk> >+OPTIONS_DEFINE= DOCS > > do-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} ${STAGEDIR}${DOCSDIR} >@@ -46,4 +46,4 @@ do-install: > ${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d > ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >diff --git www/mod_auth_external2/Makefile www/mod_auth_external2/Makefile >index 3477a9825f1b..eeefed8f67c5 100644 >--- www/mod_auth_external2/Makefile >+++ www/mod_auth_external2/Makefile >@@ -21,7 +21,9 @@ SHORTMODNAME= auth_external > > PORTDOCS= AUTHENTICATORS INSTALL README > >-post-install: >+OPTIONS_DEFINE= DOCS >+ >+post-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} > >diff --git www/mod_auth_mysql_another/Makefile www/mod_auth_mysql_another/Makefile >index 4813913ce7f6..8915ebe4b60e 100644 >--- www/mod_auth_mysql_another/Makefile >+++ www/mod_auth_mysql_another/Makefile >@@ -25,6 +25,8 @@ AP_EXTRAS= -lmysqlclient_r -lz -lm > > PORTDOCS= CONFIGURE CHANGES > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git www/mod_auth_pam2/Makefile www/mod_auth_pam2/Makefile >index 7fecef1e7583..70b03a057d8e 100644 >--- www/mod_auth_pam2/Makefile >+++ www/mod_auth_pam2/Makefile >@@ -24,6 +24,8 @@ AP_GENPLIST= yes > > AP_EXTRAS+= -lpam > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-install: > @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/samples/httpd ${STAGEDIR}${EXAMPLESDIR}/pam-httpd.sample >diff --git www/mod_auth_pgsql2/Makefile www/mod_auth_pgsql2/Makefile >index 61839d5c4890..2f74ea0b8e7b 100644 >--- www/mod_auth_pgsql2/Makefile >+++ www/mod_auth_pgsql2/Makefile >@@ -19,6 +19,8 @@ AP_FAST_BUILD= yes > AP_GENPLIST= yes > PORTDOCS= mod_auth_pgsql.html > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git www/mod_authnz_external24/Makefile www/mod_authnz_external24/Makefile >index fb7a93efd423..9f74666523ee 100644 >--- www/mod_authnz_external24/Makefile >+++ www/mod_authnz_external24/Makefile >@@ -21,6 +21,8 @@ SHORTMODNAME= authnz_external > PORTDOCS= AUTHENTICATORS INSTALL README \ > CHANGES UPGRADE INSTALL.HARDCODE > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git www/mod_cfg_ldap/Makefile www/mod_cfg_ldap/Makefile >index f1cddeddd19b..8089c50acd12 100644 >--- www/mod_cfg_ldap/Makefile >+++ www/mod_cfg_ldap/Makefile >@@ -26,7 +26,9 @@ AP_LIB+= ${LDAP_LIB} > PORTDOCS= AUTHORS cfg_ldap.conf ChangeLog COPYING INSTALL \ > mod_cfg_ldap.schema README TODO > >-post-install: >+OPTIONS_DEFINE= DOCS >+ >+post-install-DOCS-on: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} > >diff --git www/mod_chroot/Makefile www/mod_chroot/Makefile >index 25592bcf4aca..0571d07dea48 100644 >--- www/mod_chroot/Makefile >+++ www/mod_chroot/Makefile >@@ -17,6 +17,8 @@ AP_GENPLIST= yes > > PORTDOCS= INSTALL CAVEATS README.Apache20 README > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git www/mod_cvs2/Makefile www/mod_cvs2/Makefile >index 3dbea8b05288..d023a5e7a8ef 100644 >--- www/mod_cvs2/Makefile >+++ www/mod_cvs2/Makefile >@@ -22,6 +22,8 @@ AP_GENPLIST= yes > > PORTDOCS= reference.html guide.html README > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} >diff --git www/mod_domaintree/Makefile www/mod_domaintree/Makefile >index 99a52b0395a7..dea58047532d 100644 >--- www/mod_domaintree/Makefile >+++ www/mod_domaintree/Makefile >@@ -18,6 +18,8 @@ AP_GENPLIST= yes > > PORTDOCS= LICENSE.txt ChangeLog > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git www/mod_evasive/Makefile www/mod_evasive/Makefile >index cffd8b0f0803..6e36b62571d2 100644 >--- www/mod_evasive/Makefile >+++ www/mod_evasive/Makefile >@@ -24,6 +24,8 @@ MODULENAME= ${PORTNAME}20 > > PORTDOCS= README test.pl > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > post-patch: >diff --git www/mod_fastcgi/Makefile www/mod_fastcgi/Makefile >index 88ebc5911055..e68892b317de 100644 >--- www/mod_fastcgi/Makefile >+++ www/mod_fastcgi/Makefile >@@ -19,7 +19,9 @@ AP_GENPLIST= yes > SRC_FILE= *.c > PORTDOCS= mod_fastcgi.html > >-post-install: >+OPTIONS_DEFINE= DOCS >+ >+post-install-DOCS-on: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR} > >diff --git www/mod_geoip2/Makefile www/mod_geoip2/Makefile >index 1dc1cf454af6..010a2deea1d5 100644 >--- www/mod_geoip2/Makefile >+++ www/mod_geoip2/Makefile >@@ -26,6 +26,8 @@ AP_LIB+= ${LOCALBASE}/lib -lGeoIP > SUB_FILES+= pkg-message > PORTDOCS= Changes INSTALL.md README.md README.php > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} >diff --git www/mod_gzip2/Makefile www/mod_gzip2/Makefile >index 60f5fc5cad53..0b80b30e7185 100644 >--- www/mod_gzip2/Makefile >+++ www/mod_gzip2/Makefile >@@ -21,6 +21,8 @@ USES= apache:2.2+ gmake > PORTDOCS= commands.txt samples.txt > PORTEXAMPLES= mod_gzip2.conf.sample > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > @${MV} ${WRKSRC}/mod_gzip.c ${WRKSRC}/${PORTNAME}.c > >diff --git www/mod_http2-devel/Makefile www/mod_http2-devel/Makefile >index e805137fa865..c400c1e07d2b 100644 >--- www/mod_http2-devel/Makefile >+++ www/mod_http2-devel/Makefile >@@ -31,6 +31,8 @@ CFLAGS+= -I${LOCALBASE}/include > SUB_FILES= 200_mod_http2.conf 300_mod_proxy_http2.conf > PORTDOCS= README README.md > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d > ${INSTALL_DATA} ${WRKDIR}/200_mod_http2.conf \ >diff --git www/mod_limitipconn2/Makefile www/mod_limitipconn2/Makefile >index 7b2a015aac3d..713e12940416 100644 >--- www/mod_limitipconn2/Makefile >+++ www/mod_limitipconn2/Makefile >@@ -22,6 +22,8 @@ AP_GENPLIST= yes > > PORTDOCS= ChangeLog INSTALL README > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}/ >diff --git www/mod_md-devel/Makefile www/mod_md-devel/Makefile >index 7c98878b4a7b..5c2ceee6fbcc 100644 >--- www/mod_md-devel/Makefile >+++ www/mod_md-devel/Makefile >@@ -39,6 +39,8 @@ SUB_FILES= 999_mod_md.conf pkg-message > DOCSDIR= share/doc/mod_md > PORTDOCS= README README.md > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100085 && ${SSL_DEFAULT} == base >diff --git www/mod_rpaf2/Makefile www/mod_rpaf2/Makefile >index d991f46e21f4..ebff3429f91b 100644 >--- www/mod_rpaf2/Makefile >+++ www/mod_rpaf2/Makefile >@@ -31,11 +31,11 @@ SUB_FILES= ${APMOD_FILE} > > PORTDOCS= README.md > >-.include <bsd.port.pre.mk> >+OPTIONS_DEFINE= DOCS > > post-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d > ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} > >-.include <bsd.port.post.mk> >+.include <bsd.port.mk> >diff --git www/mod_tsa/Makefile www/mod_tsa/Makefile >index fd0dc6a0f280..173386a5288f 100644 >--- www/mod_tsa/Makefile >+++ www/mod_tsa/Makefile >@@ -11,7 +11,7 @@ MASTER_SITES= http://am.nesiac.org/static/ \ > MAINTAINER= joneum@FreeBSD.org > COMMENT= Time stamping authority (RFC 3161) module for apache > >-OPTIONS_DEFINE= MYSQL PGSQL FIREBIRD DEBUG DEBUG_MEMORY >+OPTIONS_DEFINE= MYSQL PGSQL FIREBIRD DEBUG DEBUG_MEMORY EXAMPLES > DEBUG_MEMORY_DESC= Memory debug > > GNU_CONFIGURE= yes >diff --git www/p5-CGI.pm/Makefile www/p5-CGI.pm/Makefile >index 447e6a1be054..c969ec84ba6c 100644 >--- www/p5-CGI.pm/Makefile >+++ www/p5-CGI.pm/Makefile >@@ -32,6 +32,8 @@ EXAMPLES= examples/caution.xbm examples/clickable_image.cgi \ > examples/popup.cgi examples/save_state.cgi \ > examples/tryit.cgi examples/wilogo.gif > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e '/require 5\.6/d; /INSTALLDIRS/d' ${WRKSRC}/Makefile.PL > >diff --git www/php-templates/Makefile www/php-templates/Makefile >index 4017cc379de9..067c5567c07f 100644 >--- www/php-templates/Makefile >+++ www/php-templates/Makefile >@@ -26,6 +26,8 @@ SUB_FILES= pkg-message > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} > ${INSTALL_LIB} ${WRKSRC}/modules/templates.so \ >diff --git www/pmwiki/Makefile www/pmwiki/Makefile >index 7a43e419b90a..6bed94964027 100644 >--- www/pmwiki/Makefile >+++ www/pmwiki/Makefile >@@ -25,6 +25,8 @@ PLIST_SUB= PMWIKIDIR=${PMWIKIDIR} WWWGRP=${WWWGRP} WWWOWN=${WWWOWN} > SUB_LIST+= PMWIKIDIR=${PMWIKIDIR} > SUB_FILES= pkg-message > >+OPTIONS_DEFINE= DOCS >+ > pre-fetch: > .if !defined(PMWIKIDIR) > @${ECHO_MSG} "" >diff --git www/polipo/Makefile www/polipo/Makefile >index 84d13be51081..952596884b53 100644 >--- www/polipo/Makefile >+++ www/polipo/Makefile >@@ -18,6 +18,8 @@ USE_RC_SUBR= polipo > > INFO= polipo > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > DOCSDIR= ${DATADIR}/www/doc >@@ -27,7 +29,7 @@ SUB_FILES= pkg-message pkg-install pkg-deinstall 400.polipo > SUB_LIST+= USER=${PUSER} GROUP=${PGRP} DESTDIR=${DESTDIR} PCONFIGDIR=${PCONFIGDIR} \ > PCACHEDIR=${PCACHEDIR} PPIDDIR=${PPIDDIR} PPIDFILE=${PPIDFILE} \ > PLOGFILE=${PLOGFILE} >-PLIST_SUB= PCACHEDIR=${PCACHEDIR} >+PLIST_SUB+= PCACHEDIR=${PCACHEDIR} > > # polipo installation options, propagated to install scripts > PUSER?= polipo >diff --git www/privatebin/Makefile www/privatebin/Makefile >index 35a73e73004b..e33a3b95e0f8 100644 >--- www/privatebin/Makefile >+++ www/privatebin/Makefile >@@ -19,6 +19,8 @@ USE_PHP= gd hash json wddx zlib > USE_GITHUB= yes > GH_PROJECT= PrivateBin > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's:%%DATADBDIR%%:/var/db/${PORTNAME}:' \ > ${WRKSRC}/index.php >diff --git www/py-pyweblib/Makefile www/py-pyweblib/Makefile >index 1d5bf9420d57..ed297c10a0e0 100644 >--- www/py-pyweblib/Makefile >+++ www/py-pyweblib/Makefile >@@ -20,7 +20,7 @@ PORTDOCS= pyweblib.forms.html pyweblib.helper.html \ > pyweblib.session.html pyweblib.sslenv.html > EXAMPLES= *.py > >-OPTIONS_DEFINE= DOCS >+OPTIONS_DEFINE= DOCS EXAMPLES > > PORTEXAMPLES= * > >diff --git www/pycarddav/Makefile www/pycarddav/Makefile >index e911b616e97f..79cf4e568379 100644 >--- www/pycarddav/Makefile >+++ www/pycarddav/Makefile >@@ -32,6 +32,8 @@ PORTEXAMPLES= pycard.conf.sample > > SUB_FILES= pkg-message > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} > ${INSTALL_DATA} ${WRKSRC}/pycard.conf.sample ${STAGEDIR}${EXAMPLESDIR}/pycard.conf.sample >diff --git www/qdecoder/Makefile www/qdecoder/Makefile >index 7aef602c1226..344ab42fa155 100644 >--- www/qdecoder/Makefile >+++ www/qdecoder/Makefile >@@ -20,7 +20,7 @@ PORTEXAMPLES= * > PLIST_FILES= include/qdecoder.h lib/libqdecoder.a \ > lib/libqdecoder.so lib/libqdecoder.so.12 > >-OPTIONS_DEFINE= DEBUG >+OPTIONS_DEFINE= DEBUG EXAMPLES > DEBUG_CONFIGURE_ENABLE= debug > > post-patch: >diff --git www/roundup/Makefile www/roundup/Makefile >index 59d6fcfd0c96..cb5d8dc4e661 100644 >--- www/roundup/Makefile >+++ www/roundup/Makefile >@@ -17,7 +17,7 @@ CPE_VENDOR= roundup-tracker > USE_PYTHON= distutils > NO_ARCH= yes > >-OPTIONS_DEFINE= SQLITE PGSQL MYSQL NLS >+OPTIONS_DEFINE= DOCS SQLITE PGSQL MYSQL NLS > OPTIONS_DEFAULT=SQLITE > OPTIONS_SUB= yes > >diff --git www/spdylay/Makefile www/spdylay/Makefile >index fc0db34b5f55..7247101dae86 100644 >--- www/spdylay/Makefile >+++ www/spdylay/Makefile >@@ -34,6 +34,8 @@ USES= compiler:c++11-lang gnome libtool pathfix pkgconfig ssl tar:xz > > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${INSTALL_SCRIPT} ${WRKSRC}/examples/spdycli ${STAGEDIR}${PREFIX}/bin/ > ${INSTALL_DATA} ${WRKSRC}/shrpx.conf.sample ${STAGEDIR}${PREFIX}/etc/ >diff --git www/spreadlogd/Makefile www/spreadlogd/Makefile >index 13f8f3e31c9e..3cc8d7f711f9 100644 >--- www/spreadlogd/Makefile >+++ www/spreadlogd/Makefile >@@ -21,6 +21,8 @@ PLIST_FILES= sbin/spreadlogd etc/spreadlogd.conf.sample > > PORTDOCS= README > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/spreadlogd.c > >diff --git www/squidanalyzer/Makefile www/squidanalyzer/Makefile >index ca9ffde924b9..a93c0d501259 100644 >--- www/squidanalyzer/Makefile >+++ www/squidanalyzer/Makefile >@@ -33,6 +33,8 @@ SUB_FILES= pkg-message > CONF_FILES= excluded included network-aliases \ > squidanalyzer.conf user-aliases > >+OPTIONS_DEFINE= DOCS >+ > post-install: > .for file in ${CONF_FILES} > @${MV} ${STAGEDIR}${ETCDIR}/${file} \ >diff --git www/trac-tweakui/Makefile www/trac-tweakui/Makefile >index e1bb78c851ea..79eea59f0374 100644 >--- www/trac-tweakui/Makefile >+++ www/trac-tweakui/Makefile >@@ -27,6 +27,8 @@ SUB_FILES= pkg-message > > WRKSRC= ${WRKDIR}/trac${PORTNAME}plugin/0.11 > >+OPTIONS_DEFINE= EXAMPLES >+ > post-install: > cd ${WRKSRC}/tractweakui/htdocs && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} > >diff --git www/ufdbguard/Makefile www/ufdbguard/Makefile >index f4e033d76cae..556f2377217a 100644 >--- www/ufdbguard/Makefile >+++ www/ufdbguard/Makefile >@@ -57,7 +57,7 @@ CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE} \ > > MAKE_JOBS_UNSAFE= yes > >-OPTIONS_DEFINE= UNIXSOCKETS >+OPTIONS_DEFINE= UNIXSOCKETS EXAMPLES > > UNIXSOCKETS_CONFIGURE_WITH= unix-sockets > >diff --git www/varnish-libvmod-awsrest/Makefile www/varnish-libvmod-awsrest/Makefile >index a8e9ecbf4eac..4f80790623b6 100644 >--- www/varnish-libvmod-awsrest/Makefile >+++ www/varnish-libvmod-awsrest/Makefile >@@ -24,4 +24,6 @@ INSTALL_TARGET= install-strip > USE_GITHUB= yes > GH_ACCOUNT= xcir > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/varnish-libvmod-digest/Makefile www/varnish-libvmod-digest/Makefile >index e8d3799317b7..c50bac7b3bee 100644 >--- www/varnish-libvmod-digest/Makefile >+++ www/varnish-libvmod-digest/Makefile >@@ -23,4 +23,6 @@ INSTALL_TARGET= install-strip > USE_GITHUB= yes > GH_ACCOUNT= varnish > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/varnish-libvmod-maxminddb/Makefile www/varnish-libvmod-maxminddb/Makefile >index 5a9e260dd1e6..b56704c685d0 100644 >--- www/varnish-libvmod-maxminddb/Makefile >+++ www/varnish-libvmod-maxminddb/Makefile >@@ -26,4 +26,6 @@ GH_TAGNAME= 4ae6a7f > > MAKE_JOBS_UNSAFE= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git www/varnish4/Makefile www/varnish4/Makefile >index b425a0ffecec..0d6e6d833032 100644 >--- www/varnish4/Makefile >+++ www/varnish4/Makefile >@@ -44,6 +44,8 @@ BAD_TESTS+= r00832 > EXTRA_PATCHES+= ${FILESDIR}/no-inet6.patch > .endif > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > .if defined(BAD_TESTS) > ${RM} ${BAD_TESTS:C|.+|${WRKSRC}/bin/varnishtest/tests/\0.vtc|} >diff --git www/varnish5/Makefile www/varnish5/Makefile >index 595c1d058b96..d1f912fc5f20 100644 >--- www/varnish5/Makefile >+++ www/varnish5/Makefile >@@ -43,6 +43,8 @@ BAD_TESTS+= r00832 > EXTRA_PATCHES+= ${FILESDIR}/no-inet6.patch > .endif > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > .if defined(BAD_TESTS) > ${RM} ${BAD_TESTS:C|.+|${WRKSRC}/bin/varnishtest/tests/\0.vtc|} >diff --git www/varnish6/Makefile www/varnish6/Makefile >index 182196207294..8898c63d13ba 100644 >--- www/varnish6/Makefile >+++ www/varnish6/Makefile >@@ -43,8 +43,10 @@ BAD_TESTS+= r00832 > EXTRA_PATCHES+= ${FILESDIR}/no-inet6.patch > .endif > >-post-patch: >+OPTIONS_DEFINE= DOCS >+ > .if defined(BAD_TESTS) >+post-patch: > ${RM} ${BAD_TESTS:C|.+|${WRKSRC}/bin/varnishtest/tests/\0.vtc|} > .endif > >diff --git www/volta/Makefile www/volta/Makefile >index 72867a1b1564..b7a0633dda4c 100644 >--- www/volta/Makefile >+++ www/volta/Makefile >@@ -25,6 +25,8 @@ PLIST_FILES= bin/volta > PORTDOCS= README INSTALL LICENSE ChangeLog > SUB_FILES= pkg-message > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} >diff --git www/webinject/Makefile www/webinject/Makefile >index 56bc38f4c46e..e7988b1c8c26 100644 >--- www/webinject/Makefile >+++ www/webinject/Makefile >@@ -32,6 +32,8 @@ PLIST_FILES= bin/webinject.pl \ > > PORTDOCS= LICENSE README > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${DATADIR} > @cd ${WRKSRC} && ${INSTALL_DATA} *.xml ${STAGEDIR}${DATADIR} >diff --git www/websh/Makefile www/websh/Makefile >index 8f9852a19b1b..f5d2a4460533 100644 >--- www/websh/Makefile >+++ www/websh/Makefile >@@ -29,6 +29,8 @@ PORTEXAMPLES= * > > CONFIGURE_ARGS+=--with-httpdinclude=`apxs -q includedir` > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > CPPFLAGS+= -I ${LOCALBASE}/include/apr-1 > .if !defined(NO_WERROR) && ${CC} == "cc" || ${CC:T:Mgcc*} != "" > CPPFLAGS+= -Wall -Werror >diff --git www/www6to4/Makefile www/www6to4/Makefile >index 09e3a3775fd2..efeb24c4cc2e 100644 >--- www/www6to4/Makefile >+++ www/www6to4/Makefile >@@ -20,6 +20,8 @@ PORTDOCS= README > > ALL_TARGET= www6to4 > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's,/etc,${ETCDIR},' \ > ${WRKSRC}/www6to4.c ${WRKSRC}/www6to4.conf >diff --git www/xombrero/Makefile www/xombrero/Makefile >index 03fa2d0f49b0..8eb082cd2af4 100644 >--- www/xombrero/Makefile >+++ www/xombrero/Makefile >@@ -36,6 +36,8 @@ GTK3_MAKE_ENV= GTK_VERSION="gtk3" > SUB_FILES= xombrero > PORTEXAMPLES= * > >+OPTIONS_DEFINE= EXAMPLES >+ > post-patch: > @cd ${WRKSRC}; ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ > -e 's|# ssl_ca_file|ssl_ca_file|' \ >diff --git www/xshttpd-devel/Makefile www/xshttpd-devel/Makefile >index 4c78c6aea709..5cc1b6861883 100644 >--- www/xshttpd-devel/Makefile >+++ www/xshttpd-devel/Makefile >@@ -22,7 +22,7 @@ USE_RC_SUBR= xshttpd > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --enable-hier=bsd --with-userid=${WWWOWN}:${WWWGRP} > >-OPTIONS_DEFINE= BDB CURL LDAP M4 NETPBM PERL >+OPTIONS_DEFINE= BDB CURL LDAP M4 NETPBM PERL DOCS > OPTIONS_DEFAULT= BDB CURL M4 NETPBM > OPTIONS_SUB= yes > BDB_USES= bdb:5+ >diff --git www/xshttpd/Makefile www/xshttpd/Makefile >index 1a68b3fb844d..a35b925cca91 100644 >--- www/xshttpd/Makefile >+++ www/xshttpd/Makefile >@@ -24,7 +24,7 @@ GNU_CONFIGURE= yes > WWWDIR= ${PREFIX}/www/${PORTNAME} > CONFIGURE_ARGS+=--with-rootdir=${WWWDIR} > >-OPTIONS_DEFINE= SSL PCRE LDAP CURL M4_CONFIG PERSISTENT_PERL >+OPTIONS_DEFINE= SSL PCRE LDAP CURL M4_CONFIG PERSISTENT_PERL DOCS > OPTIONS_DEFAULT=SSL PCRE > SSL_USES= ssl > SSL_CONFIGURE_WITH= ssl >diff --git x11-drivers/xf86-video-qxl/Makefile x11-drivers/xf86-video-qxl/Makefile >index a74ee0d6296a..48967cfed48f 100644 >--- x11-drivers/xf86-video-qxl/Makefile >+++ x11-drivers/xf86-video-qxl/Makefile >@@ -24,6 +24,8 @@ CONFIGURE_ARGS+=--enable-xspice > python_OLD_CMD= "/usr/bin/python" > SHEBANG_FILES= scripts/Xspice > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${PREFIX}/etc/X11/xorg.conf.d > ${INSTALL_DATA} ${WRKSRC}/examples/spiceqxl.xorg.conf.example \ >diff --git x11-fm/mucommander/Makefile x11-fm/mucommander/Makefile >index 45e05d03c3c9..4a310b3a23d5 100644 >--- x11-fm/mucommander/Makefile >+++ x11-fm/mucommander/Makefile >@@ -22,6 +22,8 @@ PORTDOCS= readme.txt > > WRKSRC= ${WRKDIR}/muCommander-${PORTVERSION:S/./_/g} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > @${MKDIR} ${STAGEDIR}${DATADIR} > ${INSTALL_DATA} ${WRKSRC}/mucommander.jar ${STAGEDIR}${DATADIR} >diff --git x11-fm/rodent/Makefile x11-fm/rodent/Makefile >index 08226b4bc469..27fd319eefc5 100644 >--- x11-fm/rodent/Makefile >+++ x11-fm/rodent/Makefile >@@ -30,7 +30,7 @@ SHEBANG_FILES= configure > > PORTDOCS= * > >-OPTIONS_DEFINE= NLS >+OPTIONS_DEFINE= NLS DOCS > OPTIONS_SUB= yes > > NLS_USES= gettext >diff --git x11-fonts/averiagwf/Makefile x11-fonts/averiagwf/Makefile >index dd1e9e4be955..3583a3594ff3 100644 >--- x11-fonts/averiagwf/Makefile >+++ x11-fonts/averiagwf/Makefile >@@ -19,6 +19,8 @@ NO_WRKSUBDIR= yes > > PORTDOCS= FONTLOG.txt > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${FONTSDIR} > cd ${WRKSRC} && ${INSTALL_DATA} *.ttf ${STAGEDIR}${FONTSDIR} >diff --git x11-fonts/linux-c6-fontconfig/Makefile x11-fonts/linux-c6-fontconfig/Makefile >index 4190670ac93c..a8aa23301b0b 100644 >--- x11-fonts/linux-c6-fontconfig/Makefile >+++ x11-fonts/linux-c6-fontconfig/Makefile >@@ -16,6 +16,8 @@ USE_LDCONFIG= yes > USE_LINUX= expat > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/share/fonts ${WRKSRC}/var > >diff --git x11-fonts/linux-c7-fontconfig/Makefile x11-fonts/linux-c7-fontconfig/Makefile >index 8fef85c015cd..73fbd5fcf28d 100644 >--- x11-fonts/linux-c7-fontconfig/Makefile >+++ x11-fonts/linux-c7-fontconfig/Makefile >@@ -18,6 +18,8 @@ USE_LDCONFIG= yes > USE_LINUX= expat > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/share/fonts \ > ${WRKSRC}/usr/share/fontconfig ${WRKSRC}/var >diff --git x11-fonts/mkbold-mkitalic/Makefile x11-fonts/mkbold-mkitalic/Makefile >index 097947cc6ab9..9ab14a24f7f2 100644 >--- x11-fonts/mkbold-mkitalic/Makefile >+++ x11-fonts/mkbold-mkitalic/Makefile >@@ -16,6 +16,8 @@ PLIST_FILES= bin/mkbold bin/mkitalic bin/mkbolditalic > PORTDOCS= ALGORITHM ALGORITHM.eucJP LICENSE README README.eucJP > USES= tar:bzip2 > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${MKDIR} ${STAGEDIR}${DOCSDIR} > (cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) >diff --git x11-fonts/webfonts/Makefile x11-fonts/webfonts/Makefile >index f442098952ad..0f018271e6f4 100644 >--- x11-fonts/webfonts/Makefile >+++ x11-fonts/webfonts/Makefile >@@ -32,7 +32,7 @@ EXTRACT_CMD= ${LOCALBASE}/bin/cabextract > EXTRACT_BEFORE_ARGS= -qLF '[a-uw-z]*.ttf' -d ${WRKSRC} > EXTRACT_AFTER_ARGS= > >-OPTIONS_DEFINE= EXTRAFONTS CLEARTYPE NEWVERDANA >+OPTIONS_DEFINE= EXTRAFONTS CLEARTYPE NEWVERDANA DOCS > OPTIONS_SUB= yes > > EXTRAFONTS_DESC= Fonts licensed under MS Windows license >diff --git x11-themes/sddm-freebsd-black-theme/Makefile x11-themes/sddm-freebsd-black-theme/Makefile >index 4f3db50a5eea..e032d48a2cb5 100644 >--- x11-themes/sddm-freebsd-black-theme/Makefile >+++ x11-themes/sddm-freebsd-black-theme/Makefile >@@ -25,6 +25,8 @@ PLIST_SUB= THEMEDIR=${THEMEDIR_REL} > SUB_FILES= pkg-message > PORTDOCS= README.md AUTHORS COPYING TRADEMARKS > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${THEMEDIR} > (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${THEMEDIR} \ >diff --git x11-themes/slim-freebsd-black-theme/Makefile x11-themes/slim-freebsd-black-theme/Makefile >index 29c1a1c26699..1f840145e490 100644 >--- x11-themes/slim-freebsd-black-theme/Makefile >+++ x11-themes/slim-freebsd-black-theme/Makefile >@@ -24,6 +24,8 @@ PLIST_SUB= THEMEDIR=${THEMEDIR_REL} > SUB_FILES= pkg-message > PORTDOCS= README.md AUTHORS COPYING TRADEMARKS > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${THEMEDIR} > (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${THEMEDIR} \ >diff --git x11-toolkits/gtksourceview3/Makefile x11-toolkits/gtksourceview3/Makefile >index b605c4d84127..2c1cf977501e 100644 >--- x11-toolkits/gtksourceview3/Makefile >+++ x11-toolkits/gtksourceview3/Makefile >@@ -37,6 +37,8 @@ CPPFLAGS+= -I${LOCALBASE}/include > LIBS+= -L${LOCALBASE}/lib > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} -e 's|tests testsuite||g' \ > ${WRKSRC}/Makefile.in >diff --git x11-toolkits/libxaw3dxft/Makefile x11-toolkits/libxaw3dxft/Makefile >index 639bafeb08c9..3237d880734e 100644 >--- x11-toolkits/libxaw3dxft/Makefile >+++ x11-toolkits/libxaw3dxft/Makefile >@@ -26,6 +26,8 @@ CPPFLAGS+= -I${LOCALBASE}/include/freetype2 > DOCSDIR= ${LOCALBASE}/share/doc/libXaw3dXft > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${REINPLACE_CMD} '/^typedef.*Pixel;/d' ${WRKSRC}/src/Xaw3dXft.c > >diff --git x11-toolkits/linux-c6-openmotif/Makefile x11-toolkits/linux-c6-openmotif/Makefile >index 7f81303e4683..125b2014e772 100644 >--- x11-toolkits/linux-c6-openmotif/Makefile >+++ x11-toolkits/linux-c6-openmotif/Makefile >@@ -16,6 +16,8 @@ USE_LDCONFIG= yes > USE_LINUX= xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/bin ${WRKSRC}/usr/include \ > ${WRKSRC}/usr/share/X11 ${WRKSRC}/usr/share/man >diff --git x11-toolkits/linux-c6-pango/Makefile x11-toolkits/linux-c6-pango/Makefile >index 342b9357df4a..f458782703eb 100644 >--- x11-toolkits/linux-c6-pango/Makefile >+++ x11-toolkits/linux-c6-pango/Makefile >@@ -16,4 +16,6 @@ USE_LDCONFIG= yes > USE_LINUX= cairo fontconfig libthai xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11-toolkits/linux-c6-tk85/Makefile x11-toolkits/linux-c6-tk85/Makefile >index e80791dde202..1501d922a844 100644 >--- x11-toolkits/linux-c6-tk85/Makefile >+++ x11-toolkits/linux-c6-tk85/Makefile >@@ -19,4 +19,6 @@ USE_LINUX= xorglibs > USE_LINUX_RPM= yes > USE_LINUX_RPM_BAD_PERMS= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11-toolkits/linux-c7-openmotif/Makefile x11-toolkits/linux-c7-openmotif/Makefile >index d41d5ed21b56..b9ed1f5ea156 100644 >--- x11-toolkits/linux-c7-openmotif/Makefile >+++ x11-toolkits/linux-c7-openmotif/Makefile >@@ -18,6 +18,8 @@ USE_LDCONFIG= yes > USE_LINUX= xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/bin ${WRKSRC}/usr/include \ > ${WRKSRC}/usr/share/X11 ${WRKSRC}/usr/share/man >diff --git x11-toolkits/linux-c7-pango/Makefile x11-toolkits/linux-c7-pango/Makefile >index 343ad1b92b09..dfaf80dcd3ac 100644 >--- x11-toolkits/linux-c7-pango/Makefile >+++ x11-toolkits/linux-c7-pango/Makefile >@@ -17,4 +17,6 @@ USE_LDCONFIG= yes > USE_LINUX= cairo fontconfig harfbuzz libthai xorglibs > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11-toolkits/linux-c7-tk85/Makefile x11-toolkits/linux-c7-tk85/Makefile >index 9f206512780d..972a5ecdfbe4 100644 >--- x11-toolkits/linux-c7-tk85/Makefile >+++ x11-toolkits/linux-c7-tk85/Makefile >@@ -21,4 +21,6 @@ USE_LINUX= xorglibs > USE_LINUX_RPM= yes > USE_LINUX_RPM_BAD_PERMS= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11-toolkits/osm-gps-map/Makefile x11-toolkits/osm-gps-map/Makefile >index 88bea77b8619..6a3458ee9973 100644 >--- x11-toolkits/osm-gps-map/Makefile >+++ x11-toolkits/osm-gps-map/Makefile >@@ -21,4 +21,6 @@ GNU_CONFIGURE= yes > MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig" > INSTALL_TARGET= install-strip > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11-toolkits/py-fltk/Makefile x11-toolkits/py-fltk/Makefile >index 99f551c9558c..3151ca46e934 100644 >--- x11-toolkits/py-fltk/Makefile >+++ x11-toolkits/py-fltk/Makefile >@@ -30,6 +30,8 @@ PORTDOCS= * > PORTEXAMPLES= * > WRKSRC= ${WRKDIR}/pyFltk-${PORTVERSION} > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > post-patch: > @${REINPLACE_CMD} -e "s|/usr/X11R6|${LOCALBASE}|g;s|package_data.*},||g;s|sunos5|dragonfly4', 'freebsd8', 'freebsd9', 'freebsd10', 'freebsd11', 'freebsd12|g" ${WRKSRC}/setup.py > >diff --git x11-wm/blackbox/Makefile x11-wm/blackbox/Makefile >index 34e97c3a24ff..1151b4c4c404 100644 >--- x11-wm/blackbox/Makefile >+++ x11-wm/blackbox/Makefile >@@ -22,7 +22,7 @@ LDFLAGS+= ${ICONV_LIB} > PORTDOCS= README.bbtools README.bsetbg > MANPAGES= bsetbg.1 bsetroot.1 > >-OPTIONS_DEFINE= TOOLS_ONLY >+OPTIONS_DEFINE= TOOLS_ONLY DOCS > > TOOLS_ONLY_DESC= Do not install window manager, only tools > >diff --git x11-wm/ctwm/Makefile x11-wm/ctwm/Makefile >index b87622651a64..cd541e7ca6e1 100644 >--- x11-wm/ctwm/Makefile >+++ x11-wm/ctwm/Makefile >@@ -16,4 +16,6 @@ LICENSE= MIT > USES= cmake:outsource jpeg tar:xz > USE_XORG= x11 xext xt ice sm xpm xmu > >+OPTIONS_DEFINE= DOCS EXAMPLES >+ > .include <bsd.port.mk> >diff --git x11-wm/larswm/Makefile x11-wm/larswm/Makefile >index c48db9a77fac..b3109c7f5fae 100644 >--- x11-wm/larswm/Makefile >+++ x11-wm/larswm/Makefile >@@ -19,6 +19,8 @@ PLIST_FILES= bin/larsclock bin/larsmenu bin/larsremote bin/larswm \ > man/man1/larsclock.1.gz man/man1/larsmenu.1.gz \ > man/man1/larsremote.1.gz man/man1/larswm.1.gz > >+OPTIONS_DEFINE= DOCS >+ > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > .for file in ${PORTDOCS} >diff --git x11-wm/xfce4-panel-profiles/Makefile x11-wm/xfce4-panel-profiles/Makefile >index 4bdea603234e..3a583cb8dfc2 100644 >--- x11-wm/xfce4-panel-profiles/Makefile >+++ x11-wm/xfce4-panel-profiles/Makefile >@@ -19,6 +19,8 @@ HAS_CONFIGURE= yes > SHEBANG_FILES= xfce4-panel-profiles/xfce4-panel-profiles.py \ > xfce4-panel-profiles/panelconfig.py > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${RLN} ${STAGEDIR}${PREFIX}/share/locale ${STAGEDIR}${PREFIX}/share/${PORTNAME}/locale > >diff --git x11/alttab/Makefile x11/alttab/Makefile >index ca2b01324d35..8cce83b28df8 100644 >--- x11/alttab/Makefile >+++ x11/alttab/Makefile >@@ -28,4 +28,6 @@ PORTDOCS= README \ > alttab.ad \ > wm-setup.md > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11/libXcm/Makefile x11/libXcm/Makefile >index 45f8d0e3010f..c2f94a38ef30 100644 >--- x11/libXcm/Makefile >+++ x11/libXcm/Makefile >@@ -19,4 +19,6 @@ USE_XORG= x11 xfixes xmu xt > INSTALL_TARGET= install-strip > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11/lightdm-gtk-greeter/Makefile x11/lightdm-gtk-greeter/Makefile >index b0cda2286099..c4277efe9635 100644 >--- x11/lightdm-gtk-greeter/Makefile >+++ x11/lightdm-gtk-greeter/Makefile >@@ -21,6 +21,8 @@ USE_GNOME= cairo gdkpixbuf2 gtk30 intltool > USE_XFCE= libexo > USE_XORG= x11 > >+OPTIONS_DEFINE= DOCS >+ > post-install: > (cd ${STAGEDIR}${PREFIX}/etc/lightdm && ${MV} lightdm-gtk-greeter.conf \ > lightdm-gtk-greeter.conf.sample) >diff --git x11/linux-c6-xorg-libs/Makefile x11/linux-c6-xorg-libs/Makefile >index 28d6842d035c..79023a09d704 100644 >--- x11/linux-c6-xorg-libs/Makefile >+++ x11/linux-c6-xorg-libs/Makefile >@@ -81,6 +81,8 @@ USE_LDCONFIG= yes > USE_LINUX= fontconfig > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/usr/share/icons > >diff --git x11/linux-c7-xorg-libs/Makefile x11/linux-c7-xorg-libs/Makefile >index 68308215b53d..6b92d473c03b 100644 >--- x11/linux-c7-xorg-libs/Makefile >+++ x11/linux-c7-xorg-libs/Makefile >@@ -85,6 +85,8 @@ USE_LDCONFIG= yes > USE_LINUX= fontconfig > USE_LINUX_RPM= yes > >+OPTIONS_DEFINE= DOCS >+ > post-patch: > @${RM} -r ${WRKSRC}/usr/share/icons > >diff --git x11/mate-desktop/Makefile x11/mate-desktop/Makefile >index b5ff54408c1c..d973e93f478b 100644 >--- x11/mate-desktop/Makefile >+++ x11/mate-desktop/Makefile >@@ -49,4 +49,6 @@ GLIB_SCHEMAS= org.mate.accessibility-keyboard.gschema.xml \ > org.mate.typing-break.gschema.xml \ > org.mate.debug.gschema.xml > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11/mate-panel/Makefile x11/mate-panel/Makefile >index 19e834262409..929ee89ba292 100644 >--- x11/mate-panel/Makefile >+++ x11/mate-panel/Makefile >@@ -44,4 +44,6 @@ GLIB_SCHEMAS= org.mate.panel.applet.clock.gschema.xml \ > org.mate.panel.object.gschema.xml \ > org.mate.panel.toplevel.gschema.xml > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11/menulibre/Makefile x11/menulibre/Makefile >index e15736d5da03..b25f80f4c49c 100644 >--- x11/menulibre/Makefile >+++ x11/menulibre/Makefile >@@ -22,6 +22,8 @@ USE_GNOME= intltool pygobject3 > USE_PYTHON= distutils > INSTALLS_ICONS= yes > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.pre.mk> > > PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS:N--single-version-externally-managed} >diff --git x11/mrxvt-devel/Makefile x11/mrxvt-devel/Makefile >index 7aa877434578..8f9baa94db3f 100644 >--- x11/mrxvt-devel/Makefile >+++ x11/mrxvt-devel/Makefile >@@ -28,7 +28,7 @@ DESKTOP_ENTRIES= "mrxvt" "mrxvt terminal emulator" \ > false > > OPTIONS_DEFINE= XFT BACKGROUND JPEG PNG TRANSPARENCY SWAPSCREEN JAPANESE 24BITS \ >- MENUBAR TEXTSHADOW FRILLS DOCS >+ MENUBAR TEXTSHADOW FRILLS DOCS EXAMPLES > OPTIONS_DEFAULT= BACKGROUND JPEG PNG TRANSPARENCY SWAPSCREEN 24BITS \ > MENUBAR XFT JAPANESE FRILLS TEXTSHADOW > BACKGROUND_DESC= Background images >diff --git x11/rxvt-unicode/Makefile x11/rxvt-unicode/Makefile >index 6ffa49634e54..12900eccbd64 100644 >--- x11/rxvt-unicode/Makefile >+++ x11/rxvt-unicode/Makefile >@@ -73,10 +73,10 @@ PATCH_DEPENDS+= p5-Encode-HanExtra>=0:chinese/p5-Encode-HanExtra \ > CONFIGURE_ARGS+= --disable-perl > USES+= perl5 > USE_PERL5= build >-PLIST_SUB= PERL="@comment " >+PLIST_SUB+= PERL="@comment " > .else > USES+= perl5 >-PLIST_SUB= PERL="" >+PLIST_SUB+= PERL="" > .endif > > # disable XIM (X Input Method) protocol support >diff --git x11/trayer/Makefile x11/trayer/Makefile >index 2071e93cd579..7abb3e8b3e81 100644 >--- x11/trayer/Makefile >+++ x11/trayer/Makefile >@@ -26,6 +26,8 @@ PORTDOCS= README CREDITS CHANGELOG > > PLIST_FILES= bin/trayer man/man1/trayer.1.gz > >+OPTIONS_DEFINE= DOCS >+ > post-install: > ${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 > ${MKDIR} ${STAGEDIR}${DOCSDIR} >diff --git x11/urxvt-perls/Makefile x11/urxvt-perls/Makefile >index faf57edb1bf1..96550b12eae4 100644 >--- x11/urxvt-perls/Makefile >+++ x11/urxvt-perls/Makefile >@@ -21,6 +21,8 @@ INSTDIR_REL= lib/urxvt/perl > SCRIPTS= clipboard keyboard-select url-select > PLIST_FILES+= ${SCRIPTS:C/^/${INSTDIR_REL}\//} > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${MKDIR} ${STAGEDIR}${PREFIX}/${INSTDIR_REL} > .for s in ${SCRIPTS} >diff --git x11/wbarconf/Makefile x11/wbarconf/Makefile >index 6239ce087621..529474d96edd 100644 >--- x11/wbarconf/Makefile >+++ x11/wbarconf/Makefile >@@ -23,6 +23,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME} > PORTDOCS= README COPYING > INSTALLS_ICONS= yes > >+OPTIONS_DEFINE= DOCS >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin > ${MKDIR} ${STAGEDIR}${DATADIR} >diff --git x11/xcm/Makefile x11/xcm/Makefile >index 5d9c0cd17a12..f88ecd77c344 100644 >--- x11/xcm/Makefile >+++ x11/xcm/Makefile >@@ -30,4 +30,6 @@ PLIST_FILES= bin/xcm bin/xcmedid bin/xcmevents bin/xcmhextobin \ > man/man1/xcmevents.1.gz man/man1/xcmhextobin.1.gz > PORTDOCS= * > >+OPTIONS_DEFINE= DOCS >+ > .include <bsd.port.mk> >diff --git x11/xkbset/Makefile x11/xkbset/Makefile >index 4c220a5c1f2a..4cd33dcbcee7 100644 >--- x11/xkbset/Makefile >+++ x11/xkbset/Makefile >@@ -28,10 +28,10 @@ GUI_DESC= Install Tk GUI > > .if ${PORT_OPTIONS:MGUI} > RUN_DEPENDS+= p5-Tk>=0:x11-toolkits/p5-Tk >-PLIST_SUB= GUI="" >+PLIST_SUB+= GUI="" > MAKE_ARGS+= INSTALL_SCRIPT="${INSTALL_SCRIPT}" > .else >-PLIST_SUB= GUI="@comment " >+PLIST_SUB+= GUI="@comment " > MAKE_ARGS+= INSTALL_SCRIPT=: > .endif >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 230864
:
196502
|
196505
|
196599
|
196677
|
196741
|
196810
|
196814
|
196929