Index: Mk/bsd.options.mk =================================================================== --- Mk/bsd.options.mk +++ Mk/bsd.options.mk @@ -410,18 +410,19 @@ # 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 @@ _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?= Index: Mk/bsd.port.mk =================================================================== --- Mk/bsd.port.mk +++ Mk/bsd.port.mk @@ -4538,6 +4538,7 @@ @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 @@ ${SED} -ne 's,^${STAGEDIR},,p' >> ${TMPPLIST} .endif .endif +.endif .endfor .if !target(add-plist-data) Index: Mk/bsd.sanity.mk =================================================================== --- Mk/bsd.sanity.mk +++ Mk/bsd.sanity.mk @@ -156,6 +156,12 @@ 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 \ Index: accessibility/kmag/Makefile =================================================================== --- accessibility/kmag/Makefile +++ accessibility/kmag/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui printsupport widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: accessibility/kmousetool/Makefile =================================================================== --- accessibility/kmousetool/Makefile +++ accessibility/kmousetool/Makefile @@ -17,4 +17,6 @@ buildtools_build qmake_build USE_XORG= ice sm x11 xext xtst +OPTIONS_DEFINE= DOCS + .include Index: accessibility/kmouth/Makefile =================================================================== --- accessibility/kmouth/Makefile +++ accessibility/kmouth/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui network printsupport speech widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: archivers/ark/Makefile =================================================================== --- archivers/ark/Makefile +++ archivers/ark/Makefile @@ -20,7 +20,7 @@ USE_LDCONFIG= yes -OPTIONS_DEFINE= 7ZIP RAR ZIP +OPTIONS_DEFINE= 7ZIP RAR ZIP DOCS OPTIONS_SUB= YES 7ZIP_DESC= Support for 7-Zip archives Index: archivers/brotli/Makefile =================================================================== --- archivers/brotli/Makefile +++ archivers/brotli/Makefile @@ -24,6 +24,8 @@ INSTALL_TARGET= install-strip PLIST_SUB= SHLIBVER=${PORTVERSION} +OPTIONS_DEFINE= DOCS + pre-configure: (cd ${WRKSRC} && ./bootstrap) Index: archivers/erlang-snappy/Makefile =================================================================== --- archivers/erlang-snappy/Makefile +++ archivers/erlang-snappy/Makefile @@ -18,4 +18,6 @@ GH_PROJECT= snappy-erlang-nif GH_TAGNAME= 0951a1b +OPTIONS_DEFINE= DOCS + .include Index: archivers/lzop/Makefile =================================================================== --- archivers/lzop/Makefile +++ archivers/lzop/Makefile @@ -18,4 +18,6 @@ CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +OPTIONS_DEFINE= DOCS + .include Index: archivers/zip-ada/Makefile =================================================================== --- archivers/zip-ada/Makefile +++ archivers/zip-ada/Makefile @@ -45,6 +45,8 @@ test_llhc \ test_lz77 +OPTIONS_DEFINE= EXAMPLES + do-build: (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -P zipada.gpr) Index: astro/geographiclib/Makefile =================================================================== --- astro/geographiclib/Makefile +++ astro/geographiclib/Makefile @@ -26,7 +26,7 @@ -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 Index: astro/libkgeomap/Makefile =================================================================== --- astro/libkgeomap/Makefile +++ astro/libkgeomap/Makefile @@ -20,4 +20,6 @@ USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: astro/marble/Makefile =================================================================== --- astro/marble/Makefile +++ astro/marble/Makefile @@ -27,7 +27,7 @@ CMAKE_ARGS= -DMOBILE:BOOL=FALSE \ -DQT_IMPORTS_DIR:PATH=${QT_IMPORTDIR} -OPTIONS_DEFINE= GPS +OPTIONS_DEFINE= GPS DOCS OPTIONS_DEFAULT=GPS OPTIONS_SUB= yes Index: astro/opencpn/Makefile =================================================================== --- astro/opencpn/Makefile +++ astro/opencpn/Makefile @@ -34,6 +34,8 @@ 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 \ Index: audio/audiocd-kio/Makefile =================================================================== --- audio/audiocd-kio/Makefile +++ audio/audiocd-kio/Makefile @@ -27,7 +27,7 @@ USE_LDCONFIG= yes -OPTIONS_DEFINE= LAME +OPTIONS_DEFINE= LAME DOCS LAME_DESC= Install LAME MP3 audio encoder LAME_RUN_DEPENDS= lame:audio/lame Index: audio/chromaprint/Makefile =================================================================== --- audio/chromaprint/Makefile +++ audio/chromaprint/Makefile @@ -23,7 +23,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-v${PORTVERSION} -OPTIONS_DEFINE= DOXYGEN TEST +OPTIONS_DEFINE= DOCS DOXYGEN TEST DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen \ dot:graphics/graphviz Index: audio/juk/Makefile =================================================================== --- audio/juk/Makefile +++ audio/juk/Makefile @@ -19,4 +19,6 @@ USE_QT= core dbus gui network phonon4 svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: audio/kmix/Makefile =================================================================== --- audio/kmix/Makefile +++ audio/kmix/Makefile @@ -22,7 +22,7 @@ # we want the KF5 version of kmix CMAKE_ARGS= -DKMIX_KF5_BUILD:BOOL=TRUE -OPTIONS_DEFINE= PULSEAUDIO +OPTIONS_DEFINE= PULSEAUDIO DOCS # TODO: readd ALSA option # # ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib Index: audio/kwave/Makefile =================================================================== --- audio/kwave/Makefile +++ audio/kwave/Makefile @@ -34,6 +34,8 @@ PULSEAUDIO_CMAKE_BOOL= WITH_PULSEAUDIO PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio +OPTIONS_DEFINE= DOCS + .include . if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100000 && ${OSVERSION} < 1101505 Index: audio/libkcddb/Makefile =================================================================== --- audio/libkcddb/Makefile +++ audio/libkcddb/Makefile @@ -17,4 +17,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/libkcompactdisc/Makefile =================================================================== --- audio/libkcompactdisc/Makefile +++ audio/libkcompactdisc/Makefile @@ -14,7 +14,7 @@ buildtools_build qmake_build USE_LDCONFIG= yes -OPTIONS_DEFINE= ALSA +OPTIONS_DEFINE= ALSA DOCS ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib ALSA_CMAKE_BOOL_OFF= CMAKE_DISABLE_FIND_PACKAGE_ALSA Index: audio/libnjb/Makefile =================================================================== --- audio/libnjb/Makefile +++ audio/libnjb/Makefile @@ -23,8 +23,9 @@ 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 Index: audio/linux-c6-alsa-lib/Makefile =================================================================== --- audio/linux-c6-alsa-lib/Makefile +++ audio/linux-c6-alsa-lib/Makefile @@ -19,6 +19,8 @@ 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 Index: audio/linux-c6-alsa-plugins-oss/Makefile =================================================================== --- audio/linux-c6-alsa-plugins-oss/Makefile +++ audio/linux-c6-alsa-plugins-oss/Makefile @@ -22,4 +22,6 @@ USE_LINUX= alsalib USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-alsa-plugins-pulseaudio/Makefile =================================================================== --- audio/linux-c6-alsa-plugins-pulseaudio/Makefile +++ audio/linux-c6-alsa-plugins-pulseaudio/Makefile @@ -22,4 +22,6 @@ USE_LINUX= alsalib pulseaudio-libs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-flac/Makefile =================================================================== --- audio/linux-c6-flac/Makefile +++ audio/linux-c6-flac/Makefile @@ -16,4 +16,6 @@ USE_LINUX= libogg USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-libaudiofile/Makefile =================================================================== --- audio/linux-c6-libaudiofile/Makefile +++ audio/linux-c6-libaudiofile/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-libogg/Makefile =================================================================== --- audio/linux-c6-libogg/Makefile +++ audio/linux-c6-libogg/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-libsndfile/Makefile =================================================================== --- audio/linux-c6-libsndfile/Makefile +++ audio/linux-c6-libsndfile/Makefile @@ -16,4 +16,6 @@ USE_LINUX= flac libogg libvorbis USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-libvorbis/Makefile =================================================================== --- audio/linux-c6-libvorbis/Makefile +++ audio/linux-c6-libvorbis/Makefile @@ -16,4 +16,6 @@ USE_LINUX= libogg USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-mikmod/Makefile =================================================================== --- audio/linux-c6-mikmod/Makefile +++ audio/linux-c6-mikmod/Makefile @@ -16,4 +16,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-nas-libs/Makefile =================================================================== --- audio/linux-c6-nas-libs/Makefile +++ audio/linux-c6-nas-libs/Makefile @@ -17,6 +17,8 @@ USE_LINUX= xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + post-patch: @${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/bin ${WRKSRC}/usr/share/man Index: audio/linux-c6-openal-soft/Makefile =================================================================== --- audio/linux-c6-openal-soft/Makefile +++ audio/linux-c6-openal-soft/Makefile @@ -17,4 +17,6 @@ USE_LINUX= alsalib USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c6-sdl_mixer/Makefile =================================================================== --- audio/linux-c6-sdl_mixer/Makefile +++ audio/linux-c6-sdl_mixer/Makefile @@ -22,4 +22,6 @@ USE_LINUX= sdl12 USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-alsa-lib/Makefile =================================================================== --- audio/linux-c7-alsa-lib/Makefile +++ audio/linux-c7-alsa-lib/Makefile @@ -19,6 +19,8 @@ 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 Index: audio/linux-c7-alsa-plugins-oss/Makefile =================================================================== --- audio/linux-c7-alsa-plugins-oss/Makefile +++ audio/linux-c7-alsa-plugins-oss/Makefile @@ -23,4 +23,6 @@ USE_LINUX= alsalib USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-alsa-plugins-pulseaudio/Makefile =================================================================== --- audio/linux-c7-alsa-plugins-pulseaudio/Makefile +++ audio/linux-c7-alsa-plugins-pulseaudio/Makefile @@ -23,4 +23,6 @@ USE_LINUX= alsalib pulseaudio-libs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-audiofile/Makefile =================================================================== --- audio/linux-c7-audiofile/Makefile +++ audio/linux-c7-audiofile/Makefile @@ -17,4 +17,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-flac/Makefile =================================================================== --- audio/linux-c7-flac/Makefile +++ audio/linux-c7-flac/Makefile @@ -22,4 +22,6 @@ USE_LINUX= libogg USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-libogg/Makefile =================================================================== --- audio/linux-c7-libogg/Makefile +++ audio/linux-c7-libogg/Makefile @@ -17,4 +17,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-libsndfile/Makefile =================================================================== --- audio/linux-c7-libsndfile/Makefile +++ audio/linux-c7-libsndfile/Makefile @@ -18,4 +18,6 @@ USE_LINUX= flac libogg libvorbis USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-libvorbis/Makefile =================================================================== --- audio/linux-c7-libvorbis/Makefile +++ audio/linux-c7-libvorbis/Makefile @@ -18,4 +18,6 @@ USE_LINUX= libogg USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-openal-soft/Makefile =================================================================== --- audio/linux-c7-openal-soft/Makefile +++ audio/linux-c7-openal-soft/Makefile @@ -20,4 +20,6 @@ USE_LINUX= alsalib USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/linux-c7-sdl_mixer/Makefile =================================================================== --- audio/linux-c7-sdl_mixer/Makefile +++ audio/linux-c7-sdl_mixer/Makefile @@ -23,4 +23,6 @@ USE_LINUX= sdl12 USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/lv2/Makefile =================================================================== --- audio/lv2/Makefile +++ audio/lv2/Makefile @@ -24,13 +24,14 @@ 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 Index: audio/py-soundcloud/Makefile =================================================================== --- audio/py-soundcloud/Makefile +++ audio/py-soundcloud/Makefile @@ -21,6 +21,8 @@ PORTDOCS= README.rst DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.rst ${STAGEDIR}${DOCSDIR} Index: audio/rhythmbox/Makefile =================================================================== --- audio/rhythmbox/Makefile +++ audio/rhythmbox/Makefile @@ -50,7 +50,7 @@ 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 Index: audio/speex/Makefile =================================================================== --- audio/speex/Makefile +++ audio/speex/Makefile @@ -21,4 +21,6 @@ INSTALL_TARGET= install-strip USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: audio/speexdsp/Makefile =================================================================== --- audio/speexdsp/Makefile +++ audio/speexdsp/Makefile @@ -17,6 +17,8 @@ USES= libtool pathfix USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include .if ${ARCH} == "aarch64" Index: audio/yoshimi/Makefile =================================================================== --- audio/yoshimi/Makefile +++ audio/yoshimi/Makefile @@ -34,4 +34,6 @@ CMAKE_SOURCE_PATH= ${WRKSRC}/src INSTALLS_ICONS= yes +OPTIONS_DEFINE= DOCS + .include Index: benchmarks/iperf3/Makefile =================================================================== --- benchmarks/iperf3/Makefile +++ benchmarks/iperf3/Makefile @@ -22,6 +22,8 @@ # 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 Index: benchmarks/pathchirp/Makefile =================================================================== --- benchmarks/pathchirp/Makefile +++ benchmarks/pathchirp/Makefile @@ -17,6 +17,8 @@ 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 Index: benchmarks/ramspeed/Makefile =================================================================== --- benchmarks/ramspeed/Makefile +++ benchmarks/ramspeed/Makefile @@ -18,6 +18,8 @@ PLIST_FILES= bin/ramspeed PORTDOCS= HISTORY README +OPTIONS_DEFINE= DOCS + do-build: cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${SH} build.sh Index: benchmarks/thrulay/Makefile =================================================================== --- benchmarks/thrulay/Makefile +++ benchmarks/thrulay/Makefile @@ -20,6 +20,8 @@ PORTDOCS= ChangeLog README thrulay-protocol.txt thrulay-index.html +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -e '922s,datarootdir,prefix,g' ${WRKSRC}/configure Index: biology/bowtie/Makefile =================================================================== --- biology/bowtie/Makefile +++ biology/bowtie/Makefile @@ -24,6 +24,8 @@ USE_GITHUB= yes GH_ACCOUNT= BenLangmead +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${DATADIR}/scripts ${INSTALL_SCRIPT} \ Index: biology/phrap/Makefile =================================================================== --- biology/phrap/Makefile +++ biology/phrap/Makefile @@ -26,6 +26,8 @@ PORTDATA= BLOSUM50 BLOSUM62 PAM250 mat50 mat70 mb_matrix penalty2 vector.seq PORTDOCS= general.doc phrap.doc swat.doc +OPTIONS_DEFINE= DOCS + .include .for f in ${DISTFILES} Index: biology/phred/Makefile =================================================================== --- biology/phred/Makefile +++ biology/phred/Makefile @@ -29,6 +29,8 @@ PORTDOCS= NEWS PHRED.DOC DAEV.DOC +OPTIONS_DEFINE= DOCS + .include .for f in ${DISTFILES} Index: cad/astk-serveur/Makefile =================================================================== --- cad/astk-serveur/Makefile +++ cad/astk-serveur/Makefile @@ -62,7 +62,7 @@ .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= 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 Index: cad/calculix-ccx/Makefile =================================================================== --- cad/calculix-ccx/Makefile +++ cad/calculix-ccx/Makefile @@ -34,6 +34,7 @@ CCX_VER= ccx_${PORTVERSION} WRKSRC= ${WRKDIR}/CalculiX/${CCX_VER}/src +DOCSDIR= ${PREFIX}/share/doc/CalculiX OPTIONS_DEFINE= DOCS EXAMPLES @@ -42,7 +43,6 @@ .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 @@ 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 Index: cad/gmsh/Makefile =================================================================== --- cad/gmsh/Makefile +++ cad/gmsh/Makefile @@ -37,7 +37,7 @@ 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 Index: cad/gtkwave/Makefile =================================================================== --- cad/gtkwave/Makefile +++ cad/gtkwave/Makefile @@ -21,7 +21,7 @@ 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} \ Index: cad/kicad-devel/Makefile =================================================================== --- cad/kicad-devel/Makefile +++ cad/kicad-devel/Makefile @@ -36,7 +36,7 @@ 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}/||} Index: cad/opencascade/Makefile =================================================================== --- cad/opencascade/Makefile +++ cad/opencascade/Makefile @@ -74,6 +74,7 @@ VIS_CMAKE_ON= -D3RDPARTY_FREETYPE_DIR=${LOCALBASE} +DOXYGEN_IMPLIES= DOCS DOXYGEN_USE= TEX=latex:build DOXYGEN_BUILD_DEPENDS= bash:shells/bash \ doxygen:devel/doxygen \ Index: cad/qcad/Makefile =================================================================== --- cad/qcad/Makefile +++ cad/qcad/Makefile @@ -47,6 +47,8 @@ #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 Index: cad/qelectrotech/Makefile =================================================================== --- cad/qelectrotech/Makefile +++ cad/qelectrotech/Makefile @@ -19,7 +19,7 @@ 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 Index: cad/tkgate/Makefile =================================================================== --- cad/tkgate/Makefile +++ cad/tkgate/Makefile @@ -16,6 +16,8 @@ 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 \ Index: comms/dcf77pi/Makefile =================================================================== --- comms/dcf77pi/Makefile +++ comms/dcf77pi/Makefile @@ -13,7 +13,7 @@ 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 @@ PATCH_STRIP= -p1 PORTDOCS= CHANGELOG.md README.md receiver.svg + +DOXYGEN_IMPLIES= DOCS DOXYGEN_PORTDOCS= html/* INSTALL_TARGET= install-strip Index: comms/direwolf/Makefile =================================================================== --- comms/direwolf/Makefile +++ comms/direwolf/Makefile @@ -24,6 +24,8 @@ 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 Index: comms/hidapi/Makefile =================================================================== --- comms/hidapi/Makefile +++ comms/hidapi/Makefile @@ -24,6 +24,8 @@ CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib +OPTIONS_DEFINE= DOCS + pre-configure: @${CP} ${LOCALBASE}/share/gettext/config.rpath ${WRKSRC} Index: comms/libirman/Makefile =================================================================== --- comms/libirman/Makefile +++ comms/libirman/Makefile @@ -19,4 +19,6 @@ PORTDOCS= README TECHNICAL +OPTIONS_DEFINE= DOCS + .include Index: comms/liquid-dsp/Makefile =================================================================== --- comms/liquid-dsp/Makefile +++ comms/liquid-dsp/Makefile @@ -29,6 +29,8 @@ CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib +OPTIONS_DEFINE= DOCS + pre-configure: @cd ${WRKSRC}; ${SH} bootstrap.sh Index: comms/nasawash/Makefile =================================================================== --- comms/nasawash/Makefile +++ comms/nasawash/Makefile @@ -17,6 +17,8 @@ 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} Index: comms/nec2c/Makefile =================================================================== --- comms/nec2c/Makefile +++ comms/nec2c/Makefile @@ -14,7 +14,7 @@ LIB_DEPENDS= libccm.so:math/ccmath -OPTIONS_DEFINE= EXAMPLES +OPTIONS_DEFINE= DOCS EXAMPLES do-install: ${INSTALL_PROGRAM} ${WRKSRC}/nec2c ${STAGEDIR}${PREFIX}/bin Index: comms/splat/Makefile =================================================================== --- comms/splat/Makefile +++ comms/splat/Makefile @@ -13,6 +13,7 @@ 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 Index: comms/svxlink/Makefile =================================================================== --- comms/svxlink/Makefile +++ comms/svxlink/Makefile @@ -36,7 +36,7 @@ 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 @@ 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 \ Index: comms/thebridge/Makefile =================================================================== --- comms/thebridge/Makefile +++ comms/thebridge/Makefile @@ -25,6 +25,8 @@ INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's!tbdcmd=\/usr\/local!tbdcmd=${PREFIX}!'\ ${WRKSRC}/addons/usermgmt.cgi Index: comms/tlf/Makefile =================================================================== --- comms/tlf/Makefile +++ comms/tlf/Makefile @@ -33,4 +33,6 @@ FLDIGI_LIB_DEPENDS= libxmlrpc.so:net/xmlrpc-c FLDIGI_CONFIGURE_ENABLE=fldigi-xmlrpc +OPTIONS_DEFINE= DOCS + .include Index: comms/twpsk/Makefile =================================================================== --- comms/twpsk/Makefile +++ comms/twpsk/Makefile @@ -21,4 +21,6 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include Index: comms/uhd/Makefile =================================================================== --- comms/uhd/Makefile +++ comms/uhd/Makefile @@ -48,7 +48,7 @@ IMAGE_FILE= uhd-images_003.010.003.000-release.zip -OPTIONS_DEFINE= DOXYGEN +OPTIONS_DEFINE= DOXYGEN DOCS #OPTIONS_DEFAULT= DOXYGEN OPTIONS_SUB=yes Index: comms/wspr/Makefile =================================================================== --- comms/wspr/Makefile +++ comms/wspr/Makefile @@ -35,6 +35,8 @@ #LDFLAGS+= -shared VERSION= 4.00 +OPTIONS_DEFINE= DOCS + .include pre-configure: @${CP} ${FILESDIR}/wspr.sh.in ${WRKSRC} Index: converters/erlang-base64url/Makefile =================================================================== --- converters/erlang-base64url/Makefile +++ converters/erlang-base64url/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= dvv +OPTIONS_DEFINE= DOCS + .include Index: converters/uulib/Makefile =================================================================== --- converters/uulib/Makefile +++ converters/uulib/Makefile @@ -29,6 +29,8 @@ 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 Index: databases/akonadi/Makefile =================================================================== --- databases/akonadi/Makefile +++ databases/akonadi/Makefile @@ -52,6 +52,8 @@ OPTIONS_DEFAULT= MYSQL +OPTIONS_DEFINE= DOCS + post-patch: # To avoid overflow, MySQL settings need to be lower than # INT_MAX / kern.hz. This setting assumes kern.hz=2000, and Index: databases/arangodb32/Makefile =================================================================== --- databases/arangodb32/Makefile +++ databases/arangodb32/Makefile @@ -28,6 +28,8 @@ GROUPS= arangodb USE_RC_SUBR= arangod +OPTIONS_DEFINE= DOCS + .include .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 Index: databases/arangodb33/Makefile =================================================================== --- databases/arangodb33/Makefile +++ databases/arangodb33/Makefile @@ -31,6 +31,8 @@ GROUPS= arangodb USE_RC_SUBR= arangod +OPTIONS_DEFINE= DOCS + .include .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200057 Index: databases/c3p0/Makefile =================================================================== --- databases/c3p0/Makefile +++ databases/c3p0/Makefile @@ -18,6 +18,8 @@ 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} Index: databases/couchdb/Makefile =================================================================== --- databases/couchdb/Makefile +++ databases/couchdb/Makefile @@ -46,6 +46,8 @@ INFO= CouchDB +OPTIONS_DEFINE= DOCS + .include post-patch: Index: databases/dbh/Makefile =================================================================== --- databases/dbh/Makefile +++ databases/dbh/Makefile @@ -28,10 +28,10 @@ .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: Index: databases/elixir-calecto/Makefile =================================================================== --- databases/elixir-calecto/Makefile +++ databases/elixir-calecto/Makefile @@ -19,4 +19,6 @@ devel/elixir-calendar MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: databases/elixir-db_connection/Makefile =================================================================== --- databases/elixir-db_connection/Makefile +++ databases/elixir-db_connection/Makefile @@ -21,4 +21,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: databases/elixir-ecto/Makefile =================================================================== --- databases/elixir-ecto/Makefile +++ databases/elixir-ecto/Makefile @@ -15,7 +15,7 @@ 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 Index: databases/elixir-exredis/Makefile =================================================================== --- databases/elixir-exredis/Makefile +++ databases/elixir-exredis/Makefile @@ -17,4 +17,6 @@ MIX_BUILD_DEPS= databases/erlang-eredis MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: databases/elixir-geo/Makefile =================================================================== --- databases/elixir-geo/Makefile +++ databases/elixir-geo/Makefile @@ -23,4 +23,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: databases/elixir-mariaex/Makefile =================================================================== --- databases/elixir-mariaex/Makefile +++ databases/elixir-mariaex/Makefile @@ -21,4 +21,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: databases/elixir-mongo/Makefile =================================================================== --- databases/elixir-mongo/Makefile +++ databases/elixir-mongo/Makefile @@ -18,4 +18,6 @@ MIX_BUILD_DEPS= devel/elixir-bson MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: databases/elixir-postgrex/Makefile =================================================================== --- databases/elixir-postgrex/Makefile +++ databases/elixir-postgrex/Makefile @@ -21,4 +21,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: databases/elixir-timex_ecto/Makefile =================================================================== --- databases/elixir-timex_ecto/Makefile +++ databases/elixir-timex_ecto/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: databases/erlang-couchbeam/Makefile =================================================================== --- databases/erlang-couchbeam/Makefile +++ databases/erlang-couchbeam/Makefile @@ -18,4 +18,6 @@ www/erlang-hackney ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: databases/erlang-epgsql/Makefile =================================================================== --- databases/erlang-epgsql/Makefile +++ databases/erlang-epgsql/Makefile @@ -13,4 +13,6 @@ USES= erlang:rebar3 USE_GITHUB= yes +OPTIONS_DEFINE= DOCS + .include Index: databases/erlang-eredis/Makefile =================================================================== --- databases/erlang-eredis/Makefile +++ databases/erlang-eredis/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= wooga +OPTIONS_DEFINE= DOCS + .include Index: databases/iowow/Makefile =================================================================== --- databases/iowow/Makefile +++ databases/iowow/Makefile @@ -18,4 +18,6 @@ PORTDOCS= Changelog README +OPTIONS_DEFINE= DOCS + .include Index: databases/libgda5/Makefile =================================================================== --- databases/libgda5/Makefile +++ databases/libgda5/Makefile @@ -37,7 +37,7 @@ .include VERSION= 5.0 -PLIST_SUB= VERSION=${VERSION} +PLIST_SUB+= VERSION=${VERSION} .if ${LIBGDA5_SLAVE}!="no" USE_GNOME+= libgda5 Index: databases/libodbc++/Makefile =================================================================== --- databases/libodbc++/Makefile +++ databases/libodbc++/Makefile @@ -11,8 +11,9 @@ 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 Index: databases/libpbl/Makefile =================================================================== --- databases/libpbl/Makefile +++ databases/libpbl/Makefile @@ -25,6 +25,8 @@ 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 Index: databases/linux-c6-sqlite3/Makefile =================================================================== --- databases/linux-c6-sqlite3/Makefile +++ databases/linux-c6-sqlite3/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: databases/linux-c7-sqlite3/Makefile =================================================================== --- databases/linux-c7-sqlite3/Makefile +++ databases/linux-c7-sqlite3/Makefile @@ -19,4 +19,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: databases/mariadb100-server/Makefile =================================================================== --- databases/mariadb100-server/Makefile +++ databases/mariadb100-server/Makefile @@ -73,7 +73,7 @@ .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 @@ 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 Index: databases/mariadb101-server/Makefile =================================================================== --- databases/mariadb101-server/Makefile +++ databases/mariadb101-server/Makefile @@ -44,7 +44,7 @@ .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 @@ 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 Index: databases/mariadb102-server/Makefile =================================================================== --- databases/mariadb102-server/Makefile +++ databases/mariadb102-server/Makefile @@ -39,7 +39,7 @@ # 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 @@ 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 Index: databases/mariadb103-server/Makefile =================================================================== --- databases/mariadb103-server/Makefile +++ databases/mariadb103-server/Makefile @@ -41,7 +41,7 @@ # 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 @@ 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 Index: databases/mdcached/Makefile =================================================================== --- databases/mdcached/Makefile +++ databases/mdcached/Makefile @@ -18,6 +18,8 @@ PORTDOCS= UserGuide.txt mdcached.txt +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's|ADDCFLAGS = -Wall -g -O3 -march=native|ADDCFLAGS = ${CFLAGS}|' \ ${WRKSRC}/Makefile Index: databases/memcacheq/Makefile =================================================================== --- databases/memcacheq/Makefile +++ databases/memcacheq/Makefile @@ -28,6 +28,8 @@ MCQDIR?= /var/db/memcacheq PLIST_SUB= MCQDIR=${MCQDIR} +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} Index: databases/monetdb/Makefile =================================================================== --- databases/monetdb/Makefile +++ databases/monetdb/Makefile @@ -35,7 +35,7 @@ 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 Index: databases/mongodb32-tools/Makefile =================================================================== --- databases/mongodb32-tools/Makefile +++ databases/mongodb32-tools/Makefile @@ -22,7 +22,7 @@ GH_ACCOUNT= mongodb GH_PROJECT= mongo-tools -OPTIONS_DEFINE= SSL SASL +OPTIONS_DEFINE= SSL SASL DOCS OPTIONS_DEFAULT= SSL SASL_USE= my_tags=sasl Index: databases/mongodb34-tools/Makefile =================================================================== --- databases/mongodb34-tools/Makefile +++ databases/mongodb34-tools/Makefile @@ -23,7 +23,7 @@ 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 Index: databases/mongodb36-tools/Makefile =================================================================== --- databases/mongodb36-tools/Makefile +++ databases/mongodb36-tools/Makefile @@ -27,7 +27,7 @@ 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 Index: databases/ora2pg/Makefile =================================================================== --- databases/ora2pg/Makefile +++ databases/ora2pg/Makefile @@ -22,6 +22,8 @@ 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' \ Index: databases/p5-DBD-Excel/Makefile =================================================================== --- databases/p5-DBD-Excel/Makefile +++ databases/p5-DBD-Excel/Makefile @@ -21,7 +21,9 @@ USES= perl5 USE_PERL5= configure -post-install: +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR} Index: databases/pg_partman/Makefile =================================================================== --- databases/pg_partman/Makefile +++ databases/pg_partman/Makefile @@ -24,6 +24,8 @@ OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pg_partman_bgw.so Index: databases/pgespresso/Makefile =================================================================== --- databases/pgespresso/Makefile +++ databases/pgespresso/Makefile @@ -28,6 +28,8 @@ INSTALL_TARGET= install-strip MAKE_ARGS= INSTALL="${INSTALL} -c" +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR}/ ${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ Index: databases/pglogical/Makefile =================================================================== --- databases/pglogical/Makefile +++ databases/pglogical/Makefile @@ -29,9 +29,9 @@ .include .if ${PGSQL_VER:M9.4} -PLIST_SUB= PGSQL94="" +PLIST_SUB+= PGSQL94="" .else -PLIST_SUB= PGSQL94="@comment " +PLIST_SUB+= PGSQL94="@comment " .endif # FFI Index: databases/postgresql10-contrib/Makefile =================================================================== --- databases/postgresql10-contrib/Makefile +++ databases/postgresql10-contrib/Makefile @@ -23,6 +23,8 @@ 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 Index: databases/postgresql10-server/Makefile =================================================================== --- databases/postgresql10-server/Makefile +++ databases/postgresql10-server/Makefile @@ -71,7 +71,7 @@ .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 @@ .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 @@ .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 Index: databases/postgresql95-contrib/Makefile =================================================================== --- databases/postgresql95-contrib/Makefile +++ databases/postgresql95-contrib/Makefile @@ -23,6 +23,8 @@ 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 Index: databases/postgresql96-contrib/Makefile =================================================================== --- databases/postgresql96-contrib/Makefile +++ databases/postgresql96-contrib/Makefile @@ -23,6 +23,8 @@ 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 Index: databases/py-PyGreSQL/Makefile =================================================================== --- databases/py-PyGreSQL/Makefile +++ databases/py-PyGreSQL/Makefile @@ -19,6 +19,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_pg.so @${MKDIR} ${STAGEDIR}${DOCSDIR} Index: databases/py-bsddb3/Makefile =================================================================== --- databases/py-bsddb3/Makefile +++ databases/py-bsddb3/Makefile @@ -22,6 +22,8 @@ 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,,<${BDB_INCLUDE_DIR}/db.h>,' ${WRKSRC}/Modules/bsddb.h Index: databases/py-sqlobject/Makefile =================================================================== --- databases/py-sqlobject/Makefile +++ databases/py-sqlobject/Makefile @@ -21,7 +21,7 @@ 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= * Index: databases/qdbm/Makefile =================================================================== --- databases/qdbm/Makefile +++ databases/qdbm/Makefile @@ -29,6 +29,8 @@ INSTALL_TARGET= install-strip PORTDOCS= ChangeLog NEWS +OPTIONS_DEFINE= DOCS + post-patch: .if defined(WITH_DEBUG) @${REINPLACE_CMD} 's/-DNDEBUG//' ${WRKSRC}/Makefile.in Index: databases/skytools/Makefile =================================================================== --- databases/skytools/Makefile +++ databases/skytools/Makefile @@ -26,6 +26,8 @@ --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 Index: databases/sqlcached/Makefile =================================================================== --- databases/sqlcached/Makefile +++ databases/sqlcached/Makefile @@ -23,6 +23,8 @@ 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}|' \ Index: databases/tcl-sqlite3/Makefile =================================================================== --- databases/tcl-sqlite3/Makefile +++ databases/tcl-sqlite3/Makefile @@ -14,7 +14,7 @@ LIB_DEPENDS= libsqlite3.so:databases/sqlite3 -OPTIONS_DEFINE= THREADS +OPTIONS_DEFINE= EXAMPLES THREADS OPTIONS_DEFAULT= THREADS WRKSRC= ${WRKDIR}/${DISTNAME}/tea Index: deskutils/akonadi-calendar-tools/Makefile =================================================================== --- deskutils/akonadi-calendar-tools/Makefile +++ deskutils/akonadi-calendar-tools/Makefile @@ -25,4 +25,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/akonadi-import-wizard/Makefile =================================================================== --- deskutils/akonadi-import-wizard/Makefile +++ deskutils/akonadi-import-wizard/Makefile @@ -27,4 +27,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/akonadiconsole/Makefile =================================================================== --- deskutils/akonadiconsole/Makefile +++ deskutils/akonadiconsole/Makefile @@ -34,4 +34,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/akregator/Makefile =================================================================== --- deskutils/akregator/Makefile +++ deskutils/akregator/Makefile @@ -31,4 +31,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/gnote/Makefile =================================================================== --- deskutils/gnote/Makefile +++ deskutils/gnote/Makefile @@ -39,6 +39,8 @@ PLIST_SUB+= VERSION=${PORTVERSION} +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCS} Index: deskutils/grantlee-editor/Makefile =================================================================== --- deskutils/grantlee-editor/Makefile +++ deskutils/grantlee-editor/Makefile @@ -32,4 +32,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/grantleetheme/Makefile =================================================================== --- deskutils/grantleetheme/Makefile +++ deskutils/grantleetheme/Makefile @@ -19,4 +19,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kaddressbook/Makefile =================================================================== --- deskutils/kaddressbook/Makefile +++ deskutils/kaddressbook/Makefile @@ -29,4 +29,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kalarm/Makefile =================================================================== --- deskutils/kalarm/Makefile +++ deskutils/kalarm/Makefile @@ -30,4 +30,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kcharselect/Makefile =================================================================== --- deskutils/kcharselect/Makefile +++ deskutils/kcharselect/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kdepim-addons/Makefile =================================================================== --- deskutils/kdepim-addons/Makefile +++ deskutils/kdepim-addons/Makefile @@ -36,4 +36,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kdepim-apps-libs/Makefile =================================================================== --- deskutils/kdepim-apps-libs/Makefile +++ deskutils/kdepim-apps-libs/Makefile @@ -28,4 +28,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kdepim-runtime/Makefile =================================================================== --- deskutils/kdepim-runtime/Makefile +++ deskutils/kdepim-runtime/Makefile @@ -35,4 +35,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/keditbookmarks/Makefile =================================================================== --- deskutils/keditbookmarks/Makefile +++ deskutils/keditbookmarks/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kfind/Makefile =================================================================== --- deskutils/kfind/Makefile +++ deskutils/kfind/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui network printsupport widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kmail-account-wizard/Makefile =================================================================== --- deskutils/kmail-account-wizard/Makefile +++ deskutils/kmail-account-wizard/Makefile @@ -27,4 +27,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kmail/Makefile =================================================================== --- deskutils/kmail/Makefile +++ deskutils/kmail/Makefile @@ -42,4 +42,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/knotes/Makefile =================================================================== --- deskutils/knotes/Makefile +++ deskutils/knotes/Makefile @@ -31,4 +31,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kontact/Makefile =================================================================== --- deskutils/kontact/Makefile +++ deskutils/kontact/Makefile @@ -24,4 +24,6 @@ +OPTIONS_DEFINE= DOCS + .include Index: deskutils/korganizer/Makefile =================================================================== --- deskutils/korganizer/Makefile +++ deskutils/korganizer/Makefile @@ -29,4 +29,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/kruler/Makefile =================================================================== --- deskutils/kruler/Makefile +++ deskutils/kruler/Makefile @@ -14,4 +14,6 @@ buildtools_build qmake_build USE_XORG= x11 xcb +OPTIONS_DEFINE= DOCS + .include Index: deskutils/launchy/Makefile =================================================================== --- deskutils/launchy/Makefile +++ deskutils/launchy/Makefile @@ -24,6 +24,8 @@ MAKE_JOBS_UNSAFE= yes +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's,/usr,${PREFIX},' \ ${WRKSRC}/platforms/unix/unix.pro \ Index: deskutils/libkdepim/Makefile =================================================================== --- deskutils/libkdepim/Makefile +++ deskutils/libkdepim/Makefile @@ -24,4 +24,6 @@ USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: deskutils/mbox-importer/Makefile =================================================================== --- deskutils/mbox-importer/Makefile +++ deskutils/mbox-importer/Makefile @@ -26,4 +26,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/nautilus-actions/Makefile =================================================================== --- deskutils/nautilus-actions/Makefile +++ deskutils/nautilus-actions/Makefile @@ -32,6 +32,8 @@ ChangeLog-2011 ChangeLog-2012 COPYING COPYING-DOCS INSTALL \ MAINTAINERS NEWS README README-GCONF TODO +OPTIONS_DEFINE= DOCS + .include post-patch: Index: deskutils/note/Makefile =================================================================== --- deskutils/note/Makefile +++ deskutils/note/Makefile @@ -17,7 +17,7 @@ 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 \ Index: deskutils/notecase/Makefile =================================================================== --- deskutils/notecase/Makefile +++ deskutils/notecase/Makefile @@ -24,6 +24,8 @@ PORTDOCS= help.ncd +OPTIONS_DEFINE= DOCS + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/notecase Index: deskutils/pim-data-exporter/Makefile =================================================================== --- deskutils/pim-data-exporter/Makefile +++ deskutils/pim-data-exporter/Makefile @@ -29,4 +29,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/pim-sieve-editor/Makefile =================================================================== --- deskutils/pim-sieve-editor/Makefile +++ deskutils/pim-sieve-editor/Makefile @@ -20,4 +20,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: deskutils/taskd/Makefile =================================================================== --- deskutils/taskd/Makefile +++ deskutils/taskd/Makefile @@ -48,6 +48,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-install: (cd ${WRKSRC}/pki && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) ${MKDIR} ${STAGEDIR}${TASKD_DBDIR} Index: deskutils/tasksh/Makefile =================================================================== --- deskutils/tasksh/Makefile +++ deskutils/tasksh/Makefile @@ -11,4 +11,6 @@ USES= cmake compiler:c++11-lang readline +OPTIONS_DEFINE= DOCS + .include Index: devel/allegro-devel/Makefile =================================================================== --- devel/allegro-devel/Makefile +++ devel/allegro-devel/Makefile @@ -64,6 +64,7 @@ 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 Index: devel/automake/Makefile =================================================================== --- devel/automake/Makefile +++ devel/automake/Makefile @@ -25,4 +25,6 @@ INFO= automake automake-history CPE_VENDOR= gnu +OPTIONS_DEFINE= DOCS + .include Index: devel/babeltrace/Makefile =================================================================== --- devel/babeltrace/Makefile +++ devel/babeltrace/Makefile @@ -32,6 +32,8 @@ 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 Index: devel/bbfreeze/Makefile =================================================================== --- devel/bbfreeze/Makefile +++ devel/bbfreeze/Makefile @@ -22,6 +22,8 @@ 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' \ Index: devel/boost-docs/Makefile =================================================================== --- devel/boost-docs/Makefile +++ devel/boost-docs/Makefile @@ -9,6 +9,8 @@ NO_BUILD= yes +OPTIONS_DEFINE= DOCS + .include "${.CURDIR}/..//boost-all/common.mk" do-install: Index: devel/breakpad/Makefile =================================================================== --- devel/breakpad/Makefile +++ devel/breakpad/Makefile @@ -19,6 +19,8 @@ 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 Index: devel/catch/Makefile =================================================================== --- devel/catch/Makefile +++ devel/catch/Makefile @@ -22,6 +22,8 @@ CMAKE_ARGS= -DCMAKE_INSTALL_DOCDIR=${DOCSDIR} PORTDOCS= * +OPTIONS_DEFINE= DOCS + do-test: ${BUILD_WRKSRC}/projects/SelfTest Index: devel/cctz/Makefile =================================================================== --- devel/cctz/Makefile +++ devel/cctz/Makefile @@ -29,6 +29,8 @@ PORTDOCS= README.md +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} Index: devel/cervisia/Makefile =================================================================== --- devel/cervisia/Makefile +++ devel/cervisia/Makefile @@ -13,4 +13,6 @@ USE_QT= core dbus gui widgets \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: devel/commit-patch/Makefile =================================================================== --- devel/commit-patch/Makefile +++ devel/commit-patch/Makefile @@ -26,6 +26,8 @@ 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?=/' \ Index: devel/critcl/Makefile =================================================================== --- devel/critcl/Makefile +++ devel/critcl/Makefile @@ -29,7 +29,7 @@ NO_BUILD= yes -.include +OPTIONS_DEFINE= DOCS post-patch: ${REINPLACE_CMD} -e 's|dtplite|${LOCALBASE}/bin/dtplite|g' ${WRKSRC}/build.tcl Index: devel/cvs2svn/Makefile =================================================================== --- devel/cvs2svn/Makefile +++ devel/cvs2svn/Makefile @@ -55,6 +55,8 @@ 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|' \ Index: devel/cvschangelogbuilder/Makefile =================================================================== --- devel/cvschangelogbuilder/Makefile +++ devel/cvschangelogbuilder/Makefile @@ -22,6 +22,8 @@ PLIST_FILES= bin/cvschangelogbuilder PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100077 Index: devel/cvsweb3/Makefile =================================================================== --- devel/cvsweb3/Makefile +++ devel/cvsweb3/Makefile @@ -35,6 +35,8 @@ NO_BUILD= yes NO_ARCH= yes +OPTIONS_DEFINE= DOCS EXAMPLES + .include # Specify where your repository belongs. Index: devel/dissy/Makefile =================================================================== --- devel/dissy/Makefile +++ devel/dissy/Makefile @@ -24,6 +24,8 @@ PORTDOCS= COPYING ChangeLog README UPGRADE +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} Index: devel/distel/Makefile =================================================================== --- devel/distel/Makefile +++ devel/distel/Makefile @@ -24,6 +24,8 @@ 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 Index: devel/dolphin-plugins/Makefile =================================================================== --- devel/dolphin-plugins/Makefile +++ devel/dolphin-plugins/Makefile @@ -19,4 +19,6 @@ USE_QT= core dbus gui network printsupport widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: devel/editline/Makefile =================================================================== --- devel/editline/Makefile +++ devel/editline/Makefile @@ -20,6 +20,8 @@ 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 Index: devel/elixir-apex/Makefile =================================================================== --- devel/elixir-apex/Makefile +++ devel/elixir-apex/Makefile @@ -18,4 +18,6 @@ MIX_REWRITE= yes MIX_BUILD_NAME= shared +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-bson/Makefile =================================================================== --- devel/elixir-bson/Makefile +++ devel/elixir-bson/Makefile @@ -17,4 +17,6 @@ ELIXIR_APP_NAME=bson +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-cachex/Makefile =================================================================== --- devel/elixir-cachex/Makefile +++ devel/elixir-cachex/Makefile @@ -20,4 +20,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-calendar/Makefile =================================================================== --- devel/elixir-calendar/Makefile +++ devel/elixir-calendar/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-combine/Makefile =================================================================== --- devel/elixir-combine/Makefile +++ devel/elixir-combine/Makefile @@ -16,4 +16,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-conform/Makefile =================================================================== --- devel/elixir-conform/Makefile +++ devel/elixir-conform/Makefile @@ -18,4 +18,6 @@ MIX_BUILD_DEPS= devel/erlang-neotoma MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-connection/Makefile =================================================================== --- devel/elixir-connection/Makefile +++ devel/elixir-connection/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-coverex/Makefile =================================================================== --- devel/elixir-coverex/Makefile +++ devel/elixir-coverex/Makefile @@ -18,4 +18,6 @@ USE_GITHUB= yes GH_ACCOUNT= alfert +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-crontab/Makefile =================================================================== --- devel/elixir-crontab/Makefile +++ devel/elixir-crontab/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-csv/Makefile =================================================================== --- devel/elixir-csv/Makefile +++ devel/elixir-csv/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= beatrichartz +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-decimal/Makefile =================================================================== --- devel/elixir-decimal/Makefile +++ devel/elixir-decimal/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= ericmj +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-deppie/Makefile =================================================================== --- devel/elixir-deppie/Makefile +++ devel/elixir-deppie/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-dialyze/Makefile =================================================================== --- devel/elixir-dialyze/Makefile +++ devel/elixir-dialyze/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= fishcakez +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-distillery/Makefile =================================================================== --- devel/elixir-distillery/Makefile +++ devel/elixir-distillery/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= bitwalker +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-estree/Makefile =================================================================== --- devel/elixir-estree/Makefile +++ devel/elixir-estree/Makefile @@ -16,4 +16,6 @@ ELIXIR_APP_NAME=estree +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-eternal/Makefile =================================================================== --- devel/elixir-eternal/Makefile +++ devel/elixir-eternal/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-exactor/Makefile =================================================================== --- devel/elixir-exactor/Makefile +++ devel/elixir-exactor/Makefile @@ -16,4 +16,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-excoveralls/Makefile =================================================================== --- devel/elixir-excoveralls/Makefile +++ devel/elixir-excoveralls/Makefile @@ -18,4 +18,6 @@ USE_GITHUB= yes GH_ACCOUNT= parroty +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-exjsx/Makefile =================================================================== --- devel/elixir-exjsx/Makefile +++ devel/elixir-exjsx/Makefile @@ -17,4 +17,6 @@ MIX_BUILD_DEPS= devel/erlang-jsx MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-exprotobuf/Makefile =================================================================== --- devel/elixir-exprotobuf/Makefile +++ devel/elixir-exprotobuf/Makefile @@ -17,6 +17,8 @@ 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 Index: devel/elixir-gen_stage/Makefile =================================================================== --- devel/elixir-gen_stage/Makefile +++ devel/elixir-gen_stage/Makefile @@ -18,4 +18,6 @@ ELIXIR_APP_NAME=gen_stage MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-gen_state_machine/Makefile =================================================================== --- devel/elixir-gen_state_machine/Makefile +++ devel/elixir-gen_state_machine/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-gettext/Makefile =================================================================== --- devel/elixir-gettext/Makefile +++ devel/elixir-gettext/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-hex/Makefile =================================================================== --- devel/elixir-hex/Makefile +++ devel/elixir-hex/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= hexpm +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-inflex/Makefile =================================================================== --- devel/elixir-inflex/Makefile +++ devel/elixir-inflex/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= nurugger07 +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-lager_logger/Makefile =================================================================== --- devel/elixir-lager_logger/Makefile +++ devel/elixir-lager_logger/Makefile @@ -17,4 +17,6 @@ USE_GITHUB= yes GH_ACCOUNT= PSPDFKit-labs +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-libring/Makefile =================================================================== --- devel/elixir-libring/Makefile +++ devel/elixir-libring/Makefile @@ -16,4 +16,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-make/Makefile =================================================================== --- devel/elixir-make/Makefile +++ devel/elixir-make/Makefile @@ -18,4 +18,6 @@ ELIXIR_APP_NAME=elixir_make +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-math/Makefile =================================================================== --- devel/elixir-math/Makefile +++ devel/elixir-math/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-msgpax/Makefile =================================================================== --- devel/elixir-msgpax/Makefile +++ devel/elixir-msgpax/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-nadia/Makefile =================================================================== --- devel/elixir-nadia/Makefile +++ devel/elixir-nadia/Makefile @@ -20,4 +20,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-nats/Makefile =================================================================== --- devel/elixir-nats/Makefile +++ devel/elixir-nats/Makefile @@ -16,4 +16,6 @@ MIX_REWRITE= yes ELIXIR_APP_NAME=nats +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-nimble_csv/Makefile =================================================================== --- devel/elixir-nimble_csv/Makefile +++ devel/elixir-nimble_csv/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-paratize/Makefile =================================================================== --- devel/elixir-paratize/Makefile +++ devel/elixir-paratize/Makefile @@ -17,4 +17,6 @@ ELIXIR_APP_NAME=paratize MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-plug/Makefile =================================================================== --- devel/elixir-plug/Makefile +++ devel/elixir-plug/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-poison/Makefile =================================================================== --- devel/elixir-poison/Makefile +++ devel/elixir-poison/Makefile @@ -16,4 +16,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-quantum/Makefile =================================================================== --- devel/elixir-quantum/Makefile +++ devel/elixir-quantum/Makefile @@ -25,4 +25,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-smppex/Makefile =================================================================== --- devel/elixir-smppex/Makefile +++ devel/elixir-smppex/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-swarm/Makefile =================================================================== --- devel/elixir-swarm/Makefile +++ devel/elixir-swarm/Makefile @@ -20,4 +20,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-timex/Makefile =================================================================== --- devel/elixir-timex/Makefile +++ devel/elixir-timex/Makefile @@ -21,4 +21,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-tirexs/Makefile =================================================================== --- devel/elixir-tirexs/Makefile +++ devel/elixir-tirexs/Makefile @@ -20,4 +20,6 @@ MIX_BUILD_DEPS= devel/elixir-exjsx MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-trailing_format_plug/Makefile =================================================================== --- devel/elixir-trailing_format_plug/Makefile +++ devel/elixir-trailing_format_plug/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/elixir-tzdata/Makefile =================================================================== --- devel/elixir-tzdata/Makefile +++ devel/elixir-tzdata/Makefile @@ -19,6 +19,8 @@ www/erlang-hackney MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + post-extract: @${RM} ${WRKSRC}/priv/release_ets/.gitkeep Index: devel/elixir-unsafe/Makefile =================================================================== --- devel/elixir-unsafe/Makefile +++ devel/elixir-unsafe/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/eric6/Makefile =================================================================== --- devel/eric6/Makefile +++ devel/eric6/Makefile @@ -29,6 +29,8 @@ PORTDOCS= * PORTEXAMPLES= * +OPTIONS_DEFINE= DOCS EXAMPLES + .include "${.CURDIR}/bsd.eric6.mk" .include Index: devel/erlang-backoff/Makefile =================================================================== --- devel/erlang-backoff/Makefile +++ devel/erlang-backoff/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= ferd +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-bbmustache/Makefile =================================================================== --- devel/erlang-bbmustache/Makefile +++ devel/erlang-bbmustache/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= soranoba +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-bear/Makefile =================================================================== --- devel/erlang-bear/Makefile +++ devel/erlang-bear/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= puzza007 +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-certifi/Makefile =================================================================== --- devel/erlang-certifi/Makefile +++ devel/erlang-certifi/Makefile @@ -17,4 +17,6 @@ ERL_APP_NAME= certifi +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-cf/Makefile =================================================================== --- devel/erlang-cf/Makefile +++ devel/erlang-cf/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= project-fifo +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-clique/Makefile =================================================================== --- devel/erlang-clique/Makefile +++ devel/erlang-clique/Makefile @@ -17,4 +17,6 @@ ERL_BUILD_DEPS= devel/erlang-cuttlefish ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-cuttlefish/Makefile =================================================================== --- devel/erlang-cuttlefish/Makefile +++ devel/erlang-cuttlefish/Makefile @@ -21,4 +21,6 @@ devel/erlang-neotoma ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-erlware_commons/Makefile =================================================================== --- devel/erlang-erlware_commons/Makefile +++ devel/erlang-erlware_commons/Makefile @@ -17,4 +17,6 @@ ERL_BUILD_DEPS= devel/erlang-cf ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-exmpp/Makefile =================================================================== --- devel/erlang-exmpp/Makefile +++ devel/erlang-exmpp/Makefile @@ -36,6 +36,8 @@ USES= autoreconf cpe libtool pkgconfig ssl CPE_VENDOR= process-one +OPTIONS_DEFINE= DOCS + DOCS_CONFIGURE_ENABLE= documentation MAKE_JOBS_UNSAFE= yes Index: devel/erlang-folsom/Makefile =================================================================== --- devel/erlang-folsom/Makefile +++ devel/erlang-folsom/Makefile @@ -17,4 +17,6 @@ ERL_BUILD_DEPS= devel/erlang-bear ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-gen_leader/Makefile =================================================================== --- devel/erlang-gen_leader/Makefile +++ devel/erlang-gen_leader/Makefile @@ -15,7 +15,9 @@ 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} Index: devel/erlang-gen_rpc/Makefile =================================================================== --- devel/erlang-gen_rpc/Makefile +++ devel/erlang-gen_rpc/Makefile @@ -18,4 +18,6 @@ devel/erlang-ssl_verify_fun ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-gen_smtp/Makefile =================================================================== --- devel/erlang-gen_smtp/Makefile +++ devel/erlang-gen_smtp/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= Vagabond +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-getopt/Makefile =================================================================== --- devel/erlang-getopt/Makefile +++ devel/erlang-getopt/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= jcomellas +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-goldrush/Makefile =================================================================== --- devel/erlang-goldrush/Makefile +++ devel/erlang-goldrush/Makefile @@ -14,6 +14,8 @@ USE_GITHUB= yes GH_ACCOUNT= DeadZen +OPTIONS_DEFINE= DOCS + post-build: @${RM} -r ${WRKSRC}/priv Index: devel/erlang-gpb/Makefile =================================================================== --- devel/erlang-gpb/Makefile +++ devel/erlang-gpb/Makefile @@ -18,6 +18,8 @@ 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 Index: devel/erlang-gproc/Makefile =================================================================== --- devel/erlang-gproc/Makefile +++ devel/erlang-gproc/Makefile @@ -19,4 +19,6 @@ ERL_DOCS= doc/* +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-hut/Makefile =================================================================== --- devel/erlang-hut/Makefile +++ devel/erlang-hut/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= tolbrino +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-jobs/Makefile =================================================================== --- devel/erlang-jobs/Makefile +++ devel/erlang-jobs/Makefile @@ -16,7 +16,9 @@ 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} Index: devel/erlang-jsx/Makefile =================================================================== --- devel/erlang-jsx/Makefile +++ devel/erlang-jsx/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= talentdeficit +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-jsxd/Makefile =================================================================== --- devel/erlang-jsxd/Makefile +++ devel/erlang-jsxd/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= Licenser +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-katana/Makefile =================================================================== --- devel/erlang-katana/Makefile +++ devel/erlang-katana/Makefile @@ -13,4 +13,6 @@ USE_GITHUB= yes GH_ACCOUNT= inaka +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-lager/Makefile =================================================================== --- devel/erlang-lager/Makefile +++ devel/erlang-lager/Makefile @@ -16,6 +16,8 @@ ERL_RUN_DEPS= devel/erlang-goldrush +OPTIONS_DEFINE= DOCS + post-build: @${RM} -r ${WRKSRC}/priv Index: devel/erlang-lager_syslog/Makefile =================================================================== --- devel/erlang-lager_syslog/Makefile +++ devel/erlang-lager_syslog/Makefile @@ -18,4 +18,6 @@ devel/erlang-syslog RUN_DEPENDS:= ${BUILD_DEPENDS} +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-meck/Makefile =================================================================== --- devel/erlang-meck/Makefile +++ devel/erlang-meck/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= eproxus +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-metrics/Makefile =================================================================== --- devel/erlang-metrics/Makefile +++ devel/erlang-metrics/Makefile @@ -16,4 +16,6 @@ ERL_APP_NAME= metrics +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-msgpack/Makefile =================================================================== --- devel/erlang-msgpack/Makefile +++ devel/erlang-msgpack/Makefile @@ -16,4 +16,6 @@ GH_ACCOUNT= msgpack GH_PROJECT= msgpack-erlang +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-neotoma/Makefile =================================================================== --- devel/erlang-neotoma/Makefile +++ devel/erlang-neotoma/Makefile @@ -20,6 +20,8 @@ REBAR_TARGETS= compile escriptize +OPTIONS_DEFINE= DOCS + post-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${ERL_APP_ROOT} ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin Index: devel/erlang-parse_trans/Makefile =================================================================== --- devel/erlang-parse_trans/Makefile +++ devel/erlang-parse_trans/Makefile @@ -14,7 +14,9 @@ ERL_DOCS= doc/* -post-install: +OPTIONS_DEFINE= DOCS EXAMPLES + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} Index: devel/erlang-poolboy/Makefile =================================================================== --- devel/erlang-poolboy/Makefile +++ devel/erlang-poolboy/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= devinus +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-pooler/Makefile =================================================================== --- devel/erlang-pooler/Makefile +++ devel/erlang-pooler/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= seth +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-protobuffs/Makefile =================================================================== --- devel/erlang-protobuffs/Makefile +++ devel/erlang-protobuffs/Makefile @@ -18,4 +18,6 @@ GH_ACCOUNT= basho GH_PROJECT= erlang_protobuffs +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-providers/Makefile =================================================================== --- devel/erlang-providers/Makefile +++ devel/erlang-providers/Makefile @@ -17,4 +17,6 @@ ERL_BUILD_DEPS= devel/erlang-getopt ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-rebar3_hex/Makefile =================================================================== --- devel/erlang-rebar3_hex/Makefile +++ devel/erlang-rebar3_hex/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= hexpm +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-recon/Makefile =================================================================== --- devel/erlang-recon/Makefile +++ devel/erlang-recon/Makefile @@ -17,6 +17,8 @@ ERL_DOCS= README.md doc/* REBAR_TARGETS= compile doc +OPTIONS_DEFINE= DOCS + post-build: @${RM} ${WRKSRC}/doc/packages-frame.html Index: devel/erlang-sbroker/Makefile =================================================================== --- devel/erlang-sbroker/Makefile +++ devel/erlang-sbroker/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= fishcakez +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-ssl_verify_fun/Makefile =================================================================== --- devel/erlang-ssl_verify_fun/Makefile +++ devel/erlang-ssl_verify_fun/Makefile @@ -15,4 +15,6 @@ GH_ACCOUNT= deadtrickster GH_PROJECT= ssl_verify_fun.erl +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-syslog/Makefile =================================================================== --- devel/erlang-syslog/Makefile +++ devel/erlang-syslog/Makefile @@ -13,4 +13,6 @@ GH_ACCOUNT= Vagabond GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME} +OPTIONS_DEFINE= DOCS + .include Index: devel/erlang-unicode_util_compat/Makefile =================================================================== --- devel/erlang-unicode_util_compat/Makefile +++ devel/erlang-unicode_util_compat/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= benoitc +OPTIONS_DEFINE= DOCS + .include Index: devel/fistgen/Makefile =================================================================== --- devel/fistgen/Makefile +++ devel/fistgen/Makefile @@ -20,6 +20,8 @@ PLIST_FILES= sbin/fistgen \ man/man8/fistgen.8.gz +OPTIONS_DEFINE= DOCS EXAMPLES + post-install: @${MKDIR} ${STAGEDIR}${DATADIR} .for dir in templates Index: devel/fpc-symbolic/Makefile =================================================================== --- devel/fpc-symbolic/Makefile +++ devel/fpc-symbolic/Makefile @@ -12,4 +12,6 @@ WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} EXTRACTUNITDIR= ${WRKUNITDIR} +OPTIONS_DEFINE= DOCS + .include "${MASTERDIR}/Makefile" Index: devel/fsmtrie/Makefile =================================================================== --- devel/fsmtrie/Makefile +++ devel/fsmtrie/Makefile @@ -21,11 +21,12 @@ 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 Index: devel/fstrm/Makefile =================================================================== --- devel/fstrm/Makefile +++ devel/fstrm/Makefile @@ -23,8 +23,9 @@ 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 Index: devel/gb/Makefile =================================================================== --- devel/gb/Makefile +++ devel/gb/Makefile @@ -19,6 +19,8 @@ PORTDOCS= README.md +OPTIONS_DEFINE= DOCS + GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT} GO_TARGET= ./... Index: devel/geany-plugin-geanypy/Makefile =================================================================== --- devel/geany-plugin-geanypy/Makefile +++ devel/geany-plugin-geanypy/Makefile @@ -10,5 +10,7 @@ USES= python:2.7 USE_GNOME= pygtk2 +OPTIONS_DEFINE= DOCS + .include "${.CURDIR}/../geany-plugins/files/Makefile.common" .include Index: devel/geany-plugin-git-changebar/Makefile =================================================================== --- devel/geany-plugin-git-changebar/Makefile +++ devel/geany-plugin-git-changebar/Makefile @@ -9,5 +9,7 @@ LIB_DEPENDS= libgit2.so:devel/libgit2 +OPTIONS_DEFINE= DOCS + .include "${.CURDIR}/../geany-plugins/files/Makefile.common" .include Index: devel/geany-plugin-markdown/Makefile =================================================================== --- devel/geany-plugin-markdown/Makefile +++ devel/geany-plugin-markdown/Makefile @@ -10,5 +10,7 @@ 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 Index: devel/geany-plugin-projectorganizer/Makefile =================================================================== --- devel/geany-plugin-projectorganizer/Makefile +++ devel/geany-plugin-projectorganizer/Makefile @@ -7,5 +7,7 @@ MAINTAINER= madpilot@FreeBSD.org COMMENT= Geany plugin: ${${GEANY_PLUGIN}_DESC} +OPTIONS_DEFINE= DOCS + .include "${.CURDIR}/../geany-plugins/files/Makefile.common" .include Index: devel/geany-plugin-utilslib/Makefile =================================================================== --- devel/geany-plugin-utilslib/Makefile +++ devel/geany-plugin-utilslib/Makefile @@ -7,5 +7,7 @@ MAINTAINER= madpilot@FreeBSD.org COMMENT= Geany plugin: ${${GEANY_PLUGIN}_DESC} +OPTIONS_DEFINE= DOCS + .include "${.CURDIR}/../geany-plugins/files/Makefile.common" .include Index: devel/gengetopt/Makefile =================================================================== --- devel/gengetopt/Makefile +++ devel/gengetopt/Makefile @@ -29,6 +29,8 @@ 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/ Index: devel/git-cinnabar/Makefile =================================================================== --- devel/git-cinnabar/Makefile +++ devel/git-cinnabar/Makefile @@ -30,6 +30,8 @@ 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 Index: devel/git-cola/Makefile =================================================================== --- devel/git-cola/Makefile +++ devel/git-cola/Makefile @@ -25,4 +25,6 @@ MAKE_ARGS= prefix=${PREFIX} PYTHON=${PYTHON_CMD} +OPTIONS_DEFINE= DOCS + .include Index: devel/glib20-reference/bsd.gnome-reference.mk =================================================================== --- devel/glib20-reference/bsd.gnome-reference.mk +++ devel/glib20-reference/bsd.gnome-reference.mk @@ -32,6 +32,8 @@ PORTDOCS?= * +OPTIONS_DEFINE+= DOCS + .if !target(do-build) do-build: @${DO_NADA} Index: devel/gnome-builder/Makefile =================================================================== --- devel/gnome-builder/Makefile +++ devel/gnome-builder/Makefile @@ -42,4 +42,6 @@ org.gnome.builder.experimental.gschema.xml \ org.gnome.builder.project-tree.gschema.xml +OPTIONS_DEFINE= DOCS + .include Index: devel/gprbuild/Makefile =================================================================== --- devel/gprbuild/Makefile +++ devel/gprbuild/Makefile @@ -26,7 +26,7 @@ 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 Index: devel/grumpy/Makefile =================================================================== --- devel/grumpy/Makefile +++ devel/grumpy/Makefile @@ -21,10 +21,10 @@ .include .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: Index: devel/icmake/Makefile =================================================================== --- devel/icmake/Makefile +++ devel/icmake/Makefile @@ -35,6 +35,8 @@ .include +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|find|find .|g' \ ${WRKSRC}/icm_prepare Index: devel/json-glib/Makefile =================================================================== --- devel/json-glib/Makefile +++ devel/json-glib/Makefile @@ -11,7 +11,7 @@ LICENSE= LGPL21 -OPTIONS_DEFINE= GIR +OPTIONS_DEFINE= GIR DOCS OPTIONS_DEFAULT=GIR OPTIONS_SUB= yes GIR_DESC= Build introspection data Index: devel/judy/Makefile =================================================================== --- devel/judy/Makefile +++ devel/judy/Makefile @@ -25,6 +25,8 @@ PORTDOCS= COPYRIGHT README *.htm +OPTIONS_DEFINE= DOCS + .include .if ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 || ${ARCH} == mips || ${ARCH} == powerpc Index: devel/kapptemplate/Makefile =================================================================== --- devel/kapptemplate/Makefile +++ devel/kapptemplate/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui network testlib widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: devel/kcachegrind/Makefile =================================================================== --- devel/kcachegrind/Makefile +++ devel/kcachegrind/Makefile @@ -18,7 +18,7 @@ converters/memprof2calltree \ converters/op2calltree converters/dprof2calltree -OPTIONS_DEFINE= DOT VALGRIND +OPTIONS_DEFINE= DOT VALGRIND DOCS DOT_DESC= Use GraphViz/dot to render call graphs DOT_RUN_DEPENDS= dot:graphics/graphviz Index: devel/kde-dev-scripts/Makefile =================================================================== --- devel/kde-dev-scripts/Makefile +++ devel/kde-dev-scripts/Makefile @@ -26,4 +26,6 @@ kde_generate_export_header \ zonetab2pot.py +OPTIONS_DEFINE= DOCS + .include Index: devel/kde-dev-utils/Makefile =================================================================== --- devel/kde-dev-utils/Makefile +++ devel/kde-dev-utils/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus designer gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: devel/kdesdk-thumbnailers/Makefile =================================================================== --- devel/kdesdk-thumbnailers/Makefile +++ devel/kdesdk-thumbnailers/Makefile @@ -13,4 +13,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: devel/kio-extras/Makefile =================================================================== --- devel/kio-extras/Makefile +++ devel/kio-extras/Makefile @@ -23,7 +23,7 @@ buildtools_build qmake_build SHEBANG_FILES= info/kde-info2html -OPTIONS_DEFINE= SAMBA MTP EXR EXIV SLP SSH WEBENGINE TAGLIB +OPTIONS_DEFINE= SAMBA MTP EXR EXIV SLP SSH WEBENGINE TAGLIB DOCS OPTIONS_DEFAULT=SAMBA MTP EXR EXIV SLP SSH WEBENGINE TAGLIB OPTIONS_SUB= yes Index: devel/libcutl/Makefile =================================================================== --- devel/libcutl/Makefile +++ devel/libcutl/Makefile @@ -33,4 +33,6 @@ --with-external-expat \ --with-pkgconfigdir=${PREFIX}/libdata/pkgconfig +OPTIONS_DEFINE= DOCS + .include Index: devel/libdwarf/Makefile =================================================================== --- devel/libdwarf/Makefile +++ devel/libdwarf/Makefile @@ -27,6 +27,8 @@ 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 Index: devel/libgit2-glib/Makefile =================================================================== --- devel/libgit2-glib/Makefile +++ devel/libgit2-glib/Makefile @@ -28,4 +28,6 @@ CONFIGURE_ARGS= --disable-python INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + .include Index: devel/libiqxmlrpc/Makefile =================================================================== --- devel/libiqxmlrpc/Makefile +++ devel/libiqxmlrpc/Makefile @@ -14,9 +14,9 @@ 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 Index: devel/libosmo-netif/Makefile =================================================================== --- devel/libosmo-netif/Makefile +++ devel/libosmo-netif/Makefile @@ -22,11 +22,12 @@ 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 Index: devel/libosmo-sccp/Makefile =================================================================== --- devel/libosmo-sccp/Makefile +++ devel/libosmo-sccp/Makefile @@ -21,6 +21,8 @@ USES= autoreconf libtool pathfix pkgconfig GNU_CONFIGURE= yes +OPTIONS_DEFINE= DOCS + post-patch: ${ECHO_CMD} ${PORTVERSION} > ${WRKSRC}/.tarball-version Index: devel/libosmocore/Makefile =================================================================== --- devel/libosmocore/Makefile +++ devel/libosmocore/Makefile @@ -29,7 +29,9 @@ 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 Index: devel/libqb/Makefile =================================================================== --- devel/libqb/Makefile +++ devel/libqb/Makefile @@ -31,9 +31,10 @@ 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: Index: devel/libxo/Makefile =================================================================== --- devel/libxo/Makefile +++ devel/libxo/Makefile @@ -17,4 +17,6 @@ INSTALL_TARGET= install-strip USE_PERL5= run +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c6-dbus-glib/Makefile =================================================================== --- devel/linux-c6-dbus-glib/Makefile +++ devel/linux-c6-dbus-glib/Makefile @@ -16,4 +16,6 @@ USE_LINUX= dbuslibs expat USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c6-libglade2/Makefile =================================================================== --- devel/linux-c6-libglade2/Makefile +++ devel/linux-c6-libglade2/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c6-libpciaccess/Makefile =================================================================== --- devel/linux-c6-libpciaccess/Makefile +++ devel/linux-c6-libpciaccess/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c6-libsigc++20/Makefile =================================================================== --- devel/linux-c6-libsigc++20/Makefile +++ devel/linux-c6-libsigc++20/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c6-libsoup/Makefile =================================================================== --- devel/linux-c6-libsoup/Makefile +++ devel/linux-c6-libsoup/Makefile @@ -13,4 +13,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c6-libthai/Makefile =================================================================== --- devel/linux-c6-libthai/Makefile +++ devel/linux-c6-libthai/Makefile @@ -14,4 +14,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c6-qt47/Makefile =================================================================== --- devel/linux-c6-qt47/Makefile +++ devel/linux-c6-qt47/Makefile @@ -19,4 +19,6 @@ USE_LINUX= fontconfig png dbuslibs sqlite3 openssl USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c6-sdl12/Makefile =================================================================== --- devel/linux-c6-sdl12/Makefile +++ devel/linux-c6-sdl12/Makefile @@ -19,4 +19,6 @@ USE_LINUX= xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-dbus-glib/Makefile =================================================================== --- devel/linux-c7-dbus-glib/Makefile +++ devel/linux-c7-dbus-glib/Makefile @@ -18,4 +18,6 @@ USE_LINUX= dbuslibs expat USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-icu/Makefile =================================================================== --- devel/linux-c7-icu/Makefile +++ devel/linux-c7-icu/Makefile @@ -17,4 +17,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-libglade2/Makefile =================================================================== --- devel/linux-c7-libglade2/Makefile +++ devel/linux-c7-libglade2/Makefile @@ -20,4 +20,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-libpciaccess/Makefile =================================================================== --- devel/linux-c7-libpciaccess/Makefile +++ devel/linux-c7-libpciaccess/Makefile @@ -17,4 +17,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-libsigc++20/Makefile =================================================================== --- devel/linux-c7-libsigc++20/Makefile +++ devel/linux-c7-libsigc++20/Makefile @@ -16,4 +16,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-libthai/Makefile =================================================================== --- devel/linux-c7-libthai/Makefile +++ devel/linux-c7-libthai/Makefile @@ -17,4 +17,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-qt/Makefile =================================================================== --- devel/linux-c7-qt/Makefile +++ devel/linux-c7-qt/Makefile @@ -19,4 +19,6 @@ USE_LINUX= fontconfig png dbuslibs sqlite3 openssl USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-sdl12/Makefile =================================================================== --- devel/linux-c7-sdl12/Makefile +++ devel/linux-c7-sdl12/Makefile @@ -21,4 +21,6 @@ USE_LINUX= xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/linux-c7-sdl20/Makefile =================================================================== --- devel/linux-c7-sdl20/Makefile +++ devel/linux-c7-sdl20/Makefile @@ -21,4 +21,6 @@ USE_LINUX= xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: devel/lmdbg/Makefile =================================================================== --- devel/lmdbg/Makefile +++ devel/lmdbg/Makefile @@ -28,6 +28,8 @@ INSTALL_TARGET= install install-doc +OPTIONS_DEFINE= DOCS + do-build: ${SETENV} ${MKCMAKE_ENV} ${MKCMAKE} -C ${WRKSRC} Index: devel/lokalize/Makefile =================================================================== --- devel/lokalize/Makefile +++ devel/lokalize/Makefile @@ -17,4 +17,6 @@ USE_QT= core dbus gui network script sql widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: devel/lua-sysctl/Makefile =================================================================== --- devel/lua-sysctl/Makefile +++ devel/lua-sysctl/Makefile @@ -19,6 +19,8 @@ GH_ACCOUNT= kAworu GH_PROJECT= lua-${PORTNAME} +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -e "s/5.1/${LUA_VER}/g" ${WRKSRC}/Makefile Index: devel/msp430-debug-stack/Makefile =================================================================== --- devel/msp430-debug-stack/Makefile +++ devel/msp430-debug-stack/Makefile @@ -36,6 +36,8 @@ REINPLACE_ARGS= -i "" +OPTIONS_DEFINE= DOCS + post-patch: @${FIND} ${WRKSRC}/DLL430_v3/src/TI/DLL430 \ \( -name '*.cpp' -o -name '*.h' \) -print0 | ${XARGS} -0 \ Index: devel/p5-Object-Pluggable/Makefile =================================================================== --- devel/p5-Object-Pluggable/Makefile +++ devel/p5-Object-Pluggable/Makefile @@ -21,7 +21,9 @@ USES= perl5 USE_PERL5= configure -post-install: +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}/ Index: devel/pear/Makefile =================================================================== --- devel/pear/Makefile +++ devel/pear/Makefile @@ -22,6 +22,8 @@ PEARDIR= ${PREFIX}/share/pear +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \ -e "s|%%BUNDLEDIR%%|${WRKSRC}/go-pear-bundle|" \ Index: devel/pkgconf/Makefile =================================================================== --- devel/pkgconf/Makefile +++ devel/pkgconf/Makefile @@ -27,6 +27,8 @@ --with-system-includedir=/usr/include MAKE_ARGS= MANDIR="${MAN1PREFIX}/man/man1" +OPTIONS_DEFINE= DOCS + post-install: ${LN} -sf pkgconf ${STAGEDIR}${PREFIX}/bin/pkg-config Index: devel/poxml/Makefile =================================================================== --- devel/poxml/Makefile +++ devel/poxml/Makefile @@ -12,4 +12,6 @@ USE_QT= core xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: devel/protobuf-c/Makefile =================================================================== --- devel/protobuf-c/Makefile +++ devel/protobuf-c/Makefile @@ -22,13 +22,14 @@ 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 Index: devel/pth/Makefile =================================================================== --- devel/pth/Makefile +++ devel/pth/Makefile @@ -30,10 +30,10 @@ .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: Index: devel/pure-stllib/Makefile =================================================================== --- devel/pure-stllib/Makefile +++ devel/pure-stllib/Makefile @@ -27,6 +27,8 @@ PORTEXAMPLES= * +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS ?=|' \ ${WRKSRC}/Makefile ${WRKSRC}/pure-stlmap/Makefile ${WRKSRC}/pure-stlvec/Makefile Index: devel/py-Jinja2-doc/Makefile =================================================================== --- devel/py-Jinja2-doc/Makefile +++ devel/py-Jinja2-doc/Makefile @@ -11,7 +11,7 @@ MASTERDIR= ${.CURDIR}/../py-Jinja2 -OPTIONS_DEFINE= +OPTIONS_DEFINE= DOCS OPTIONS_DEFAULT= .include "${MASTERDIR}/Makefile" Index: devel/py-crcmod/Makefile =================================================================== --- devel/py-crcmod/Makefile +++ devel/py-crcmod/Makefile @@ -21,6 +21,8 @@ DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/changelog ${STAGEDIR}${DOCSDIR} Index: devel/py-kid/Makefile =================================================================== --- devel/py-kid/Makefile +++ devel/py-kid/Makefile @@ -16,7 +16,7 @@ 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} Index: devel/py-pymtbl/Makefile =================================================================== --- devel/py-pymtbl/Makefile +++ devel/py-pymtbl/Makefile @@ -24,6 +24,8 @@ CPPFLAGS+= -I${LOCALBASE}/include +OPTIONS_DEFINE= EXAMPLES + post-install: ${STRIP_CMD} ${STAGEDIR}/${PYTHON_SITELIBDIR}/mtbl.so ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} Index: devel/py-pyro/Makefile =================================================================== --- devel/py-pyro/Makefile +++ devel/py-pyro/Makefile @@ -23,6 +23,8 @@ PORTDOCS= * PORTEXAMPLES= * +OPTIONS_DEFINE= DOCS EXAMPLES + .include .if ${PYTHON_REL} < 3400 Index: devel/py-uvloop/Makefile =================================================================== --- devel/py-uvloop/Makefile +++ devel/py-uvloop/Makefile @@ -20,14 +20,15 @@ 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: Index: devel/pydbus-common/Makefile =================================================================== --- devel/pydbus-common/Makefile +++ devel/pydbus-common/Makefile @@ -31,8 +31,9 @@ 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 Index: devel/quickcheck++/Makefile =================================================================== --- devel/quickcheck++/Makefile +++ devel/quickcheck++/Makefile @@ -20,7 +20,7 @@ PORTDOCS= COPYRIGHT README PORTEXAMPLES= examples.cc -OPTIONS_DEFINE= DOCS DOXYGEN +OPTIONS_DEFINE= DOCS DOXYGEN EXAMPLES DOXYGEN_DESC= Build documentation with doxygen .include Index: devel/rebar/Makefile =================================================================== --- devel/rebar/Makefile +++ devel/rebar/Makefile @@ -14,7 +14,7 @@ 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 Index: devel/rebar3/Makefile =================================================================== --- devel/rebar3/Makefile +++ devel/rebar3/Makefile @@ -20,7 +20,7 @@ ${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 Index: devel/relx/Makefile =================================================================== --- devel/relx/Makefile +++ devel/relx/Makefile @@ -39,6 +39,8 @@ 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 @@ @${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 @@ ${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} Index: devel/shell-toolbox/Makefile =================================================================== --- devel/shell-toolbox/Makefile +++ devel/shell-toolbox/Makefile @@ -16,4 +16,6 @@ USE_GITHUB= yes GH_ACCOUNT= kusalananda +OPTIONS_DEFINE= DOCS + .include Index: devel/smack/Makefile =================================================================== --- devel/smack/Makefile +++ devel/smack/Makefile @@ -28,11 +28,11 @@ .include .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 Index: devel/statcvs/Makefile =================================================================== --- devel/statcvs/Makefile +++ devel/statcvs/Makefile @@ -39,9 +39,9 @@ .include .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: Index: devel/stlink/Makefile =================================================================== --- devel/stlink/Makefile +++ devel/stlink/Makefile @@ -10,7 +10,7 @@ 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 Index: devel/tcllib/Makefile =================================================================== --- devel/tcllib/Makefile +++ devel/tcllib/Makefile @@ -23,7 +23,10 @@ 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 \ Index: devel/umbrello/Makefile =================================================================== --- devel/umbrello/Makefile +++ devel/umbrello/Makefile @@ -22,6 +22,8 @@ # Build the KDE Frameworks 5 based version. CMAKE_BOOL= BUILD_KF5 +OPTIONS_DEFINE= DOCS + post-patch: # The CMakeFile sets BUILD_UNITTESTS to 1, not respecting the # value passed via CMAKE_ARGS. Index: devel/zookeeper/Makefile =================================================================== --- devel/zookeeper/Makefile +++ devel/zookeeper/Makefile @@ -48,6 +48,8 @@ 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 Index: dns/bind9-devel/Makefile =================================================================== --- dns/bind9-devel/Makefile +++ dns/bind9-devel/Makefile @@ -75,12 +75,12 @@ 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 Index: dns/bind912/Makefile =================================================================== --- dns/bind912/Makefile +++ dns/bind912/Makefile @@ -62,12 +62,12 @@ 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 Index: dns/bind913/Makefile =================================================================== --- dns/bind913/Makefile +++ dns/bind913/Makefile @@ -61,12 +61,12 @@ 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 Index: dns/ddclient/Makefile =================================================================== --- dns/ddclient/Makefile +++ dns/ddclient/Makefile @@ -23,7 +23,7 @@ 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 \ Index: dns/drool/Makefile =================================================================== --- dns/drool/Makefile +++ dns/drool/Makefile @@ -20,4 +20,6 @@ CPPFLAGS+= $$(pkg-config libev --cflags-only-I) LDFLAGS+= $$(pkg-config libev --libs-only-L) +OPTIONS_DEFINE= DOCS + .include Index: dns/dsc/Makefile =================================================================== --- dns/dsc/Makefile +++ dns/dsc/Makefile @@ -27,4 +27,6 @@ USE_RC_SUBR= dsc +OPTIONS_DEFINE= DOCS + .include Index: dns/dsp/Makefile =================================================================== --- dns/dsp/Makefile +++ dns/dsp/Makefile @@ -28,4 +28,6 @@ PERL5= configure patch shebangfix NO_ARCH= yes +OPTIONS_DEFINE= DOCS + .include Index: dns/erlang-idna/Makefile =================================================================== --- dns/erlang-idna/Makefile +++ dns/erlang-idna/Makefile @@ -18,4 +18,6 @@ ERL_BUILD_DEPS= devel/erlang-unicode_util_compat ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: dns/ironsides/Makefile =================================================================== --- dns/ironsides/Makefile +++ dns/ironsides/Makefile @@ -25,6 +25,8 @@ 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}/ Index: dns/knot-resolver/Makefile =================================================================== --- dns/knot-resolver/Makefile +++ dns/knot-resolver/Makefile @@ -33,7 +33,7 @@ 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_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 Index: dns/knot1/Makefile =================================================================== --- dns/knot1/Makefile +++ dns/knot1/Makefile @@ -39,7 +39,7 @@ 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 Index: dns/knot2/Makefile =================================================================== --- dns/knot2/Makefile +++ dns/knot2/Makefile @@ -40,7 +40,7 @@ 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 Index: dns/linux-c6-libasyncns/Makefile =================================================================== --- dns/linux-c6-libasyncns/Makefile +++ dns/linux-c6-libasyncns/Makefile @@ -14,4 +14,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: dns/linux-c7-libasyncns/Makefile =================================================================== --- dns/linux-c7-libasyncns/Makefile +++ dns/linux-c7-libasyncns/Makefile @@ -18,4 +18,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: dns/powerdns/Makefile =================================================================== --- dns/powerdns/Makefile +++ dns/powerdns/Makefile @@ -39,7 +39,7 @@ 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 Index: dns/py-namebench/Makefile =================================================================== --- dns/py-namebench/Makefile +++ dns/py-namebench/Makefile @@ -38,6 +38,8 @@ PYDISTUTILS_INSTALLARGS+= --install-data=${PREFIX}/share +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},' \ ${WRKSRC}/libnamebench/util.py Index: dns/void-zones-tools/Makefile =================================================================== --- dns/void-zones-tools/Makefile +++ dns/void-zones-tools/Makefile @@ -18,6 +18,8 @@ SUB_FILES= pkg-message +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/hosts2zones ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${PREFIX}/etc/void-zones Index: editors/kate/Makefile =================================================================== --- editors/kate/Makefile +++ editors/kate/Makefile @@ -21,4 +21,6 @@ USE_QT= core dbus gui network script sql widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: editors/kile/Makefile =================================================================== --- editors/kile/Makefile +++ editors/kile/Makefile @@ -30,4 +30,6 @@ CONFLICTS_INSTALL= kile-kde4 +OPTIONS_DEFINE= DOCS + .include Index: editors/leafpad/Makefile =================================================================== --- editors/leafpad/Makefile +++ editors/leafpad/Makefile @@ -22,6 +22,8 @@ PORTDOCS= AUTHORS COPYING ChangeLog INSTALL README +OPTIONS_DEFINE= DOCS + post-extract: @${CHMOD} a+x ${WRKSRC}/install-sh Index: editors/micro/Makefile =================================================================== --- editors/micro/Makefile +++ editors/micro/Makefile @@ -48,6 +48,8 @@ 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 \ Index: editors/pluma/Makefile =================================================================== --- editors/pluma/Makefile +++ editors/pluma/Makefile @@ -39,4 +39,6 @@ org.mate.pluma.plugins.spell.gschema.xml \ org.mate.pluma.plugins.time.gschema.xml +OPTIONS_DEFINE= DOCS + .include Index: editors/the/Makefile =================================================================== --- editors/the/Makefile +++ editors/the/Makefile @@ -21,7 +21,7 @@ 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 Index: editors/the/pkg-plist =================================================================== --- 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 @@ %%DATADIR%%/udiff.tld %%DATADIR%%/uncomm.the %%DATADIR%%/words.the -@dir %%PORTDOCS%%%%DOCSDIR%% %%PORTDOCS%%%%DOCSDIR%%/app1.html %%PORTDOCS%%%%DOCSDIR%%/app2.html %%PORTDOCS%%%%DOCSDIR%%/app3.html Index: emulators/advancemess/Makefile =================================================================== --- emulators/advancemess/Makefile +++ emulators/advancemess/Makefile @@ -32,7 +32,7 @@ MAKE_JOBS_UNSAFE= yes -OPTIONS_DEFINE= FREETYPE SLANG +OPTIONS_DEFINE= FREETYPE SLANG DOCS OPTIONS_DEFINE_i386= ASM OPTIONS_DEFAULT= FREETYPE OPTIONS_DEFAULT_i386= ASM Index: emulators/aqemu/Makefile =================================================================== --- emulators/aqemu/Makefile +++ emulators/aqemu/Makefile @@ -20,4 +20,6 @@ USE_GITHUB= yes GH_ACCOUNT= tobimensch +OPTIONS_DEFINE= DOCS + .include Index: emulators/dosbox/Makefile =================================================================== --- emulators/dosbox/Makefile +++ emulators/dosbox/Makefile @@ -27,6 +27,7 @@ "${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 Index: emulators/dynagen/Makefile =================================================================== --- emulators/dynagen/Makefile +++ emulators/dynagen/Makefile @@ -28,6 +28,8 @@ ALL_TARGET= # empty NO_ARCH= yes +OPTIONS_DEFINE= DOCS EXAMPLES + .include post-extract: Index: emulators/fs-uae-launcher/Makefile =================================================================== --- emulators/fs-uae-launcher/Makefile +++ emulators/fs-uae-launcher/Makefile @@ -16,6 +16,8 @@ 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} \ Index: emulators/fuse-utils/Makefile =================================================================== --- emulators/fuse-utils/Makefile +++ emulators/fuse-utils/Makefile @@ -24,6 +24,8 @@ 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} Index: emulators/fuse/Makefile =================================================================== --- emulators/fuse/Makefile +++ emulators/fuse/Makefile @@ -24,7 +24,7 @@ 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 Index: emulators/libspectrum/Makefile =================================================================== --- emulators/libspectrum/Makefile +++ emulators/libspectrum/Makefile @@ -21,7 +21,9 @@ 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} Index: emulators/mame/Makefile =================================================================== --- emulators/mame/Makefile +++ emulators/mame/Makefile @@ -62,7 +62,7 @@ .else EMULATOR= ${MSUBTARGET} .endif -PLIST_SUB= EMULATOR=${EMULATOR} +PLIST_SUB+= EMULATOR=${EMULATOR} post-patch: @${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/dirent.h Index: emulators/mgba/Makefile =================================================================== --- emulators/mgba/Makefile +++ emulators/mgba/Makefile @@ -39,7 +39,7 @@ -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 Index: emulators/mtools/Makefile =================================================================== --- emulators/mtools/Makefile +++ emulators/mtools/Makefile @@ -38,10 +38,10 @@ .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 Index: emulators/mupen64plus-core/Makefile =================================================================== --- emulators/mupen64plus-core/Makefile +++ emulators/mupen64plus-core/Makefile @@ -24,5 +24,7 @@ MAKE_ENV+= OPTFLAGS="${OPTFLAGS}" +OPTIONS_DEFINE= DOCS + .include "${.CURDIR}/../mupen64plus-core/Makefile.common" .include Index: emulators/nestopia/Makefile =================================================================== --- emulators/nestopia/Makefile +++ emulators/nestopia/Makefile @@ -24,4 +24,6 @@ USE_SDL= sdl2 INSTALLS_ICONS= yes +OPTIONS_DEFINE= DOCS + .include Index: emulators/pcsxr/Makefile =================================================================== --- emulators/pcsxr/Makefile +++ emulators/pcsxr/Makefile @@ -51,7 +51,7 @@ # 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 Index: emulators/qemu-cheri/Makefile =================================================================== --- emulators/qemu-cheri/Makefile +++ emulators/qemu-cheri/Makefile @@ -28,6 +28,8 @@ 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+= \ Index: ftp/bftpd/Makefile =================================================================== --- ftp/bftpd/Makefile +++ ftp/bftpd/Makefile @@ -21,6 +21,8 @@ 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 Index: ftp/linux-c6-curl/Makefile =================================================================== --- ftp/linux-c6-curl/Makefile +++ ftp/linux-c6-curl/Makefile @@ -17,4 +17,6 @@ USE_LINUX= libssh2 nspr nss openldap USE_LINUX_RPM= nolib +OPTIONS_DEFINE= DOCS + .include Index: ftp/linux-c7-curl/Makefile =================================================================== --- ftp/linux-c7-curl/Makefile +++ ftp/linux-c7-curl/Makefile @@ -21,4 +21,6 @@ USE_LINUX= libssh2 nspr nss openldap USE_LINUX_RPM= nolib +OPTIONS_DEFINE= DOCS + .include Index: ftp/py-pyftpdlib/Makefile =================================================================== --- ftp/py-pyftpdlib/Makefile +++ ftp/py-pyftpdlib/Makefile @@ -16,7 +16,7 @@ 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) Index: games/afternoonstalker/Makefile =================================================================== --- games/afternoonstalker/Makefile +++ games/afternoonstalker/Makefile @@ -24,6 +24,8 @@ 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 Index: games/aop/Makefile =================================================================== --- games/aop/Makefile +++ games/aop/Makefile @@ -22,6 +22,8 @@ PORTDOCS= README +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${STAGEDIR}${PREFIX}|g' \ ${WRKSRC}/Makefile Index: games/battletanks/Makefile =================================================================== --- games/battletanks/Makefile +++ games/battletanks/Makefile @@ -32,6 +32,8 @@ 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) Index: games/beret/Makefile =================================================================== --- games/beret/Makefile +++ games/beret/Makefile @@ -31,6 +31,8 @@ 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 Index: games/blinken/Makefile =================================================================== --- games/blinken/Makefile +++ games/blinken/Makefile @@ -13,4 +13,6 @@ USE_QT= core dbus gui phonon4 svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: games/bomber/Makefile =================================================================== --- games/bomber/Makefile +++ games/bomber/Makefile @@ -13,5 +13,7 @@ USE_QT= core dbus gui network widgets phonon4 qml quick xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/bovo/Makefile =================================================================== --- games/bovo/Makefile +++ games/bovo/Makefile @@ -13,5 +13,7 @@ USE_QT= concurrent core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/burgerspace/Makefile =================================================================== --- games/burgerspace/Makefile +++ games/burgerspace/Makefile @@ -24,6 +24,8 @@ 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 Index: games/capitalism/Makefile =================================================================== --- games/capitalism/Makefile +++ games/capitalism/Makefile @@ -36,7 +36,7 @@ DESKTOP_ENTRIES="Capitalism" "" "${PORTNAME}" \ "${PORTNAME}" "Game;BoardGame;" "" -OPTIONS_DEFINE= NLS +OPTIONS_DEFINE= NLS DOCS OPTIONS_SUB= yes NLS_CONFIGURE_ENABLE= nls Index: games/connectfive/Makefile =================================================================== --- games/connectfive/Makefile +++ games/connectfive/Makefile @@ -28,7 +28,7 @@ PORTDOCS= * PORTDATA= * -.include +OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|' ${WRKSRC}/Makefile.linux Index: games/evilfinder/Makefile =================================================================== --- games/evilfinder/Makefile +++ games/evilfinder/Makefile @@ -25,7 +25,7 @@ PORTDATA= evilnumbers.dat PORTDOCS= README -OPTIONS_DEFINE= WRAPPER +OPTIONS_DEFINE= DOCS WRAPPER WRAPPER_DESC= Evilfinder local wrapper OPTIONS_DEFAULT= WRAPPER Index: games/formido/Makefile =================================================================== --- games/formido/Makefile +++ games/formido/Makefile @@ -23,6 +23,8 @@ PORTDATA= * PORTDOCS= * +OPTIONS_DEFINE= DOCS + pre-build: @${MKDIR} ${WRKSRC}/obj Index: games/freeblocks/Makefile =================================================================== --- games/freeblocks/Makefile +++ games/freeblocks/Makefile @@ -21,7 +21,7 @@ PORTDOCS= * -OPTIONS_DEFINE= HALF_GFX +OPTIONS_DEFINE= HALF_GFX DOCS HALF_GFX_DESC= Use 320x240 graphics HALF_GFX_CMAKE_ON= -DHALF_GFX=ON Index: games/freedroidrpg/Makefile =================================================================== --- games/freedroidrpg/Makefile +++ games/freedroidrpg/Makefile @@ -30,7 +30,7 @@ PORTDATA= * PORTDOCS= * -OPTIONS_DEFINE= NLS BACKTRACE OPENGL SOUND +OPTIONS_DEFINE= NLS BACKTRACE OPENGL SOUND DOCS OPTIONS_DEFAULT=BACKTRACE OPENGL SOUND OPTIONS_SUB= yes Index: games/garith/Makefile =================================================================== --- games/garith/Makefile +++ games/garith/Makefile @@ -18,6 +18,8 @@ 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 Index: games/goldencheetah/Makefile =================================================================== --- games/goldencheetah/Makefile +++ games/goldencheetah/Makefile @@ -33,6 +33,8 @@ 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 Index: games/granatier/Makefile =================================================================== --- games/granatier/Makefile +++ games/granatier/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/impossible_mission_puzzle/Makefile =================================================================== --- games/impossible_mission_puzzle/Makefile +++ games/impossible_mission_puzzle/Makefile @@ -29,6 +29,8 @@ 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 Index: games/jchessboard/Makefile =================================================================== --- games/jchessboard/Makefile +++ games/jchessboard/Makefile @@ -31,6 +31,8 @@ JARFILE= JChessBoard.jar +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} Index: games/jfsw/Makefile =================================================================== --- games/jfsw/Makefile +++ games/jfsw/Makefile @@ -43,6 +43,8 @@ PORTDOCS= readme.txt releasenotes.html +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's|/usr/X11R6|${LOCALBASE}|' \ ${WRKSRC}/jfbuild/Makefile Index: games/joequake/Makefile =================================================================== --- games/joequake/Makefile +++ games/joequake/Makefile @@ -27,7 +27,7 @@ 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) Index: games/kajongg/Makefile =================================================================== --- games/kajongg/Makefile +++ games/kajongg/Makefile @@ -18,5 +18,7 @@ USE_QT= core gui svg widgets \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kanagram/Makefile =================================================================== --- games/kanagram/Makefile +++ games/kanagram/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network opengl qml quick speech svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: games/kapman/Makefile =================================================================== --- games/kapman/Makefile +++ games/kapman/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/katomic/Makefile =================================================================== --- games/katomic/Makefile +++ games/katomic/Makefile @@ -14,5 +14,7 @@ buildtools_build qmake_build SHEBANG_FILES= katomic-levelset-upd.pl +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kblackbox/Makefile =================================================================== --- games/kblackbox/Makefile +++ games/kblackbox/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kblocks/Makefile =================================================================== --- games/kblocks/Makefile +++ games/kblocks/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network phonon4 qml quick svg testlib widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kbounce/Makefile =================================================================== --- games/kbounce/Makefile +++ games/kbounce/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network phonon4 qml quick svg testlib widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kbreakout/Makefile =================================================================== --- games/kbreakout/Makefile +++ games/kbreakout/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kdiamond/Makefile =================================================================== --- games/kdiamond/Makefile +++ games/kdiamond/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kfourinline/Makefile =================================================================== --- games/kfourinline/Makefile +++ games/kfourinline/Makefile @@ -15,5 +15,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kgoldrunner/Makefile =================================================================== --- games/kgoldrunner/Makefile +++ games/kgoldrunner/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/khangman/Makefile =================================================================== --- games/khangman/Makefile +++ games/khangman/Makefile @@ -15,4 +15,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: games/kigo/Makefile =================================================================== --- games/kigo/Makefile +++ games/kigo/Makefile @@ -15,5 +15,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/killbots/Makefile =================================================================== --- games/killbots/Makefile +++ games/killbots/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kiriki/Makefile =================================================================== --- games/kiriki/Makefile +++ games/kiriki/Makefile @@ -13,5 +13,7 @@ USE_QT= core dbus gui network printsupport qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kjumpingcube/Makefile =================================================================== --- games/kjumpingcube/Makefile +++ games/kjumpingcube/Makefile @@ -15,5 +15,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/klickety/Makefile =================================================================== --- games/klickety/Makefile +++ games/klickety/Makefile @@ -16,5 +16,7 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/klines/Makefile =================================================================== --- games/klines/Makefile +++ games/klines/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kmahjongg/Makefile =================================================================== --- games/kmahjongg/Makefile +++ games/kmahjongg/Makefile @@ -16,5 +16,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kmines/Makefile =================================================================== --- games/kmines/Makefile +++ games/kmines/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/knavalbattle/Makefile =================================================================== --- games/knavalbattle/Makefile +++ games/knavalbattle/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/knetwalk/Makefile =================================================================== --- games/knetwalk/Makefile +++ games/knetwalk/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kolf/Makefile =================================================================== --- games/kolf/Makefile +++ games/kolf/Makefile @@ -19,5 +19,7 @@ USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kollision/Makefile =================================================================== --- games/kollision/Makefile +++ games/kollision/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network phonon4 qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/konquest/Makefile =================================================================== --- games/konquest/Makefile +++ games/konquest/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kpat/Makefile =================================================================== --- games/kpat/Makefile +++ games/kpat/Makefile @@ -17,5 +17,7 @@ USE_QT= core dbus gui network phonon4 qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kreversi/Makefile =================================================================== --- games/kreversi/Makefile +++ games/kreversi/Makefile @@ -15,5 +15,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kshisen/Makefile =================================================================== --- games/kshisen/Makefile +++ games/kshisen/Makefile @@ -16,5 +16,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/ksirk/Makefile =================================================================== --- games/ksirk/Makefile +++ games/ksirk/Makefile @@ -17,5 +17,7 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/ksnakeduel/Makefile =================================================================== --- games/ksnakeduel/Makefile +++ games/ksnakeduel/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kspaceduel/Makefile =================================================================== --- games/kspaceduel/Makefile +++ games/kspaceduel/Makefile @@ -13,5 +13,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/ksquares/Makefile =================================================================== --- games/ksquares/Makefile +++ games/ksquares/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/ksudoku/Makefile =================================================================== --- games/ksudoku/Makefile +++ games/ksudoku/Makefile @@ -16,5 +16,7 @@ svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/ktuberling/Makefile =================================================================== --- games/ktuberling/Makefile +++ games/ktuberling/Makefile @@ -18,5 +18,7 @@ quick svg testlib widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/kubrick/Makefile =================================================================== --- games/kubrick/Makefile +++ games/kubrick/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network opengl qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/libkdegames/Makefile =================================================================== --- games/libkdegames/Makefile +++ games/libkdegames/Makefile @@ -23,4 +23,6 @@ PLIST_SUB+= SHLIB_VER="${SHLIB_VER}" \ SHLIB_SHVER="${SHLIB_VER:R:R}" +OPTIONS_DEFINE= DOCS + .include Index: games/libkmahjongg/Makefile =================================================================== --- games/libkmahjongg/Makefile +++ games/libkmahjongg/Makefile @@ -13,4 +13,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: games/lskat/Makefile =================================================================== --- games/lskat/Makefile +++ games/lskat/Makefile @@ -13,5 +13,7 @@ USE_QT= core dbus gui network qml quick svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/mangband/Makefile =================================================================== --- games/mangband/Makefile +++ games/mangband/Makefile @@ -19,7 +19,7 @@ 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 Index: games/mirrormagic/Makefile =================================================================== --- games/mirrormagic/Makefile +++ games/mirrormagic/Makefile @@ -29,7 +29,7 @@ "Game;LogicGame;" \ "" -OPTIONS_DEFINE= SDL +OPTIONS_DEFINE= SDL DOCS OPTIONS_DEFAULT=SDL SDL_USE= SDL=image,mixer,sdl Index: games/netpanzer/Makefile =================================================================== --- games/netpanzer/Makefile +++ games/netpanzer/Makefile @@ -28,6 +28,8 @@ PORTDOCS= * PORTDATA= * +OPTIONS_DEFINE= DOCS + post-configure: ${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/SConstruct Index: games/ninix-aya/Makefile =================================================================== --- games/ninix-aya/Makefile +++ games/ninix-aya/Makefile @@ -24,4 +24,6 @@ USES= gettext tar:tgz USE_RUBY= yes +OPTIONS_DEFINE= DOCS + .include Index: games/openalchemist/Makefile =================================================================== --- games/openalchemist/Makefile +++ games/openalchemist/Makefile @@ -33,6 +33,8 @@ 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 Index: games/openbor/Makefile =================================================================== --- games/openbor/Makefile +++ games/openbor/Makefile @@ -63,7 +63,7 @@ "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 Index: games/openttd/Makefile =================================================================== --- games/openttd/Makefile +++ games/openttd/Makefile @@ -42,6 +42,8 @@ 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 Index: games/palapeli/Makefile =================================================================== --- games/palapeli/Makefile +++ games/palapeli/Makefile @@ -15,5 +15,7 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/palomino/Makefile =================================================================== --- games/palomino/Makefile +++ games/palomino/Makefile @@ -35,7 +35,7 @@ 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 Index: games/picmi/Makefile =================================================================== --- games/picmi/Makefile +++ games/picmi/Makefile @@ -14,5 +14,7 @@ USE_QT= core dbus gui network qml quick svg testlib widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include <${.CURDIR}/../kdegames/Makefile.common> .include Index: games/plutocracy/Makefile =================================================================== --- games/plutocracy/Makefile +++ games/plutocracy/Makefile @@ -28,6 +28,8 @@ PORTDOCS= AUTHORS README PORTDATA= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|span font|span font_desc|' \ ${WRKSRC}/src/render/r_assets.c Index: games/pokerth/Makefile =================================================================== --- games/pokerth/Makefile +++ games/pokerth/Makefile @@ -33,6 +33,8 @@ PORTDOCS= server_setup_howto.txt +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -E \ -e 's|/usr([a-z|/]*)|${LOCALBASE}/\1|g' \ Index: games/pongix/Makefile =================================================================== --- games/pongix/Makefile +++ games/pongix/Makefile @@ -21,6 +21,8 @@ LIBS+= -lm PORTDOCS= AUTHORS ChangeLog README +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC}/src && \ Index: games/prboom-plus/Makefile =================================================================== --- games/prboom-plus/Makefile +++ games/prboom-plus/Makefile @@ -22,7 +22,7 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-waddir=${DATADIR} -OPTIONS_DEFINE= OPENGL +OPTIONS_DEFINE= DOCS OPENGL OPTIONS_DEFAULT=OPENGL DATADIR= ${DMDIR} Index: games/pvpgn/Makefile =================================================================== --- games/pvpgn/Makefile +++ games/pvpgn/Makefile @@ -37,7 +37,7 @@ USE_RC_SUBR= bnetd -OPTIONS_DEFINE= D2 MYSQL PGSQL SQLITE3 +OPTIONS_DEFINE= D2 MYSQL PGSQL SQLITE3 DOCS OPTIONS_DEFAULT= D2 OPTIONS_SUB= yes Index: games/rnd_jue/Makefile =================================================================== --- games/rnd_jue/Makefile +++ games/rnd_jue/Makefile @@ -45,6 +45,8 @@ 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/} Index: games/sdlpop/Makefile =================================================================== --- games/sdlpop/Makefile +++ games/sdlpop/Makefile @@ -25,6 +25,8 @@ 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 Index: games/taipan/Makefile =================================================================== --- games/taipan/Makefile +++ games/taipan/Makefile @@ -16,6 +16,8 @@ PORTDOCS= README PLIST_FILES= bin/taipan +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/taipan ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DOCSDIR} Index: games/tbe/Makefile =================================================================== --- games/tbe/Makefile +++ games/tbe/Makefile @@ -24,6 +24,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's/ make/ $$(MAKE)/' \ ${WRKSRC}/Makefile Index: games/trigger-rally/Makefile =================================================================== --- games/trigger-rally/Makefile +++ games/trigger-rally/Makefile @@ -31,6 +31,8 @@ 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} Index: games/trimines/Makefile =================================================================== --- games/trimines/Makefile +++ games/trimines/Makefile @@ -24,6 +24,8 @@ "Game;LogicGame;" \ "" +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|data/|${DATADIR}/|' ${WRKSRC}/src/gfx.c Index: games/vegastrike/Makefile =================================================================== --- games/vegastrike/Makefile +++ games/vegastrike/Makefile @@ -43,7 +43,7 @@ PLIST_FILES= ${BIN_FILES} PORTDOCS= README -OPTIONS_DEFINE= MESHER +OPTIONS_DEFINE= MESHER DOCS MESHER_DESC= Enable mesher modelling tool MESHER_PLIST_FILES= bin/mesher Index: games/volleyball/Makefile =================================================================== --- games/volleyball/Makefile +++ games/volleyball/Makefile @@ -34,6 +34,8 @@ "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' \ Index: games/voxelands/Makefile =================================================================== --- games/voxelands/Makefile +++ games/voxelands/Makefile @@ -24,7 +24,7 @@ OPTIONS_SUB= yes -OPTIONS_DEFINE= NLS SOUND SQLITE3 +OPTIONS_DEFINE= NLS SOUND SQLITE3 DOCS OPTIONS_MULTI= BINARIES OPTIONS_MULTI_BINARIES= CLIENT SERVER Index: games/widelands/Makefile =================================================================== --- games/widelands/Makefile +++ games/widelands/Makefile @@ -39,6 +39,8 @@ "Game;StrategyGame;" \ "" +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/cmake/Modules/*.cmake Index: games/wmeyes/Makefile =================================================================== --- games/wmeyes/Makefile +++ games/wmeyes/Makefile @@ -16,6 +16,8 @@ PORTDOCS= README PLIST_FILES= bin/wmeyes +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|Target(|TargetNoMan(|g' ${WRKSRC}/Imakefile Index: games/xorgramana/Makefile =================================================================== --- games/xorgramana/Makefile +++ games/xorgramana/Makefile @@ -29,6 +29,8 @@ "Game;LogicGame;" \ false +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|GFX/|${DATADIR}/&|' ${WRKSRC}/icons.c Index: games/xshogi/Makefile =================================================================== --- games/xshogi/Makefile +++ games/xshogi/Makefile @@ -19,4 +19,6 @@ PORTDOCS= README.xboard BUGS PLIST_FILES= bin/xshogi man/man6/xshogi.6.gz +OPTIONS_DEFINE= DOCS + .include Index: german/BBBike/Makefile =================================================================== --- german/BBBike/Makefile +++ german/BBBike/Makefile @@ -59,7 +59,7 @@ .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: Index: german/selfhtml/Makefile =================================================================== --- german/selfhtml/Makefile +++ german/selfhtml/Makefile @@ -48,6 +48,8 @@ src \ xml +OPTIONS_DEFINE= DOCS + do-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) Index: graphics/OpenEXR/Makefile =================================================================== --- graphics/OpenEXR/Makefile +++ graphics/OpenEXR/Makefile @@ -57,7 +57,7 @@ MAJORVER= 2_2 VER= 23 -PLIST_SUB= MAJORVER=${MAJORVER} +PLIST_SUB+= MAJORVER=${MAJORVER} PLIST_SUB+= VER=${VER} post-patch: Index: graphics/bugle/Makefile =================================================================== --- graphics/bugle/Makefile +++ graphics/bugle/Makefile @@ -25,7 +25,7 @@ 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 Index: graphics/embree/Makefile =================================================================== --- graphics/embree/Makefile +++ graphics/embree/Makefile @@ -26,7 +26,7 @@ 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 Index: graphics/eom/Makefile =================================================================== --- graphics/eom/Makefile +++ graphics/eom/Makefile @@ -35,7 +35,7 @@ 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 Index: graphics/gimp-gmic-plugin/Makefile =================================================================== --- graphics/gimp-gmic-plugin/Makefile +++ graphics/gimp-gmic-plugin/Makefile @@ -20,7 +20,7 @@ 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 Index: graphics/gwenview/Makefile =================================================================== --- graphics/gwenview/Makefile +++ graphics/gwenview/Makefile @@ -25,4 +25,6 @@ buildtools_build qmake_build USE_XORG= x11 +OPTIONS_DEFINE= DOCS + .include Index: graphics/icc-profiles-adobe-cs4/Makefile =================================================================== --- graphics/icc-profiles-adobe-cs4/Makefile +++ graphics/icc-profiles-adobe-cs4/Makefile @@ -21,6 +21,8 @@ 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}) Index: graphics/kamera/Makefile =================================================================== --- graphics/kamera/Makefile +++ graphics/kamera/Makefile @@ -15,4 +15,6 @@ USE_QT= core dbus gui widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: graphics/kcolorchooser/Makefile =================================================================== --- graphics/kcolorchooser/Makefile +++ graphics/kcolorchooser/Makefile @@ -13,4 +13,6 @@ USE_QT= core dbus gui widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: graphics/kdegraphics-mobipocket/Makefile =================================================================== --- graphics/kdegraphics-mobipocket/Makefile +++ graphics/kdegraphics-mobipocket/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/kdegraphics-svgpart/Makefile =================================================================== --- graphics/kdegraphics-svgpart/Makefile +++ graphics/kdegraphics-svgpart/Makefile @@ -15,4 +15,6 @@ USE_QT= core dbus gui network svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: graphics/kdegraphics-thumbnailers/Makefile =================================================================== --- graphics/kdegraphics-thumbnailers/Makefile +++ graphics/kdegraphics-thumbnailers/Makefile @@ -13,4 +13,6 @@ USE_QT= core gui network widgets \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: graphics/kimagemapeditor/Makefile =================================================================== --- graphics/kimagemapeditor/Makefile +++ graphics/kimagemapeditor/Makefile @@ -17,4 +17,6 @@ USE_QT= core dbus gui network printsupport widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: graphics/kolourpaint/Makefile =================================================================== --- graphics/kolourpaint/Makefile +++ graphics/kolourpaint/Makefile @@ -17,4 +17,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/libboard/Makefile =================================================================== --- graphics/libboard/Makefile +++ graphics/libboard/Makefile @@ -26,7 +26,8 @@ PORTDOCS= * -OPTIONS_DEFINE= DOXYGEN EXAMPLES +OPTIONS_DEFINE= DOXYGEN EXAMPLES DOCS +DOXYGEN_IMPLIES= DOCS DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen .include Index: graphics/libgxps/Makefile =================================================================== --- graphics/libgxps/Makefile +++ graphics/libgxps/Makefile @@ -21,4 +21,6 @@ GNU_CONFIGURE= yes INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + .include Index: graphics/libkdcraw/Makefile =================================================================== --- graphics/libkdcraw/Makefile +++ graphics/libkdcraw/Makefile @@ -21,4 +21,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/libkexiv2/Makefile =================================================================== --- graphics/libkexiv2/Makefile +++ graphics/libkexiv2/Makefile @@ -15,4 +15,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/libkipi/Makefile =================================================================== --- graphics/libkipi/Makefile +++ graphics/libkipi/Makefile @@ -14,4 +14,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/libksane/Makefile =================================================================== --- graphics/libksane/Makefile +++ graphics/libksane/Makefile @@ -15,4 +15,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c6-cairo/Makefile =================================================================== --- graphics/linux-c6-cairo/Makefile +++ graphics/linux-c6-cairo/Makefile @@ -16,4 +16,6 @@ USE_LINUX= fontconfig pixman png xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c6-jpeg/Makefile =================================================================== --- graphics/linux-c6-jpeg/Makefile +++ graphics/linux-c6-jpeg/Makefile @@ -18,4 +18,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c6-png/Makefile =================================================================== --- graphics/linux-c6-png/Makefile +++ graphics/linux-c6-png/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c6-sdl_image/Makefile =================================================================== --- graphics/linux-c6-sdl_image/Makefile +++ graphics/linux-c6-sdl_image/Makefile @@ -20,4 +20,6 @@ USE_LINUX= jpeg png sdl12 tiff USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c6-sdl_ttf/Makefile =================================================================== --- graphics/linux-c6-sdl_ttf/Makefile +++ graphics/linux-c6-sdl_ttf/Makefile @@ -20,4 +20,6 @@ USE_LINUX= jpeg png sdl12 tiff USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c6-tiff/Makefile =================================================================== --- graphics/linux-c6-tiff/Makefile +++ graphics/linux-c6-tiff/Makefile @@ -18,4 +18,6 @@ USE_LINUX= jpeg USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-cairo/Makefile =================================================================== --- graphics/linux-c7-cairo/Makefile +++ graphics/linux-c7-cairo/Makefile @@ -17,4 +17,6 @@ USE_LINUX= dri fontconfig pixman png xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-dri/Makefile =================================================================== --- graphics/linux-c7-dri/Makefile +++ graphics/linux-c7-dri/Makefile @@ -30,6 +30,8 @@ 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 Index: graphics/linux-c7-graphite2/Makefile =================================================================== --- graphics/linux-c7-graphite2/Makefile +++ graphics/linux-c7-graphite2/Makefile @@ -14,4 +14,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-jasper/Makefile =================================================================== --- graphics/linux-c7-jasper/Makefile +++ graphics/linux-c7-jasper/Makefile @@ -20,4 +20,6 @@ USE_LINUX= jpeg USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-jbigkit/Makefile =================================================================== --- graphics/linux-c7-jbigkit/Makefile +++ graphics/linux-c7-jbigkit/Makefile @@ -19,4 +19,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-jpeg/Makefile =================================================================== --- graphics/linux-c7-jpeg/Makefile +++ graphics/linux-c7-jpeg/Makefile @@ -20,4 +20,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-png/Makefile =================================================================== --- graphics/linux-c7-png/Makefile +++ graphics/linux-c7-png/Makefile @@ -22,4 +22,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-sdl_image/Makefile =================================================================== --- graphics/linux-c7-sdl_image/Makefile +++ graphics/linux-c7-sdl_image/Makefile @@ -23,4 +23,6 @@ USE_LINUX= jpeg png sdl12 tiff USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-sdl_ttf/Makefile =================================================================== --- graphics/linux-c7-sdl_ttf/Makefile +++ graphics/linux-c7-sdl_ttf/Makefile @@ -23,4 +23,6 @@ USE_LINUX= jpeg png sdl12 tiff USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/linux-c7-tiff/Makefile =================================================================== --- graphics/linux-c7-tiff/Makefile +++ graphics/linux-c7-tiff/Makefile @@ -18,4 +18,6 @@ USE_LINUX= jbigkit jpeg USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: graphics/mandelbulber/Makefile =================================================================== --- graphics/mandelbulber/Makefile +++ graphics/mandelbulber/Makefile @@ -25,6 +25,8 @@ PORTDOCS= README NEWS PORTDATA= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|/usr/share/mandelbulber|${DATADIR}|' \ ${WRKSRC}/${PORTNAME}.desktop Index: graphics/mapnik/Makefile =================================================================== --- graphics/mapnik/Makefile +++ graphics/mapnik/Makefile @@ -37,7 +37,7 @@ 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 Index: graphics/okular/Makefile =================================================================== --- graphics/okular/Makefile +++ graphics/okular/Makefile @@ -34,4 +34,6 @@ svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: graphics/openjump/Makefile =================================================================== --- graphics/openjump/Makefile +++ graphics/openjump/Makefile @@ -48,6 +48,8 @@ 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 Index: graphics/optipng/Makefile =================================================================== --- graphics/optipng/Makefile +++ graphics/optipng/Makefile @@ -12,7 +12,7 @@ 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 Index: graphics/oyranos/Makefile =================================================================== --- graphics/oyranos/Makefile +++ graphics/oyranos/Makefile @@ -40,7 +40,8 @@ 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= * Index: graphics/pencil/Makefile =================================================================== --- graphics/pencil/Makefile +++ graphics/pencil/Makefile @@ -29,6 +29,8 @@ PORTDOCS= README TODO +OPTIONS_DEFINE= DOCS + post-patch: @${MKDIR} ${WRKSRC}/src/external/freebsd @${CP} ${FILESDIR}/src-external-freebsd-freebsd.cpp \ Index: graphics/piglit/Makefile =================================================================== --- graphics/piglit/Makefile +++ graphics/piglit/Makefile @@ -45,4 +45,6 @@ DATADIR= ${PREFIX}/lib/piglit PORTDATA= * +OPTIONS_DEFINE= DOCS + .include Index: graphics/pqiv/Makefile =================================================================== --- graphics/pqiv/Makefile +++ graphics/pqiv/Makefile @@ -19,6 +19,8 @@ USE_GITHUB= yes GH_ACCOUNT= phillipberndt +OPTIONS_DEFINE= DOCS + OPTIONS_SINGLE= GTK OPTIONS_SINGLE_GTK= GTK2 GTK3 Index: graphics/py-pygooglechart/Makefile =================================================================== --- graphics/py-pygooglechart/Makefile +++ graphics/py-pygooglechart/Makefile @@ -18,6 +18,8 @@ PORTEXAMPLES= * EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \ cd ${WRKSRC}/examples && \ Index: graphics/rawtherapee/Makefile =================================================================== --- graphics/rawtherapee/Makefile +++ graphics/rawtherapee/Makefile @@ -60,7 +60,7 @@ 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) Index: graphics/sdump/Makefile =================================================================== --- graphics/sdump/Makefile +++ graphics/sdump/Makefile @@ -29,6 +29,8 @@ PORTDOCS= README.markdown +OPTIONS_DEFINE= DOCS + post-build: @cd ${WRKSRC}/yaimg-sixel && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} Index: graphics/seq2gif/Makefile =================================================================== --- graphics/seq2gif/Makefile +++ graphics/seq2gif/Makefile @@ -25,6 +25,8 @@ PLIST_FILES= bin/seq2gif +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} Index: graphics/spectacle/Makefile =================================================================== --- graphics/spectacle/Makefile +++ graphics/spectacle/Makefile @@ -21,4 +21,6 @@ buildtools_build qmake_build USE_XORG= x11 xcb xext xfixes +OPTIONS_DEFINE= DOCS + .include Index: graphics/tgif/Makefile =================================================================== --- graphics/tgif/Makefile +++ graphics/tgif/Makefile @@ -32,9 +32,9 @@ .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 Index: graphics/vapoursynth-fmtconv/Makefile =================================================================== --- graphics/vapoursynth-fmtconv/Makefile +++ graphics/vapoursynth-fmtconv/Makefile @@ -33,6 +33,8 @@ PLIST_FILES= %%DATADIR%%/libfmtconv.so PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's/x86_64/&|amd64/' \ ${WRKSRC}/configure.ac Index: graphics/vapoursynth-waifu2x-w2xc/Makefile =================================================================== --- graphics/vapoursynth-waifu2x-w2xc/Makefile +++ graphics/vapoursynth-waifu2x-w2xc/Makefile @@ -36,6 +36,8 @@ PORTDATA= models PORTDOCS= *.md +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's/\*linux\*/*/' \ -e 's/-O3 //; /=.*-mfpmath/d; /-msse/d' \ Index: irc/ircd-ratbox/Makefile =================================================================== --- irc/ircd-ratbox/Makefile +++ irc/ircd-ratbox/Makefile @@ -50,7 +50,7 @@ #-- 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 Index: irc/irssi-fish/Makefile =================================================================== --- irc/irssi-fish/Makefile +++ irc/irssi-fish/Makefile @@ -27,6 +27,8 @@ 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 Index: irc/ratbox-respond/Makefile =================================================================== --- irc/ratbox-respond/Makefile +++ irc/ratbox-respond/Makefile @@ -22,6 +22,8 @@ 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 Index: irc/roxirc/Makefile =================================================================== --- irc/roxirc/Makefile +++ irc/roxirc/Makefile @@ -16,6 +16,8 @@ PLIST_FILES= bin/roxirc PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's|if \[ -x .*|${WISH} "$$0" "$$@"|' ${WRKSRC}/roxirc Index: irc/thales/Makefile =================================================================== --- irc/thales/Makefile +++ irc/thales/Makefile @@ -19,7 +19,7 @@ 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 Index: japanese/canna-server/Makefile =================================================================== --- japanese/canna-server/Makefile +++ japanese/canna-server/Makefile @@ -24,6 +24,8 @@ 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 Index: japanese/groff/Makefile =================================================================== --- japanese/groff/Makefile +++ japanese/groff/Makefile @@ -45,6 +45,8 @@ 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 Index: japanese/jvim3/Makefile =================================================================== --- japanese/jvim3/Makefile +++ japanese/jvim3/Makefile @@ -24,7 +24,7 @@ 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 Index: japanese/kiten/Makefile =================================================================== --- japanese/kiten/Makefile +++ japanese/kiten/Makefile @@ -15,4 +15,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: japanese/kon2-16dot/Makefile =================================================================== --- japanese/kon2-16dot/Makefile +++ japanese/kon2-16dot/Makefile @@ -22,6 +22,9 @@ PORTDOCS= README README.FreeBSD SUB_LIST= KON16FONT=${KON16FONT} \ KON14FONT=${KON14FONT} + +OPTIONS_DEFINE= DOCS + .include .if !defined(KONFONT) Index: japanese/kterm/Makefile =================================================================== --- japanese/kterm/Makefile +++ japanese/kterm/Makefile @@ -27,7 +27,7 @@ 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 Index: japanese/lookup/Makefile =================================================================== --- japanese/lookup/Makefile +++ japanese/lookup/Makefile @@ -23,9 +23,12 @@ 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} Index: japanese/onew/Makefile =================================================================== --- japanese/onew/Makefile +++ japanese/onew/Makefile @@ -17,7 +17,7 @@ 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 Index: japanese/plan/Makefile =================================================================== --- japanese/plan/Makefile +++ japanese/plan/Makefile @@ -17,6 +17,8 @@ PORTDOCS= plan_calEUC.ps +OPTIONS_DEFINE= DOCS + post-build: ${CAT} ${MASTERDIR}/pkg-plist >> ${WRKDIR}/PLIST Index: japanese/skkinput3/Makefile =================================================================== --- japanese/skkinput3/Makefile +++ japanese/skkinput3/Makefile @@ -31,9 +31,9 @@ .include .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} Index: java/castor/Makefile =================================================================== --- java/castor/Makefile +++ java/castor/Makefile @@ -28,6 +28,8 @@ 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} \ Index: java/jaxen/Makefile =================================================================== --- java/jaxen/Makefile +++ java/jaxen/Makefile @@ -21,6 +21,8 @@ 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} Index: java/jdk8-doc/Makefile =================================================================== --- java/jdk8-doc/Makefile +++ java/jdk8-doc/Makefile @@ -23,6 +23,8 @@ NO_ARCH= yes PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) Index: java/jdk9-doc/Makefile =================================================================== --- java/jdk9-doc/Makefile +++ java/jdk9-doc/Makefile @@ -23,6 +23,8 @@ USES= zip PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) Index: lang/alchemist.el/Makefile =================================================================== --- lang/alchemist.el/Makefile +++ lang/alchemist.el/Makefile @@ -21,6 +21,8 @@ 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 Index: lang/cint/Makefile =================================================================== --- lang/cint/Makefile +++ lang/cint/Makefile @@ -31,6 +31,8 @@ --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 Index: lang/dmd2/Makefile.bootstrap =================================================================== --- lang/dmd2/Makefile.bootstrap +++ lang/dmd2/Makefile.bootstrap @@ -23,6 +23,8 @@ WRKSRC= ${WRKDIR}/dmd2/src/${PORTNAME} .undef DEVELOPER +OPTIONS_DEFINE= DOCS + BROKEN_sparc64= Does not install: divide-by-zero error .include Index: lang/elixir-mode.el/Makefile =================================================================== --- lang/elixir-mode.el/Makefile +++ lang/elixir-mode.el/Makefile @@ -20,9 +20,13 @@ 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} Index: lang/elk/Makefile =================================================================== --- lang/elk/Makefile +++ lang/elk/Makefile @@ -24,6 +24,8 @@ CPPFLAGS+= -I${LOCALBASE}/include/libelf -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +OPTIONS_DEFINE= EXAMPLES + .include .if ${ARCH} == "amd64" Index: lang/fasm/Makefile =================================================================== --- lang/fasm/Makefile +++ lang/fasm/Makefile @@ -19,6 +19,8 @@ PORTDOCS= * WRKSRC= ${WRKDIR}/${PORTNAME} +OPTIONS_DEFINE= DOCS + .include .if ${ARCH} != "i386" Index: lang/fpc-docs/Makefile =================================================================== --- lang/fpc-docs/Makefile +++ lang/fpc-docs/Makefile @@ -21,6 +21,8 @@ rtl.pdf user.pdf SUB_FILES= pkg-message +OPTIONS_DEFINE= DOCS + do-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKDIR}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} Index: lang/gambit-c/Makefile =================================================================== --- lang/gambit-c/Makefile +++ lang/gambit-c/Makefile @@ -31,7 +31,7 @@ INFO= gambit -OPTIONS_DEFINE= GCC +OPTIONS_DEFINE= DOCS GCC OPTIONS_DEFAULT=GCC GCC_DESC= Build with GCC Index: lang/gcc48/Makefile =================================================================== --- lang/gcc48/Makefile +++ lang/gcc48/Makefile @@ -102,7 +102,7 @@ --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 \ Index: lang/gcc49/Makefile =================================================================== --- lang/gcc49/Makefile +++ lang/gcc49/Makefile @@ -102,7 +102,7 @@ --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 \ Index: lang/gcc5/Makefile =================================================================== --- lang/gcc5/Makefile +++ lang/gcc5/Makefile @@ -101,7 +101,7 @@ --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 \ Index: lang/gcc6-devel/Makefile =================================================================== --- lang/gcc6-devel/Makefile +++ lang/gcc6-devel/Makefile @@ -117,7 +117,7 @@ --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 \ Index: lang/gcc6/Makefile =================================================================== --- lang/gcc6/Makefile +++ lang/gcc6/Makefile @@ -117,7 +117,7 @@ --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 \ Index: lang/gcc7-devel/Makefile =================================================================== --- lang/gcc7-devel/Makefile +++ lang/gcc7-devel/Makefile @@ -99,7 +99,7 @@ --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 \ Index: lang/gcc7/Makefile =================================================================== --- lang/gcc7/Makefile +++ lang/gcc7/Makefile @@ -95,7 +95,7 @@ --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 \ Index: lang/gcc8-devel/Makefile =================================================================== --- lang/gcc8-devel/Makefile +++ lang/gcc8-devel/Makefile @@ -99,7 +99,7 @@ --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 \ Index: lang/kross-interpreters/Makefile =================================================================== --- lang/kross-interpreters/Makefile +++ lang/kross-interpreters/Makefile @@ -12,7 +12,7 @@ USE_QT= core gui script widgets xml \ buildtools_build qmake_build -OPTIONS_DEFINE= RUBY +OPTIONS_DEFINE= RUBY DOCS OPTIONS_SUB= yes OPTIONS_DEFAULT= ${OPTIONS_DEFINE} Index: lang/kturtle/Makefile =================================================================== --- lang/kturtle/Makefile +++ lang/kturtle/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network printsupport svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: lang/lfe/Makefile =================================================================== --- lang/lfe/Makefile +++ lang/lfe/Makefile @@ -16,6 +16,8 @@ ALL_TARGET= compile PORTDOCS= README.md +OPTIONS_DEFINE= DOCS + do-build: cd ${BUILD_WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} Index: lang/linux-c6-tcl85/Makefile =================================================================== --- lang/linux-c6-tcl85/Makefile +++ lang/linux-c6-tcl85/Makefile @@ -18,4 +18,6 @@ USE_LINUX_RPM= yes USE_LINUX_RPM_BAD_PERMS= yes +OPTIONS_DEFINE= DOCS + .include Index: lang/linux-c7-tcl85/Makefile =================================================================== --- lang/linux-c7-tcl85/Makefile +++ lang/linux-c7-tcl85/Makefile @@ -20,4 +20,6 @@ USE_LINUX_RPM= yes USE_LINUX_RPM_BAD_PERMS= yes +OPTIONS_DEFINE= DOCS + .include Index: lang/modula3/Makefile =================================================================== --- lang/modula3/Makefile +++ lang/modula3/Makefile @@ -51,6 +51,8 @@ hack/dummy \ test/test +OPTIONS_DEFINE= DOCS + .include M3BOOT_ENV= ${MAKE_ENV:C/^LDFLAGS=.*//:C/^CPPFLAGS=.*//} \ @@ -77,7 +79,7 @@ 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: Index: lang/racket/Makefile =================================================================== --- lang/racket/Makefile +++ lang/racket/Makefile @@ -44,7 +44,7 @@ REINPLACE_ARGS= -i "" USE_GNOME= cairo pango -OPTIONS_DEFINE= FUTURES +OPTIONS_DEFINE= DOCS FUTURES OPTIONS_DEFAULT=FUTURES OPTIONS_DEFINE_amd64= JIT Index: lang/smlnj/Makefile =================================================================== --- lang/smlnj/Makefile +++ lang/smlnj/Makefile @@ -57,7 +57,7 @@ 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} Index: lang/snobol4/Makefile =================================================================== --- lang/snobol4/Makefile +++ lang/snobol4/Makefile @@ -20,6 +20,8 @@ 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"/' \ Index: mail/archiveopteryx-devel/Makefile =================================================================== --- mail/archiveopteryx-devel/Makefile +++ mail/archiveopteryx-devel/Makefile @@ -42,6 +42,8 @@ JAM?= ${LOCALBASE}/bin/jam +OPTIONS_DEFINE= DOCS + .include # force Clang when on FreeBSD Index: mail/archiveopteryx/Makefile =================================================================== --- mail/archiveopteryx/Makefile +++ mail/archiveopteryx/Makefile @@ -36,6 +36,8 @@ JAM?= ${LOCALBASE}/bin/jam JAMARG+= -dx +OPTIONS_DEFINE= DOCS + .include # force Clang when on FreeBSD Index: mail/cclient/Makefile =================================================================== --- mail/cclient/Makefile +++ mail/cclient/Makefile @@ -55,7 +55,7 @@ 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 Index: mail/exim-doc-html/Makefile =================================================================== --- mail/exim-doc-html/Makefile +++ mail/exim-doc-html/Makefile @@ -24,6 +24,8 @@ 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 Index: mail/fastforward/Makefile =================================================================== --- mail/fastforward/Makefile +++ mail/fastforward/Makefile @@ -19,6 +19,8 @@ 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} Index: mail/imapfilter/Makefile =================================================================== --- mail/imapfilter/Makefile +++ mail/imapfilter/Makefile @@ -30,6 +30,8 @@ MANDIR=${MANPREFIX}/man \ LIBLUA=-llua-${LUA_VER} +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's|-ldl ||' ${WRKSRC}/src/Makefile Index: mail/muttils/Makefile =================================================================== --- mail/muttils/Makefile +++ mail/muttils/Makefile @@ -20,6 +20,8 @@ PORTEXAMPLES= * +OPTIONS_DEFINE= EXAMPLES + .include post-install: Index: mail/opendkim/Makefile =================================================================== --- mail/opendkim/Makefile +++ mail/opendkim/Makefile @@ -40,7 +40,7 @@ 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 @@ 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} Index: mail/opendmarc/Makefile =================================================================== --- mail/opendmarc/Makefile +++ mail/opendmarc/Makefile @@ -30,7 +30,7 @@ GNU_CONFIGURE= yes -OPTIONS_DEFINE= SPF +OPTIONS_DEFINE= SPF DOCS OPTIONS_DEFAULT= SPF SPF_DESC= Enable support for SPF record checking Index: mail/openemm2013/Makefile =================================================================== --- mail/openemm2013/Makefile +++ mail/openemm2013/Makefile @@ -67,6 +67,8 @@ 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} Index: mail/openemm2015/Makefile =================================================================== --- mail/openemm2015/Makefile +++ mail/openemm2015/Makefile @@ -64,6 +64,8 @@ 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} Index: mail/ovs/Makefile =================================================================== --- mail/ovs/Makefile +++ mail/ovs/Makefile @@ -35,6 +35,8 @@ PORTDOCS= README CHANGES COPYING CHANGES.old README.old +OPTIONS_DEFINE= DOCS + pre-everything:: @${ECHO_MSG} "" @${ECHO_MSG} "You may set following options:" Index: mail/panda-cclient/Makefile =================================================================== --- mail/panda-cclient/Makefile +++ mail/panda-cclient/Makefile @@ -57,7 +57,7 @@ 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 Index: mail/policyd2/Makefile =================================================================== --- mail/policyd2/Makefile +++ mail/policyd2/Makefile @@ -32,7 +32,7 @@ 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 Index: mail/postfix-policyd-sf/Makefile =================================================================== --- mail/postfix-policyd-sf/Makefile +++ mail/postfix-policyd-sf/Makefile @@ -34,6 +34,8 @@ sbin/${REALNAME} \ etc/${REALNAME}.conf.sample +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's,policyd.pid,postfix-policyd-sf.pid,' \ ${WRKSRC}/policyd.conf Index: mail/pysieved/Makefile =================================================================== --- mail/pysieved/Makefile +++ mail/pysieved/Makefile @@ -23,6 +23,8 @@ PORTDOCS= COPYING README README.Dovecot THANKS +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: ${REINPLACE_CMD} \ 's!/usr/bin/env python!${PYTHON_CMD}!' \ Index: mail/qmail-rblchk/Makefile =================================================================== --- mail/qmail-rblchk/Makefile +++ mail/qmail-rblchk/Makefile @@ -22,6 +22,8 @@ ALL_TARGET= default INSTALL_TARGET= setup +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e '/"cat/d; s|,02755|,0755|' ${WRKSRC}/hier.c Index: mail/ratelimit-policyd/Makefile =================================================================== --- mail/ratelimit-policyd/Makefile +++ mail/ratelimit-policyd/Makefile @@ -36,6 +36,8 @@ 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 Index: mail/sieve-connect/Makefile =================================================================== --- mail/sieve-connect/Makefile +++ mail/sieve-connect/Makefile @@ -30,6 +30,8 @@ PORTDOCS= ChangeLog README.md TODO +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/sieve-connect \ ${STAGEDIR}${PREFIX}/bin/sieve-connect Index: mail/slapd-cyrus/Makefile =================================================================== --- mail/slapd-cyrus/Makefile +++ mail/slapd-cyrus/Makefile @@ -28,6 +28,8 @@ 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 \ Index: mail/spmfilter-clamav/Makefile =================================================================== --- mail/spmfilter-clamav/Makefile +++ mail/spmfilter-clamav/Makefile @@ -19,7 +19,7 @@ USE_LDCONFIG= ${PREFIX}/lib/spmfilter -OPTIONS_DEFINE= DEBUG +OPTIONS_DEFINE= DEBUG DOCS DEBUG_CMAKE_ON= -DENABLE_DEBUG=TRUE Index: mail/sympa/Makefile =================================================================== --- mail/sympa/Makefile +++ mail/sympa/Makefile @@ -99,7 +99,7 @@ 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 Index: math/analitza/Makefile =================================================================== --- math/analitza/Makefile +++ math/analitza/Makefile @@ -24,4 +24,6 @@ PLIST_SUB+= SHLIB_VER="${SHLIB_VER}" \ SHLIB_SHVER="${SHLIB_VER:R:R}" +OPTIONS_DEFINE= DOCS + .include Index: math/blacs/Makefile =================================================================== --- math/blacs/Makefile +++ math/blacs/Makefile @@ -18,6 +18,8 @@ USES= fortran gmake USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include .if ! ${PORT_OPTIONS:MDOCS} Index: math/blocksolve95/Makefile =================================================================== --- math/blocksolve95/Makefile +++ math/blocksolve95/Makefile @@ -23,6 +23,7 @@ USES= fortran gmake tar:Z +OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_RADIO= BLAS OPTIONS_RADIO_BLAS= REFERENCE ATLAS OPTIONS_DEFAULT= REFERENCE Index: math/cantor/Makefile =================================================================== --- math/cantor/Makefile +++ math/cantor/Makefile @@ -24,7 +24,7 @@ buildtools_build qmake_build USE_LDCONFIG= yes -OPTIONS_DEFINE= LUAJIT MAXIMA OCTAVE R SAGE SCILAB +OPTIONS_DEFINE= LUAJIT MAXIMA OCTAVE R SAGE SCILAB DOCS OPTIONS_SUB= yes # R LUAJIT LUAJIT_DESC= Build LuaJIT backend and install LuaJIT Index: math/ccmath/Makefile =================================================================== --- math/ccmath/Makefile +++ math/ccmath/Makefile @@ -20,6 +20,8 @@ SRC_DIRS= cfit complex fft geom intg matrix roots sfunc simu sort statf \ tseries util xarm +OPTIONS_DEFINE= DOCS + .include .if ${ARCH} == "amd64" Index: math/clp/Makefile =================================================================== --- math/clp/Makefile +++ math/clp/Makefile @@ -27,7 +27,7 @@ --with-blas-lib="${BLASLIB} -L${LOCALBASE}/lib" \ --datadir=${DATADIR} -OPTIONS_DEFINE= DEBUG +OPTIONS_DEFINE= DEBUG DOCS PORTDOCS= * DEBUG_CXXFLAGS= -fomit-frame-pointer Index: math/emc2/Makefile =================================================================== --- math/emc2/Makefile +++ math/emc2/Makefile @@ -32,7 +32,7 @@ PLIST_FILES= bin/emc2 bin/prf_f3d -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES DOCS_DISTFILES= RTemc2_fr.pdf RTemc2_gb.pdf Index: math/ggobi/Makefile =================================================================== --- math/ggobi/Makefile +++ math/ggobi/Makefile @@ -26,6 +26,8 @@ ALL_TARGET= all ggobirc INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + post-build: @${REINPLACE_CMD} -e 's|plugin.la|plugin.so|g' ${WRKSRC}/ggobirc Index: math/gracetmpl/Makefile =================================================================== --- math/gracetmpl/Makefile +++ math/gracetmpl/Makefile @@ -34,6 +34,8 @@ PLIST_SUB+= PYTHON_VER=${PYTHON_VER} +OPTIONS_DEFINE= DOCS + post-extract: @${ECHO_CMD} -n > ${WRKSRC}/Makefile.defs Index: math/kalgebra/Makefile =================================================================== --- math/kalgebra/Makefile +++ math/kalgebra/Makefile @@ -20,4 +20,6 @@ svg testlib webchannel webengine widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: math/kbruch/Makefile =================================================================== --- math/kbruch/Makefile +++ math/kbruch/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui xml widgets \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: math/kcalc/Makefile =================================================================== --- math/kcalc/Makefile +++ math/kcalc/Makefile @@ -18,4 +18,6 @@ USE_QT= core dbus gui widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: math/kig/Makefile =================================================================== --- math/kig/Makefile +++ math/kig/Makefile @@ -19,4 +19,6 @@ buildtools_build qmake_build SHEBANG_FILES= pykig/pykig.py +OPTIONS_DEFINE= DOCS + .include Index: math/kmplot/Makefile =================================================================== --- math/kmplot/Makefile +++ math/kmplot/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui network printsupport svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: math/lapack95/Makefile =================================================================== --- math/lapack95/Makefile +++ math/lapack95/Makefile @@ -14,6 +14,8 @@ USES= fortran tar:tgz +OPTIONS_DEFINE= EXAMPLES + OPTIONS_RADIO= BLAS OPTIONS_RADIO_BLAS= REFERENCE ATLAS OPTIONS_DEFAULT= REFERENCE Index: math/liborigin/Makefile =================================================================== --- math/liborigin/Makefile +++ math/liborigin/Makefile @@ -23,7 +23,9 @@ PORTDOCS= * -OPTIONS_DEFINE= DOXYGEN +OPTIONS_DEFINE= DOXYGEN DOCS + +DOXYGEN_IMPLIES= DOCS DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen post-patch-DOXYGEN-off: Index: math/librsb/Makefile =================================================================== --- math/librsb/Makefile +++ math/librsb/Makefile @@ -28,6 +28,8 @@ MANUAL_PACKAGE_BUILD= Optimizes for the local machine +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -E s/sed/gsed/g ${WRKSRC}/scripts/*.sh Index: math/mpfr/Makefile =================================================================== --- math/mpfr/Makefile +++ math/mpfr/Makefile @@ -35,4 +35,6 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include Index: math/muparser/Makefile =================================================================== --- math/muparser/Makefile +++ math/muparser/Makefile @@ -23,13 +23,12 @@ # 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 Index: math/nfft/Makefile =================================================================== --- math/nfft/Makefile +++ math/nfft/Makefile @@ -21,11 +21,12 @@ 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 Index: math/pari/Makefile =================================================================== --- math/pari/Makefile +++ math/pari/Makefile @@ -29,7 +29,7 @@ --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 Index: math/ploticus/Makefile =================================================================== --- math/ploticus/Makefile +++ math/ploticus/Makefile @@ -39,6 +39,8 @@ USE_XORG= xpm .endif +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ ${BUILD_WRKSRC}/Makefile ${BUILD_WRKSRC}/mkapi Index: math/py-bitvector/Makefile =================================================================== --- math/py-bitvector/Makefile +++ math/py-bitvector/Makefile @@ -19,6 +19,8 @@ PORTDOCS= README BitVector-${PORTVERSION}.html +OPTIONS_DEFINE= DOCS + post-extract: @${RM} ${WRKSRC}/test.py Index: math/py-gato/Makefile =================================================================== --- math/py-gato/Makefile +++ math/py-gato/Makefile @@ -22,6 +22,8 @@ USES= python:2.7 USE_PYTHON= autoplist distutils +OPTIONS_DEFINE= EXAMPLES + post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for sample in *.alg *.pro *.cat Index: math/reduce-psl/Makefile =================================================================== --- math/reduce-psl/Makefile +++ math/reduce-psl/Makefile @@ -35,7 +35,7 @@ REDUCE_BINS= ${WRKSRC}/pslbuild/${TARGET_SDIR} -.include +OPTIONS_DEFINE= DOCS do-install: ${MKDIR} ${STAGEDIR}${DATADIR} Index: math/reduce/Makefile =================================================================== --- math/reduce/Makefile +++ math/reduce/Makefile @@ -44,7 +44,7 @@ REDUCE_BINS= ${WRKSRC}/cslbuild/${TARGET_SDIR} -.include +OPTIONS_DEFINE= DOCS do-install: ${MKDIR} ${STAGEDIR}${DATADIR} Index: math/rocs/Makefile =================================================================== --- math/rocs/Makefile +++ math/rocs/Makefile @@ -25,4 +25,6 @@ # _graphScene->views().at(0)->setRenderHints(QPainter::Antialiasing USE_CXXSTD= gnu++98 +OPTIONS_DEFINE= DOCS + .include Index: math/scalapack/Makefile =================================================================== --- math/scalapack/Makefile +++ math/scalapack/Makefile @@ -32,6 +32,8 @@ SUB_FILES= pkg-message PLIST_SUB= SVERSION=${SVERSION} PORTVERSION=${PORTVERSION} +OPTIONS_DEFINE= DOCS EXAMPLES + .include .if ${PORT_OPTIONS:MDOCS} Index: math/topaz/Makefile =================================================================== --- math/topaz/Makefile +++ math/topaz/Makefile @@ -19,6 +19,8 @@ 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} Index: math/xgraph/Makefile =================================================================== --- math/xgraph/Makefile +++ math/xgraph/Makefile @@ -20,6 +20,8 @@ USE_XORG= x11 xext WRKSRC= ${WRKDIR}/${PORTNAME} +OPTIONS_DEFINE= EXAMPLES + post-extract: @${SED} -ne '2,19 {s|^ \* *||;p;}' < ${WRKSRC}/copyright.h > ${WRKSRC}/COPYING Index: misc/artikulate/Makefile =================================================================== --- misc/artikulate/Makefile +++ misc/artikulate/Makefile @@ -19,4 +19,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: misc/elixir-mime/Makefile =================================================================== --- misc/elixir-mime/Makefile +++ misc/elixir-mime/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: misc/elixir-uuid/Makefile =================================================================== --- misc/elixir-uuid/Makefile +++ misc/elixir-uuid/Makefile @@ -16,4 +16,6 @@ ELIXIR_APP_NAME=uuid +OPTIONS_DEFINE= DOCS + .include Index: misc/erlang-mimerl/Makefile =================================================================== --- misc/erlang-mimerl/Makefile +++ misc/erlang-mimerl/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= benoitc +OPTIONS_DEFINE= DOCS + .include Index: misc/erlang-mimetypes/Makefile =================================================================== --- misc/erlang-mimetypes/Makefile +++ misc/erlang-mimetypes/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= spawngrid +OPTIONS_DEFINE= DOCS + .include Index: misc/gwhich/Makefile =================================================================== --- misc/gwhich/Makefile +++ misc/gwhich/Makefile @@ -17,6 +17,8 @@ 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} Index: misc/heyu2/Makefile =================================================================== --- misc/heyu2/Makefile +++ misc/heyu2/Makefile @@ -19,7 +19,7 @@ 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 Index: misc/kdeedu-data/Makefile =================================================================== --- misc/kdeedu-data/Makefile +++ misc/kdeedu-data/Makefile @@ -18,4 +18,6 @@ CMAKE_ARGS= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Core=TRUE \ -DQMAKE_EXECUTABLE:PATH=${QMAKE} +OPTIONS_DEFINE= DOCS + .include Index: misc/kgeography/Makefile =================================================================== --- misc/kgeography/Makefile +++ misc/kgeography/Makefile @@ -13,4 +13,6 @@ USE_QT= core dbus gui widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: misc/klettres/Makefile =================================================================== --- misc/klettres/Makefile +++ misc/klettres/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network phonon4 svg widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: misc/ktouch/Makefile =================================================================== --- misc/ktouch/Makefile +++ misc/ktouch/Makefile @@ -17,4 +17,6 @@ buildtools_build qmake_build USE_XORG= ice sm x11 xcb xext xkbfile +OPTIONS_DEFINE= DOCS + .include Index: misc/kwordquiz/Makefile =================================================================== --- misc/kwordquiz/Makefile +++ misc/kwordquiz/Makefile @@ -17,4 +17,6 @@ USE_QT= core dbus gui network phonon4 printsupport widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: misc/libkeduvocdocument/Makefile =================================================================== --- misc/libkeduvocdocument/Makefile +++ misc/libkeduvocdocument/Makefile @@ -12,4 +12,6 @@ USE_QT= core gui xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: misc/parley/Makefile =================================================================== --- misc/parley/Makefile +++ misc/parley/Makefile @@ -22,4 +22,6 @@ buildtools_build qmake_build USE_XORG= x11 xrender +OPTIONS_DEFINE= DOCS + .include Index: misc/qbrew/Makefile =================================================================== --- misc/qbrew/Makefile +++ misc/qbrew/Makefile @@ -19,6 +19,8 @@ DATADIR="${DATADIR}" \ DOCDIR="${DOCSDIR}" +OPTIONS_DEFINE= DOCS + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/qbrew Index: misc/sloccount/Makefile =================================================================== --- misc/sloccount/Makefile +++ misc/sloccount/Makefile @@ -21,6 +21,8 @@ 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} Index: misc/susv2/Makefile =================================================================== --- misc/susv2/Makefile +++ misc/susv2/Makefile @@ -16,6 +16,8 @@ NO_BUILD= yes PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) Index: misc/susv3/Makefile =================================================================== --- misc/susv3/Makefile +++ misc/susv3/Makefile @@ -16,6 +16,8 @@ NO_BUILD= yes PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) Index: misc/susv4/Makefile =================================================================== --- misc/susv4/Makefile +++ misc/susv4/Makefile @@ -20,6 +20,8 @@ NO_BUILD= yes PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include .if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX}) Index: misc/vdmfec/Makefile =================================================================== --- misc/vdmfec/Makefile +++ misc/vdmfec/Makefile @@ -24,6 +24,8 @@ bin/vdmfec \ man/man1/vdmfec.1.gz +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} Index: misc/vifm/Makefile =================================================================== --- misc/vifm/Makefile +++ misc/vifm/Makefile @@ -18,4 +18,6 @@ USE_GITHUB= yes +OPTIONS_DEFINE= DOCS + .include Index: multimedia/avinfo/Makefile =================================================================== --- multimedia/avinfo/Makefile +++ multimedia/avinfo/Makefile @@ -20,6 +20,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e '/^CC=/ d; /^CFLAGS=/ d; /^PREFIX=/ d' \ ${WRKSRC}/config.mk Index: multimedia/cheese/Makefile =================================================================== --- multimedia/cheese/Makefile +++ multimedia/cheese/Makefile @@ -39,7 +39,7 @@ GLIB_SCHEMAS= org.gnome.Cheese.gschema.xml OPTIONS_SUB= yes -OPTIONS_DEFINE= MANPAGES +OPTIONS_DEFINE= MANPAGES DOCS OPTIONS_DEFAULT=MANPAGES MANPAGES_CONFIGURE_ENABLE= man Index: multimedia/devede/Makefile =================================================================== --- multimedia/devede/Makefile +++ multimedia/devede/Makefile @@ -31,7 +31,7 @@ PORTDOCS= * -OPTIONS_DEFINE= IBUS NLS +OPTIONS_DEFINE= DOCS IBUS NLS OPTIONS_DEFAULT= IBUS OPTIONS_SUB= yes Index: multimedia/dragon/Makefile =================================================================== --- multimedia/dragon/Makefile +++ multimedia/dragon/Makefile @@ -18,4 +18,6 @@ USE_QT= core dbus gui network phonon4 widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: multimedia/dvd-slideshow/Makefile =================================================================== --- multimedia/dvd-slideshow/Makefile +++ multimedia/dvd-slideshow/Makefile @@ -28,7 +28,7 @@ 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 Index: multimedia/ffms2/Makefile =================================================================== --- multimedia/ffms2/Makefile +++ multimedia/ffms2/Makefile @@ -28,6 +28,8 @@ USE_LDCONFIG= yes DATADIR= ${PREFIX}/lib/vapoursynth +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e '/^dist_doc_DATA/s,=,& \ doc/${PORTNAME}-vapoursynth.md,' \ Index: multimedia/gpodder/Makefile =================================================================== --- multimedia/gpodder/Makefile +++ multimedia/gpodder/Makefile @@ -21,7 +21,7 @@ ${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 Index: multimedia/kamoso/Makefile =================================================================== --- multimedia/kamoso/Makefile +++ multimedia/kamoso/Makefile @@ -18,4 +18,6 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: multimedia/kdemultimedia-ffmpegthumbs/Makefile =================================================================== --- multimedia/kdemultimedia-ffmpegthumbs/Makefile +++ multimedia/kdemultimedia-ffmpegthumbs/Makefile @@ -17,4 +17,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: multimedia/kdenlive/Makefile =================================================================== --- multimedia/kdenlive/Makefile +++ multimedia/kdenlive/Makefile @@ -33,7 +33,7 @@ # Keep in sync with multimedia/mlt, possibly. FFMPEG_SUFX= # Currently empty. -OPTIONS_DEFINE= DVDWIZARD FREI0R LADSPA SCREENCAST V4L XINE +OPTIONS_DEFINE= DVDWIZARD FREI0R LADSPA SCREENCAST V4L XINE DOCS OPTIONS_DEFAULT=DVDWIZARD FREI0R LADSPA SCREENCAST V4L XINE OPTIONS_SUB= yes Index: multimedia/kvazaar/Makefile =================================================================== --- multimedia/kvazaar/Makefile +++ multimedia/kvazaar/Makefile @@ -29,7 +29,7 @@ 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}} Index: multimedia/libdvdnav/Makefile =================================================================== --- multimedia/libdvdnav/Makefile +++ multimedia/libdvdnav/Makefile @@ -23,4 +23,6 @@ PORTDOCS= AUTHORS COPYING ChangeLog README TODO +OPTIONS_DEFINE= DOCS + .include Index: multimedia/libdvdread/Makefile =================================================================== --- multimedia/libdvdread/Makefile +++ multimedia/libdvdread/Makefile @@ -21,7 +21,7 @@ PORTDOCS= AUTHORS COPYING ChangeLog NEWS README TODO -OPTIONS_DEFINE= DVDCSS +OPTIONS_DEFINE= DVDCSS DOCS .if !defined(PACKAGE_BUILDING) OPTIONS_DEFAULT= DVDCSS .endif Index: multimedia/linux-c6-libtheora/Makefile =================================================================== --- multimedia/linux-c6-libtheora/Makefile +++ multimedia/linux-c6-libtheora/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: multimedia/linux-c6-libv4l/Makefile =================================================================== --- multimedia/linux-c6-libv4l/Makefile +++ multimedia/linux-c6-libv4l/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: multimedia/linux-c7-libtheora/Makefile =================================================================== --- multimedia/linux-c7-libtheora/Makefile +++ multimedia/linux-c7-libtheora/Makefile @@ -19,4 +19,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: multimedia/linux-c7-libv4l/Makefile =================================================================== --- multimedia/linux-c7-libv4l/Makefile +++ multimedia/linux-c7-libv4l/Makefile @@ -20,4 +20,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: multimedia/mpc-qt/Makefile =================================================================== --- multimedia/mpc-qt/Makefile +++ multimedia/mpc-qt/Makefile @@ -24,4 +24,6 @@ CXXFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \ -D_DECLARE_C99_LDBL_MATH # XXX ports/193528 +OPTIONS_DEFINE= DOCS + .include Index: multimedia/mpv/Makefile =================================================================== --- multimedia/mpv/Makefile +++ multimedia/mpv/Makefile @@ -42,7 +42,7 @@ --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 Index: multimedia/nordlicht/Makefile =================================================================== --- multimedia/nordlicht/Makefile +++ multimedia/nordlicht/Makefile @@ -30,6 +30,8 @@ SHEBANG_FILES= utils/mpv-nordlicht +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} \ -e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' \ Index: multimedia/oscam/Makefile =================================================================== --- multimedia/oscam/Makefile +++ multimedia/oscam/Makefile @@ -26,11 +26,15 @@ 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}/ Index: multimedia/sms1xxx-kmod/Makefile =================================================================== --- multimedia/sms1xxx-kmod/Makefile +++ multimedia/sms1xxx-kmod/Makefile @@ -22,7 +22,7 @@ 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 Index: multimedia/vapoursynth-l-smash-works/Makefile =================================================================== --- multimedia/vapoursynth-l-smash-works/Makefile +++ multimedia/vapoursynth-l-smash-works/Makefile @@ -45,6 +45,8 @@ %%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 -/' \ Index: multimedia/winff/Makefile =================================================================== --- multimedia/winff/Makefile +++ multimedia/winff/Makefile @@ -46,6 +46,8 @@ 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 Index: net-im/centerim-devel/Makefile =================================================================== --- net-im/centerim-devel/Makefile +++ net-im/centerim-devel/Makefile @@ -29,7 +29,7 @@ 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 Index: net-im/centerim/Makefile =================================================================== --- net-im/centerim/Makefile +++ net-im/centerim/Makefile @@ -29,7 +29,7 @@ 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 Index: net-im/kaccounts-integration/Makefile =================================================================== --- net-im/kaccounts-integration/Makefile +++ net-im/kaccounts-integration/Makefile @@ -21,4 +21,6 @@ USE_QT= dbus core gui network qml widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/kaccounts-providers/Makefile =================================================================== --- net-im/kaccounts-providers/Makefile +++ net-im/kaccounts-providers/Makefile @@ -18,6 +18,8 @@ USE_QT= core gui network qml xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + #install to ${LOCALBASE}: pre-configure: ${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,' \ Index: net-im/kopete/Makefile =================================================================== --- net-im/kopete/Makefile +++ net-im/kopete/Makefile @@ -34,4 +34,6 @@ protocols/winpopup/winpopup-send \ kopete/kconf_update/*.pl +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-accounts-kcm/Makefile =================================================================== --- net-im/ktp-accounts-kcm/Makefile +++ net-im/ktp-accounts-kcm/Makefile @@ -27,7 +27,7 @@ buildtools_build qmake_build USE_LDCONFIG= yes -OPTIONS_DEFINE= HAZE IRC JABBER SALUT +OPTIONS_DEFINE= HAZE IRC JABBER SALUT DOCS OPTIONS_DEFAULT=JABBER HAZE_DESC= libpurple protocols support Index: net-im/ktp-approver/Makefile =================================================================== --- net-im/ktp-approver/Makefile +++ net-im/ktp-approver/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-auth-handler/Makefile =================================================================== --- net-im/ktp-auth-handler/Makefile +++ net-im/ktp-auth-handler/Makefile @@ -20,4 +20,6 @@ USE_QT= core dbus gui network webkit widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-call-ui/Makefile =================================================================== --- net-im/ktp-call-ui/Makefile +++ net-im/ktp-call-ui/Makefile @@ -25,4 +25,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-common-internals/Makefile =================================================================== --- net-im/ktp-common-internals/Makefile +++ net-im/ktp-common-internals/Makefile @@ -27,4 +27,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-contact-list/Makefile =================================================================== --- net-im/ktp-contact-list/Makefile +++ net-im/ktp-contact-list/Makefile @@ -19,4 +19,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-contact-runner/Makefile =================================================================== --- net-im/ktp-contact-runner/Makefile +++ net-im/ktp-contact-runner/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui network widgets xml\ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-desktop-applets/Makefile =================================================================== --- net-im/ktp-desktop-applets/Makefile +++ net-im/ktp-desktop-applets/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network qml widgets \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-filetransfer-handler/Makefile =================================================================== --- net-im/ktp-filetransfer-handler/Makefile +++ net-im/ktp-filetransfer-handler/Makefile @@ -17,4 +17,6 @@ USE_QT= core dbus gui network xml widgets \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-kded-module/Makefile =================================================================== --- net-im/ktp-kded-module/Makefile +++ net-im/ktp-kded-module/Makefile @@ -17,4 +17,6 @@ USE_QT= concurrent core dbus gui network sql widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-send-file/Makefile =================================================================== --- net-im/ktp-send-file/Makefile +++ net-im/ktp-send-file/Makefile @@ -19,4 +19,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net-im/ktp-text-ui/Makefile =================================================================== --- net-im/ktp-text-ui/Makefile +++ net-im/ktp-text-ui/Makefile @@ -23,4 +23,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net-im/prosody-modules/Makefile =================================================================== --- net-im/prosody-modules/Makefile +++ net-im/prosody-modules/Makefile @@ -23,6 +23,8 @@ 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} Index: net-im/sayaka/Makefile =================================================================== --- net-im/sayaka/Makefile +++ net-im/sayaka/Makefile @@ -22,7 +22,7 @@ WRKSRC_SUBDIR= vala -OPTIONS_DEFINE= COLORMAP +OPTIONS_DEFINE= COLORMAP DOCS OPTIONS_DEFAULT=COLORMAP OPTIONS_SUB= yes Index: net-im/skype-devel/Makefile =================================================================== --- net-im/skype-devel/Makefile +++ net-im/skype-devel/Makefile @@ -14,7 +14,7 @@ CONFLICTS= skype-[0-9]* -OPTIONS_DEFINE= VIDEO +OPTIONS_DEFINE= DOCS VIDEO OPTIONS_DEFAULT=VIDEO VIDEO_DESC= [broken] Video support Index: net-im/skype/Makefile =================================================================== --- net-im/skype/Makefile +++ net-im/skype/Makefile @@ -14,7 +14,7 @@ CONFLICTS= skype-devel-[0-9]* -OPTIONS_DEFINE= VIDEO +OPTIONS_DEFINE= DOCS VIDEO OPTIONS_DEFAULT=VIDEO NO_BUILD= yes Index: net-im/skype4/Makefile =================================================================== --- net-im/skype4/Makefile +++ net-im/skype4/Makefile @@ -16,7 +16,7 @@ CONFLICTS= skype-devel-[0-9]* -OPTIONS_DEFINE= VIDEO +OPTIONS_DEFINE= DOCS VIDEO OPTIONS_DEFAULT=VIDEO NO_BUILD= yes Index: net-im/talkatu/Makefile =================================================================== --- net-im/talkatu/Makefile +++ net-im/talkatu/Makefile @@ -22,4 +22,6 @@ MESON_ARGS= -Dgobject-introspection=false WRKSRC= ${WRKDIR}/rw_grim-talkatu-${DISTNAME} +OPTIONS_DEFINE= DOCS + .include Index: net-im/telegram/Makefile =================================================================== --- net-im/telegram/Makefile +++ net-im/telegram/Makefile @@ -33,6 +33,8 @@ 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 Index: net-im/vacuum-im/Makefile =================================================================== --- net-im/vacuum-im/Makefile +++ net-im/vacuum-im/Makefile @@ -28,4 +28,6 @@ "${PREFIX}/share/pixmaps/vacuum.png" "${PORTNAME}" \ "Qt;Network;InstantMessaging;" false +OPTIONS_DEFINE= DOCS + .include Index: net-mgmt/adcli/Makefile =================================================================== --- net-mgmt/adcli/Makefile +++ net-mgmt/adcli/Makefile @@ -20,6 +20,7 @@ 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 Index: net-mgmt/argus3/Makefile =================================================================== --- net-mgmt/argus3/Makefile +++ net-mgmt/argus3/Makefile @@ -15,7 +15,7 @@ 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} Index: net-mgmt/blackbox_exporter/Makefile =================================================================== --- net-mgmt/blackbox_exporter/Makefile +++ net-mgmt/blackbox_exporter/Makefile @@ -29,6 +29,8 @@ PORTEXAMPLES= ${WRKSRC}/*.yml +OPTIONS_DEFINE= EXAMPLES + do-install: ${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} Index: net-mgmt/bsnmp-ucd/Makefile =================================================================== --- net-mgmt/bsnmp-ucd/Makefile +++ net-mgmt/bsnmp-ucd/Makefile @@ -16,7 +16,9 @@ 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} Index: net-mgmt/dnsmap/Makefile =================================================================== --- net-mgmt/dnsmap/Makefile +++ net-mgmt/dnsmap/Makefile @@ -19,6 +19,8 @@ PLIST_FILES= bin/dnsmap bin/dnsmap-bulk ${DATADIR}/wordlist_TLAs.txt +OPTIONS_DEFINE= DOCS + do-build: ${CC} ${CFLAGS} ${WRKSRC}/dnsmap.c -o ${WRKSRC}/dnsmap Index: net-mgmt/driftnet/Makefile =================================================================== --- net-mgmt/driftnet/Makefile +++ net-mgmt/driftnet/Makefile @@ -29,4 +29,6 @@ INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + .include Index: net-mgmt/fetchconfig/Makefile =================================================================== --- net-mgmt/fetchconfig/Makefile +++ net-mgmt/fetchconfig/Makefile @@ -31,6 +31,8 @@ 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} Index: net-mgmt/hastmon/Makefile =================================================================== --- net-mgmt/hastmon/Makefile +++ net-mgmt/hastmon/Makefile @@ -21,6 +21,8 @@ PORTDOCS= ChangeLog COPYRIGHT README +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} \ -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \ Index: net-mgmt/icinga-classicweb/Makefile =================================================================== --- net-mgmt/icinga-classicweb/Makefile +++ net-mgmt/icinga-classicweb/Makefile @@ -7,6 +7,8 @@ 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 Index: net-mgmt/icinga-core/Makefile =================================================================== --- net-mgmt/icinga-core/Makefile +++ net-mgmt/icinga-core/Makefile @@ -20,7 +20,7 @@ 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 Index: net-mgmt/icingaweb2/Makefile =================================================================== --- net-mgmt/icingaweb2/Makefile +++ net-mgmt/icingaweb2/Makefile @@ -30,7 +30,7 @@ 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 Index: net-mgmt/iftop/Makefile =================================================================== --- net-mgmt/iftop/Makefile +++ net-mgmt/iftop/Makefile @@ -17,6 +17,8 @@ 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 Index: net-mgmt/nagiosgraph/Makefile =================================================================== --- net-mgmt/nagiosgraph/Makefile +++ net-mgmt/nagiosgraph/Makefile @@ -15,7 +15,7 @@ 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 Index: net-mgmt/netmagis-database/Makefile =================================================================== --- net-mgmt/netmagis-database/Makefile +++ net-mgmt/netmagis-database/Makefile @@ -20,4 +20,6 @@ PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + .include "${MASTERDIR}/Makefile" Index: net-mgmt/netmagis-detecteq/Makefile =================================================================== --- net-mgmt/netmagis-detecteq/Makefile +++ net-mgmt/netmagis-detecteq/Makefile @@ -15,4 +15,6 @@ PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + .include "${MASTERDIR}/Makefile" Index: net-mgmt/netmagis-metro/Makefile =================================================================== --- net-mgmt/netmagis-metro/Makefile +++ net-mgmt/netmagis-metro/Makefile @@ -24,4 +24,6 @@ PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + .include "${MASTERDIR}/Makefile" Index: net-mgmt/netmagis-servers/Makefile =================================================================== --- net-mgmt/netmagis-servers/Makefile +++ net-mgmt/netmagis-servers/Makefile @@ -15,4 +15,6 @@ PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + .include "${MASTERDIR}/Makefile" Index: net-mgmt/netmagis-topo/Makefile =================================================================== --- net-mgmt/netmagis-topo/Makefile +++ net-mgmt/netmagis-topo/Makefile @@ -24,6 +24,8 @@ ALL_TARGET=build${PKGNAMESUFFIX?=} +OPTIONS_DEFINE= EXAMPLES + post-install: @${MKDIR} ${STAGEDIR}/var/netmagis/eqgen ${STAGEDIR}/var/netmagis/eqvirt Index: net-mgmt/netmagis-www/Makefile =================================================================== --- net-mgmt/netmagis-www/Makefile +++ net-mgmt/netmagis-www/Makefile @@ -23,6 +23,8 @@ PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/htgtcl Index: net-mgmt/nsca-ng/Makefile =================================================================== --- net-mgmt/nsca-ng/Makefile +++ net-mgmt/nsca-ng/Makefile @@ -33,6 +33,8 @@ PORTDOCS= NEWS COPYING README PROTOCOL TODO +OPTIONS_DEFINE= DOCS EXAMPLES + .include .if ${SSL_DEFAULT:Mlibressl*} Index: net-mgmt/p5-Monitoring-Plugin/Makefile =================================================================== --- net-mgmt/p5-Monitoring-Plugin/Makefile +++ net-mgmt/p5-Monitoring-Plugin/Makefile @@ -25,6 +25,8 @@ PORTDOCS= Changes README +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: net-mgmt/p5-Nagios-Plugin/Makefile =================================================================== --- net-mgmt/p5-Nagios-Plugin/Makefile +++ net-mgmt/p5-Nagios-Plugin/Makefile @@ -23,6 +23,8 @@ PORTDOCS= Changes README +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: net-mgmt/p5-RDR-Collector/Makefile =================================================================== --- net-mgmt/p5-RDR-Collector/Makefile +++ net-mgmt/p5-RDR-Collector/Makefile @@ -17,6 +17,8 @@ USE_PERL5= configure SHEBANG_FILES= examples/*.pl +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} Index: net-mgmt/pdagent-integrations/Makefile =================================================================== --- net-mgmt/pdagent-integrations/Makefile +++ net-mgmt/pdagent-integrations/Makefile @@ -25,6 +25,8 @@ 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 Index: net-mgmt/pmacct/Makefile =================================================================== --- net-mgmt/pmacct/Makefile +++ net-mgmt/pmacct/Makefile @@ -22,7 +22,7 @@ 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 Index: net-mgmt/pnp/Makefile =================================================================== --- net-mgmt/pnp/Makefile +++ net-mgmt/pnp/Makefile @@ -19,7 +19,7 @@ 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 Index: net-mgmt/py-snmp4/Makefile =================================================================== --- net-mgmt/py-snmp4/Makefile +++ net-mgmt/py-snmp4/Makefile @@ -28,6 +28,8 @@ PORTDOCS= * PORTEXAMPLES= * +OPTIONS_DEFINE= DOCS EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/docs/source/docs && \ Index: net-mgmt/smokeping/Makefile =================================================================== --- net-mgmt/smokeping/Makefile +++ net-mgmt/smokeping/Makefile @@ -64,7 +64,7 @@ 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 Index: net-p2p/cpuminer/Makefile =================================================================== --- net-p2p/cpuminer/Makefile +++ net-p2p/cpuminer/Makefile @@ -16,7 +16,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl \ libjansson.so:devel/jansson -OPTIONS_DEFINE= GCC +OPTIONS_DEFINE= GCC DOCS OPTIONS_DEFAULT=GCC USES= autoreconf cpe Index: net-p2p/libbt/Makefile =================================================================== --- net-p2p/libbt/Makefile +++ net-p2p/libbt/Makefile @@ -19,6 +19,8 @@ PORTDOCS= protocol-ext.txt protocol.txt +OPTIONS_DEFINE= DOCS + .include post-patch: Index: net-p2p/libswift/Makefile =================================================================== --- net-p2p/libswift/Makefile +++ net-p2p/libswift/Makefile @@ -43,6 +43,8 @@ USE_RC_SUBR= ${PORTNAME} +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} \ ${STAGEDIR}${SWIFT_SHAREDIR} \ Index: net-p2p/linuxdcpp/Makefile =================================================================== --- net-p2p/linuxdcpp/Makefile +++ net-p2p/linuxdcpp/Makefile @@ -19,7 +19,7 @@ PORTDOCS= * DESTDIRNAME= FAKE_ROOT -OPTIONS_DEFINE= NOTIFY +OPTIONS_DEFINE= NOTIFY DOCS OPTIONS_DEFAULT=NOTIFY .if defined(WITH_DEBUG) Index: net-p2p/minder/Makefile =================================================================== --- net-p2p/minder/Makefile +++ net-p2p/minder/Makefile @@ -26,6 +26,8 @@ PORTEXAMPLES= minder.cfg PLIST_FILES= bin/minder +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e \ 's|^CFLAGS|#CFLAGS| ; \ Index: net/akonadi-calendar/Makefile =================================================================== --- net/akonadi-calendar/Makefile +++ net/akonadi-calendar/Makefile @@ -22,4 +22,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/akonadi-contacts/Makefile =================================================================== --- net/akonadi-contacts/Makefile +++ net/akonadi-contacts/Makefile @@ -21,4 +21,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/akonadi-mime/Makefile =================================================================== --- net/akonadi-mime/Makefile +++ net/akonadi-mime/Makefile @@ -20,4 +20,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/akonadi-notes/Makefile =================================================================== --- net/akonadi-notes/Makefile +++ net/akonadi-notes/Makefile @@ -19,4 +19,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/akonadi-search/Makefile =================================================================== --- net/akonadi-search/Makefile +++ net/akonadi-search/Makefile @@ -24,4 +24,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/axa/Makefile =================================================================== --- net/axa/Makefile +++ net/axa/Makefile @@ -32,13 +32,14 @@ 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 Index: net/bsdproxy/Makefile =================================================================== --- net/bsdproxy/Makefile +++ net/bsdproxy/Makefile @@ -16,6 +16,8 @@ PLIST_FILES= bin/${PORTNAME} PORTDOCS= ChangeLog README +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} Index: net/calendarsupport/Makefile =================================================================== --- net/calendarsupport/Makefile +++ net/calendarsupport/Makefile @@ -22,4 +22,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net/corosync2/Makefile.common =================================================================== --- net/corosync2/Makefile.common +++ net/corosync2/Makefile.common @@ -26,7 +26,7 @@ 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 Index: net/delegate/Makefile =================================================================== --- net/delegate/Makefile +++ net/delegate/Makefile @@ -25,6 +25,8 @@ 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 Index: net/deviceatlas-enterprise-c/Makefile =================================================================== --- net/deviceatlas-enterprise-c/Makefile +++ net/deviceatlas-enterprise-c/Makefile @@ -26,6 +26,8 @@ REGISTRATION_URL= https://deviceatlas.com/deviceatlas-haproxy-module +OPTIONS_DEFINE= DOCS EXAMPLES + .include .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) Index: net/dhcpd-pools/Makefile =================================================================== --- net/dhcpd-pools/Makefile +++ net/dhcpd-pools/Makefile @@ -25,6 +25,8 @@ PORTDATA= snmptest.pl +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e '/features.h/d' ${WRKSRC}/src/getdata.c Index: net/elixir-kafka_ex/Makefile =================================================================== --- net/elixir-kafka_ex/Makefile +++ net/elixir-kafka_ex/Makefile @@ -18,4 +18,6 @@ GH_ACCOUNT= jacklund NO_ARCH= yes +OPTIONS_DEFINE= DOCS + .include Index: net/elixir-oauth2/Makefile =================================================================== --- net/elixir-oauth2/Makefile +++ net/elixir-oauth2/Makefile @@ -19,4 +19,6 @@ GH_ACCOUNT= scrogson NO_ARCH= yes +OPTIONS_DEFINE= DOCS + .include Index: net/erlang-ranch/Makefile =================================================================== --- net/erlang-ranch/Makefile +++ net/erlang-ranch/Makefile @@ -15,7 +15,9 @@ 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} Index: net/erlang-xmlrpc/Makefile =================================================================== --- net/erlang-xmlrpc/Makefile +++ net/erlang-xmlrpc/Makefile @@ -16,6 +16,8 @@ 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 @@ @${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 Index: net/eventviews/Makefile =================================================================== --- net/eventviews/Makefile +++ net/eventviews/Makefile @@ -23,4 +23,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net/file2pcap/Makefile =================================================================== --- net/file2pcap/Makefile +++ net/file2pcap/Makefile @@ -21,6 +21,8 @@ PLIST_FILES= bin/file2pcap PORTDOCS= Changelog README.md TODO +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/file2pcap ${STAGEDIR}/${PREFIX}/bin ${MKDIR} ${STAGEDIR}/${DOCSDIR} Index: net/freeradius3/Makefile =================================================================== --- net/freeradius3/Makefile +++ net/freeradius3/Makefile @@ -50,7 +50,7 @@ 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 Index: net/freeswitch/Makefile =================================================================== --- net/freeswitch/Makefile +++ net/freeswitch/Makefile @@ -46,7 +46,7 @@ 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 Index: net/glusterfs/Makefile =================================================================== --- net/glusterfs/Makefile +++ net/glusterfs/Makefile @@ -55,6 +55,8 @@ PLIST_SUB= GLUSTERLIBDIR="lib/${PORTNAME}/${PORTVERSION}" KMODDIR?= /boot/modules +OPTIONS_DEFINE= DOCS + .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1101001 Index: net/gnatsd/Makefile =================================================================== --- net/gnatsd/Makefile +++ net/gnatsd/Makefile @@ -18,6 +18,8 @@ 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 Index: net/incidenceeditor/Makefile =================================================================== --- net/incidenceeditor/Makefile +++ net/incidenceeditor/Makefile @@ -26,4 +26,6 @@ USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net/iodine/Makefile =================================================================== --- net/iodine/Makefile +++ net/iodine/Makefile @@ -20,6 +20,8 @@ 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 Index: net/kalarmcal/Makefile =================================================================== --- net/kalarmcal/Makefile +++ net/kalarmcal/Makefile @@ -24,4 +24,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kblog/Makefile =================================================================== --- net/kblog/Makefile +++ net/kblog/Makefile @@ -20,4 +20,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kcalcore/Makefile =================================================================== --- net/kcalcore/Makefile +++ net/kcalcore/Makefile @@ -20,4 +20,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kcalutils/Makefile =================================================================== --- net/kcalutils/Makefile +++ net/kcalutils/Makefile @@ -21,4 +21,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kcontacts/Makefile =================================================================== --- net/kcontacts/Makefile +++ net/kcontacts/Makefile @@ -17,4 +17,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kdav/Makefile =================================================================== --- net/kdav/Makefile +++ net/kdav/Makefile @@ -16,4 +16,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kdenetwork-filesharing/Makefile =================================================================== --- net/kdenetwork-filesharing/Makefile +++ net/kdenetwork-filesharing/Makefile @@ -13,4 +13,6 @@ USE_QT= core gui network widgets \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: net/kget/Makefile =================================================================== --- net/kget/Makefile +++ net/kget/Makefile @@ -35,4 +35,6 @@ MAKE_ENV= XDG_CONFIG_HOME=/dev/null CONFIGURE_ENV= XDG_CONFIG_HOME=/dev/null +OPTIONS_DEFINE= DOCS + .include Index: net/kidentitymanagement/Makefile =================================================================== --- net/kidentitymanagement/Makefile +++ net/kidentitymanagement/Makefile @@ -22,4 +22,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kimap/Makefile =================================================================== --- net/kimap/Makefile +++ net/kimap/Makefile @@ -22,4 +22,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kitinerary/Makefile =================================================================== --- net/kitinerary/Makefile +++ net/kitinerary/Makefile @@ -23,4 +23,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kldap/Makefile =================================================================== --- net/kldap/Makefile +++ net/kldap/Makefile @@ -23,4 +23,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kmailtransport/Makefile =================================================================== --- net/kmailtransport/Makefile +++ net/kmailtransport/Makefile @@ -22,4 +22,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kmbox/Makefile =================================================================== --- net/kmbox/Makefile +++ net/kmbox/Makefile @@ -19,4 +19,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kmime/Makefile =================================================================== --- net/kmime/Makefile +++ net/kmime/Makefile @@ -20,4 +20,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kontactinterface/Makefile =================================================================== --- net/kontactinterface/Makefile +++ net/kontactinterface/Makefile @@ -21,4 +21,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/kpimtextedit/Makefile =================================================================== --- net/kpimtextedit/Makefile +++ net/kpimtextedit/Makefile @@ -21,4 +21,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/krdc/Makefile =================================================================== --- net/krdc/Makefile +++ net/krdc/Makefile @@ -18,7 +18,7 @@ buildtools_build qmake_build USE_LDCONFIG= yes -OPTIONS_DEFINE= FREERDP +OPTIONS_DEFINE= FREERDP DOCS OPTIONS_SUB= yes FREERDP_CMAKE_BOOL= WITH_FREERDP FREERDP_DESC= Remote Desktop support via FreeRDP Index: net/krfb/Makefile =================================================================== --- net/krfb/Makefile +++ net/krfb/Makefile @@ -19,7 +19,7 @@ buildtools_build qmake_build USE_XORG= x11 xcb xdamage xext xtst -OPTIONS_DEFINE= TELEPATHY +OPTIONS_DEFINE= TELEPATHY DOCS OPTIONS_SUB= yes TELEPATHY_DESC= Support for Telepathy Tubes TELEPATHY_LIB_DEPENDS= libtelepathy-qt5.so:net-im/telepathy-qt5 Index: net/ksmtp/Makefile =================================================================== --- net/ksmtp/Makefile +++ net/ksmtp/Makefile @@ -19,4 +19,6 @@ USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net/ktnef/Makefile =================================================================== --- net/ktnef/Makefile +++ net/ktnef/Makefile @@ -20,4 +20,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/l2tpd/Makefile =================================================================== --- net/l2tpd/Makefile +++ net/l2tpd/Makefile @@ -18,6 +18,8 @@ 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 \ Index: net/ldapscripts/Makefile =================================================================== --- net/ldapscripts/Makefile +++ net/ldapscripts/Makefile @@ -21,7 +21,7 @@ NO_ARCH= yes -OPTIONS_DEFINE= SASL +OPTIONS_DEFINE= SASL DOCS SASL_VARS= OPENLDAP_FLAVOUR=-sasl WANT_OPENLDAP_SASL=yes USES= iconv tar:tgz Index: net/libgravatar/Makefile =================================================================== --- net/libgravatar/Makefile +++ net/libgravatar/Makefile @@ -18,4 +18,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net/libkgapi/Makefile =================================================================== --- net/libkgapi/Makefile +++ net/libkgapi/Makefile @@ -27,4 +27,6 @@ USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net/libksieve/Makefile =================================================================== --- net/libksieve/Makefile +++ net/libksieve/Makefile @@ -27,4 +27,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/libmateweather/Makefile =================================================================== --- net/libmateweather/Makefile +++ net/libmateweather/Makefile @@ -26,4 +26,6 @@ GLIB_SCHEMAS= org.mate.weather.gschema.xml +OPTIONS_DEFINE= DOCS + .include Index: net/libnss-pgsql/Makefile =================================================================== --- net/libnss-pgsql/Makefile +++ net/libnss-pgsql/Makefile @@ -19,6 +19,8 @@ USE_LDCONFIG= yes GNU_CONFIGURE= yes +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/conf/* ${STAGEDIR}${DOCSDIR} Index: net/linknx/Makefile =================================================================== --- net/linknx/Makefile +++ net/linknx/Makefile @@ -25,7 +25,7 @@ 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 Index: net/linux-c6-openldap/Makefile =================================================================== --- net/linux-c6-openldap/Makefile +++ net/linux-c6-openldap/Makefile @@ -16,6 +16,8 @@ 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 Index: net/linux-c6-tcp_wrappers-libs/Makefile =================================================================== --- net/linux-c6-tcp_wrappers-libs/Makefile +++ net/linux-c6-tcp_wrappers-libs/Makefile @@ -19,4 +19,6 @@ USE_LINUX= xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: net/linux-c7-openldap/Makefile =================================================================== --- net/linux-c7-openldap/Makefile +++ net/linux-c7-openldap/Makefile @@ -17,6 +17,8 @@ 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 Index: net/linux-c7-tcp_wrappers-libs/Makefile =================================================================== --- net/linux-c7-tcp_wrappers-libs/Makefile +++ net/linux-c7-tcp_wrappers-libs/Makefile @@ -21,4 +21,6 @@ USE_LINUX= xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: net/mailcommon/Makefile =================================================================== --- net/mailcommon/Makefile +++ net/mailcommon/Makefile @@ -29,4 +29,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: net/mailimporter/Makefile =================================================================== --- net/mailimporter/Makefile +++ net/mailimporter/Makefile @@ -22,4 +22,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/megatools/Makefile =================================================================== --- net/megatools/Makefile +++ net/megatools/Makefile @@ -23,6 +23,8 @@ INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + post-patch: # Unsilence build ${REINPLACE_CMD} -e '/^export\ MAKEFLAGS/s|^|#|' ${WRKSRC}/Makefile.in Index: net/messagelib/Makefile =================================================================== --- net/messagelib/Makefile +++ net/messagelib/Makefile @@ -32,7 +32,7 @@ USE_LDCONFIG= yes -OPTIONS_DEFINE= INOTIFY +OPTIONS_DEFINE= INOTIFY DOCS OPTIONS_DEFAULT= INOTIFY OPTIONS_SUB= yes Index: net/mininet/Makefile =================================================================== --- net/mininet/Makefile +++ net/mininet/Makefile @@ -25,6 +25,8 @@ 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 \ Index: net/mpd5/Makefile =================================================================== --- net/mpd5/Makefile +++ net/mpd5/Makefile @@ -16,7 +16,7 @@ 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 Index: net/nats-streaming-server/Makefile =================================================================== --- net/nats-streaming-server/Makefile +++ net/nats-streaming-server/Makefile @@ -18,6 +18,8 @@ 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 Index: net/netsed/Makefile =================================================================== --- net/netsed/Makefile +++ net/netsed/Makefile @@ -15,6 +15,8 @@ PLIST_FILES= bin/${PORTNAME} PORTDOCS= README +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DOCSDIR} Index: net/nmsg/Makefile =================================================================== --- net/nmsg/Makefile +++ net/nmsg/Makefile @@ -27,13 +27,14 @@ # 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 Index: net/openbsc/Makefile =================================================================== --- net/openbsc/Makefile +++ net/openbsc/Makefile @@ -24,7 +24,7 @@ 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 Index: net/openldap24-server/Makefile =================================================================== --- net/openldap24-server/Makefile +++ net/openldap24-server/Makefile @@ -75,7 +75,9 @@ 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 Index: net/pecl-radius/Makefile =================================================================== --- net/pecl-radius/Makefile +++ net/pecl-radius/Makefile @@ -14,7 +14,9 @@ CONFIGURE_ARGS= --enable-radius -post-install: +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} Index: net/pimcommon/Makefile =================================================================== --- net/pimcommon/Makefile +++ net/pimcommon/Makefile @@ -27,4 +27,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/py-pynmsg/Makefile =================================================================== --- net/py-pynmsg/Makefile +++ net/py-pynmsg/Makefile @@ -23,6 +23,8 @@ CPPFLAGS+= -I${LOCALBASE}/include +OPTIONS_DEFINE= EXAMPLES + post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_nmsg.so ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} Index: net/quagga/Makefile =================================================================== --- net/quagga/Makefile +++ net/quagga/Makefile @@ -27,7 +27,7 @@ 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 Index: net/radvd/Makefile =================================================================== --- net/radvd/Makefile +++ net/radvd/Makefile @@ -23,6 +23,8 @@ 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} Index: net/scribe/Makefile =================================================================== --- net/scribe/Makefile +++ net/scribe/Makefile @@ -36,6 +36,8 @@ 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' \ Index: net/sflowtool/Makefile =================================================================== --- net/sflowtool/Makefile +++ net/sflowtool/Makefile @@ -21,7 +21,7 @@ PORTEXAMPLES= README ipTopTalkers ipTrafficMatrix sflowRRDChart.cgi \ sflowRRDLoad sflowenable -.include +OPTIONS_DEFINE= DOCS EXAMPLES post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} Index: net/siproxd/Makefile =================================================================== --- net/siproxd/Makefile +++ net/siproxd/Makefile @@ -25,6 +25,8 @@ 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} Index: net/spread/Makefile =================================================================== --- net/spread/Makefile +++ net/spread/Makefile @@ -32,6 +32,8 @@ 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 Index: net/syncthing/Makefile =================================================================== --- net/syncthing/Makefile +++ net/syncthing/Makefile @@ -26,6 +26,8 @@ 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} Index: net/syndication/Makefile =================================================================== --- net/syndication/Makefile +++ net/syndication/Makefile @@ -18,4 +18,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: net/tcludp/Makefile =================================================================== --- net/tcludp/Makefile +++ net/tcludp/Makefile @@ -22,6 +22,6 @@ 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 Index: net/tcpillust/Makefile =================================================================== --- net/tcpillust/Makefile +++ net/tcpillust/Makefile @@ -25,6 +25,8 @@ 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} \ Index: net/zeroconf-ioslave/Makefile =================================================================== --- net/zeroconf-ioslave/Makefile +++ net/zeroconf-ioslave/Makefile @@ -12,4 +12,6 @@ USE_QT= core dbus network \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: news/husky-fidoconf/Makefile =================================================================== --- news/husky-fidoconf/Makefile +++ news/husky-fidoconf/Makefile @@ -20,6 +20,8 @@ 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 Index: news/husky-hpt/Makefile =================================================================== --- news/husky-hpt/Makefile +++ news/husky-hpt/Makefile @@ -15,6 +15,8 @@ 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 Index: news/husky-htick/Makefile =================================================================== --- news/husky-htick/Makefile +++ news/husky-htick/Makefile @@ -23,6 +23,8 @@ 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 Index: news/husky-huskylib/Makefile =================================================================== --- news/husky-huskylib/Makefile +++ news/husky-huskylib/Makefile @@ -10,4 +10,6 @@ MASTERDIR= ${.CURDIR}/../husky COMPONENT_SUBDIR= huskylib +OPTIONS_DEFINE= DOCS + .include "${MASTERDIR}/Makefile" Index: news/inn/Makefile =================================================================== --- news/inn/Makefile +++ news/inn/Makefile @@ -24,7 +24,7 @@ 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 Index: news/leafnode/Makefile =================================================================== --- news/leafnode/Makefile +++ news/leafnode/Makefile @@ -31,7 +31,7 @@ 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 \ Index: news/mail2nntp/Makefile =================================================================== --- news/mail2nntp/Makefile +++ news/mail2nntp/Makefile @@ -21,6 +21,8 @@ PORTDOCS= * PLIST_FILES= bin/mail2nntp.pl +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/mail2nntp.pl ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DOCSDIR} Index: polish/qfaktury/Makefile =================================================================== --- polish/qfaktury/Makefile +++ polish/qfaktury/Makefile @@ -15,6 +15,8 @@ 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 Index: ports-mgmt/bsdadminscripts2/Makefile =================================================================== --- ports-mgmt/bsdadminscripts2/Makefile +++ ports-mgmt/bsdadminscripts2/Makefile @@ -19,6 +19,8 @@ CONFLICTS_INSTALL= bsdadminscripts +OPTIONS_DEFINE= DOCS + do-install: @cd ${WRKSRC} && ${SH} install.sh \ -destdir="${STAGEDIR}" -prefix="${PREFIX}" \ Index: ports-mgmt/pkg-devel/Makefile =================================================================== --- ports-mgmt/pkg-devel/Makefile +++ ports-mgmt/pkg-devel/Makefile @@ -27,6 +27,8 @@ # 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 Index: ports-mgmt/pkg/Makefile =================================================================== --- ports-mgmt/pkg/Makefile +++ ports-mgmt/pkg/Makefile @@ -28,6 +28,8 @@ 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 @@ .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 Index: ports-mgmt/pkgcompare/Makefile =================================================================== --- ports-mgmt/pkgcompare/Makefile +++ ports-mgmt/pkgcompare/Makefile @@ -28,6 +28,8 @@ 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 \ Index: ports-mgmt/portell/Makefile =================================================================== --- ports-mgmt/portell/Makefile +++ ports-mgmt/portell/Makefile @@ -19,6 +19,8 @@ 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 Index: print/linux-c7-cups-libs/Makefile =================================================================== --- print/linux-c7-cups-libs/Makefile +++ print/linux-c7-cups-libs/Makefile @@ -22,4 +22,6 @@ USE_LINUX= avahi-libs openssl USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: print/linux-c7-harfbuzz/Makefile =================================================================== --- print/linux-c7-harfbuzz/Makefile +++ print/linux-c7-harfbuzz/Makefile @@ -14,4 +14,6 @@ USE_LINUX= graphite2 USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: print/muttprint/Makefile =================================================================== --- print/muttprint/Makefile +++ print/muttprint/Makefile @@ -26,7 +26,7 @@ NO_BUILD= yes REINPLACE_ARGS= -i "" -OPTIONS_DEFINE= CUPS X11 +OPTIONS_DEFINE= CUPS X11 DOCS OPTIONS_DEFAULT= X11 X11_DESC= graphics/ImageMagick[-nox11] dependency Index: print/pdflib/Makefile =================================================================== --- print/pdflib/Makefile +++ print/pdflib/Makefile @@ -13,7 +13,7 @@ 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 @@ .include .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} Index: print/pdfstitch/Makefile =================================================================== --- print/pdfstitch/Makefile +++ print/pdfstitch/Makefile @@ -23,6 +23,8 @@ NO_ARCH= yes NO_BUILD= yes +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pdfstitch ${STAGEDIR}${PREFIX}/bin/pdfstitch ${MKDIR} ${STAGEDIR}${DOCSDIR} Index: print/print-manager/Makefile =================================================================== --- print/print-manager/Makefile +++ print/print-manager/Makefile @@ -17,4 +17,6 @@ USE_QT= core dbus gui network qml quick widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: science/afni/Makefile =================================================================== --- science/afni/Makefile +++ science/afni/Makefile @@ -48,6 +48,8 @@ pkundu/meica.libs/mdp/test/run_tests.py USE_GNOME= glib20 +OPTIONS_DEFINE= DOCS + .include USE_GL= gl glu glw Index: science/aircraft-datcom/Makefile =================================================================== --- science/aircraft-datcom/Makefile +++ science/aircraft-datcom/Makefile @@ -16,10 +16,10 @@ USES= fortran cmake -.include +OPTIONS_DEFINE= DOCS -post-install: +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} -.include +.include Index: science/cdcl/Makefile =================================================================== --- science/cdcl/Makefile +++ science/cdcl/Makefile @@ -16,7 +16,7 @@ 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 Index: science/cgnslib/Makefile =================================================================== --- science/cgnslib/Makefile +++ science/cgnslib/Makefile @@ -34,13 +34,13 @@ 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 @@ 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} Index: science/jstrack/Makefile =================================================================== --- science/jstrack/Makefile +++ science/jstrack/Makefile @@ -30,6 +30,8 @@ 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 Index: science/kalzium/Makefile =================================================================== --- science/kalzium/Makefile +++ science/kalzium/Makefile @@ -28,4 +28,6 @@ USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: science/sigrok-firmware-fx2lafw/Makefile =================================================================== --- science/sigrok-firmware-fx2lafw/Makefile +++ science/sigrok-firmware-fx2lafw/Makefile @@ -32,6 +32,8 @@ PORTDOCS= README NEWS PLIST_FILES= ${FW_FILES:S,^,share/sigrok-firmware/,} +OPTIONS_DEFINE= DOCS + do-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for docfile in README NEWS Index: science/sigrok-firmware-utils/Makefile =================================================================== --- science/sigrok-firmware-utils/Makefile +++ science/sigrok-firmware-utils/Makefile @@ -32,6 +32,8 @@ ${EX_FILES:S,^,bin/,} \ ${EX_FILES:S,^,man/man1/,:S,$,.1.gz,} +OPTIONS_DEFINE= DOCS + do-extract: @${MKDIR} ${WRKSRC} @${CP} ${FILESDIR}/* ${WRKSRC} Index: science/step/Makefile =================================================================== --- science/step/Makefile +++ science/step/Makefile @@ -22,6 +22,8 @@ widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + pre-configure: # Avoid building translations, should the user pass # CURRENT_LANG to CMake. Index: security/amavisd-milter/Makefile =================================================================== --- security/amavisd-milter/Makefile +++ security/amavisd-milter/Makefile @@ -42,6 +42,8 @@ PORTDOCS= AUTHORS CHANGES INSTALL LICENSE README TODO +OPTIONS_DEFINE= DOCS + .include .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" Index: security/cisco-torch/Makefile =================================================================== --- security/cisco-torch/Makefile +++ security/cisco-torch/Makefile @@ -31,6 +31,8 @@ tfingerprint.db \ users.txt +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/cisco-torch.pl ${STAGEDIR}${PREFIX}/bin/cisco-torch ${MKDIR} ${STAGEDIR}${DATADIR}/include Index: security/courier-authlib/Makefile =================================================================== --- security/courier-authlib/Makefile +++ security/courier-authlib/Makefile @@ -75,6 +75,8 @@ USERS= ${MAILOWN} GROUPS= ${MAILGRP} +OPTIONS_DEFINE+= DOCS + DOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README \ README.authdebug.html README_authlib.html @@ -108,6 +110,8 @@ .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 @@ .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 @@ .if ${AUTHMOD} == authpgsql RUN_DEPENDS+= ${LOCALBASE}/share/sysconftool/sysconftool:devel/sysconftool +OPTIONS_DEFINE+= DOCS + DOCS= README.authpostgres.html USES+= pgsql CONFIGURE_ARGS+=--with-authpgsql Index: security/cvechecker/Makefile =================================================================== --- security/cvechecker/Makefile +++ security/cvechecker/Makefile @@ -27,6 +27,7 @@ bash_OLD_CMD+= /bin/sh +OPTIONS_DEFINE= DOCS OPTIONS_MULTI= DB OPTIONS_MULTI_DB= MYSQL SQLITE OPTIONS_DEFAULT= SQLITE Index: security/elixir-comeonin/Makefile =================================================================== --- security/elixir-comeonin/Makefile +++ security/elixir-comeonin/Makefile @@ -20,6 +20,8 @@ security/elixir-comeonin_i18n MIX_RUN_DEPS:= security/elixir-comeonin_i18n +OPTIONS_DEFINE= DOCS + post-build: ${STRIP_CMD} ${WRKSRC}/priv/bcrypt_nif.so Index: security/elixir-comeonin_i18n/Makefile =================================================================== --- security/elixir-comeonin_i18n/Makefile +++ security/elixir-comeonin_i18n/Makefile @@ -16,4 +16,6 @@ MIX_BUILD_DEPS= devel/elixir-gettext MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: security/elixir-jose/Makefile =================================================================== --- security/elixir-jose/Makefile +++ security/elixir-jose/Makefile @@ -21,4 +21,6 @@ security/erlang-jose MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: security/erlang-fast_tls/Makefile =================================================================== --- security/erlang-fast_tls/Makefile +++ security/erlang-fast_tls/Makefile @@ -24,6 +24,8 @@ CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} +OPTIONS_DEFINE= DOCS + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv/lib/*.so Index: security/erlang-jose/Makefile =================================================================== --- security/erlang-jose/Makefile +++ security/erlang-jose/Makefile @@ -21,4 +21,6 @@ ERL_BUILD_DEPS= converters/erlang-base64url ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: security/fwbuilder/Makefile =================================================================== --- security/fwbuilder/Makefile +++ security/fwbuilder/Makefile @@ -16,7 +16,7 @@ LIB_DEPENDS= libxslt.so:textproc/libxslt \ libnetsnmp.so:net-mgmt/net-snmp -#OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS BUILD= 3599 Index: security/gorilla/Makefile =================================================================== --- security/gorilla/Makefile +++ security/gorilla/Makefile @@ -17,6 +17,8 @@ RUN_DEPENDS= itcl>=3.4:lang/itcl \ wish:x11-toolkits/tk-wrapper +OPTIONS_DEFINE= DOCS + .include .if ${ARCH} == i386 Index: security/govpn/Makefile =================================================================== --- security/govpn/Makefile +++ security/govpn/Makefile @@ -25,4 +25,6 @@ PLIST_FILES= bin/govpn-server bin/govpn-client bin/govpn-verifier \ share/govpn/newclient.sh +OPTIONS_DEFINE= DOCS + .include Index: security/gtkpasman/Makefile =================================================================== --- security/gtkpasman/Makefile +++ security/gtkpasman/Makefile @@ -24,6 +24,8 @@ PORTDOCS= * PLIST_FILES= bin/gtkpasman share/applications/gtkpasman.desktop +OPTIONS_DEFINE= DOCS + .include post-patch: Index: security/hamachi/Makefile =================================================================== --- security/hamachi/Makefile +++ security/hamachi/Makefile @@ -21,6 +21,8 @@ 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 Index: security/hashcat-legacy/Makefile =================================================================== --- security/hashcat-legacy/Makefile +++ security/hashcat-legacy/Makefile @@ -26,6 +26,8 @@ ALL_TARGET= posix64 posixXOP +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -r 's|^(CC_.*[[:blank:]]*=[[:blank:]]*)gcc[[:blank:]]*$$|\1${CC}|' ${WRKSRC}/src/Makefile Index: security/hashcat/Makefile =================================================================== --- security/hashcat/Makefile +++ security/hashcat/Makefile @@ -32,6 +32,8 @@ 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 Index: security/hitch/Makefile =================================================================== --- security/hitch/Makefile +++ security/hitch/Makefile @@ -28,6 +28,8 @@ 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/ Index: security/ipguard/Makefile =================================================================== --- security/ipguard/Makefile +++ security/ipguard/Makefile @@ -19,6 +19,8 @@ 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} Index: security/kgpg/Makefile =================================================================== --- security/kgpg/Makefile +++ security/kgpg/Makefile @@ -18,4 +18,6 @@ USE_QT= core dbus gui network printsupport widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: security/kleopatra/Makefile =================================================================== --- security/kleopatra/Makefile +++ security/kleopatra/Makefile @@ -22,4 +22,6 @@ USE_QT= core dbus gui network printsupport testlib widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: security/kpkpass/Makefile =================================================================== --- security/kpkpass/Makefile +++ security/kpkpass/Makefile @@ -14,4 +14,6 @@ DESCR= ${.CURDIR:H:H}/deskutils/kdepim/pkg-descr +OPTIONS_DEFINE= DOCS + .include Index: security/kwalletmanager/Makefile =================================================================== --- security/kwalletmanager/Makefile +++ security/kwalletmanager/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: security/libkleo/Makefile =================================================================== --- security/libkleo/Makefile +++ security/libkleo/Makefile @@ -23,6 +23,9 @@ buildtools_build qmake_build _CORETOOLS= md5sum sha1sum sha256sum sha512sum + +OPTIONS_DEFINE= DOCS + post-extract: # use the binaries of coreutils . for ct in ${_CORETOOLS} Index: security/libntlm/Makefile =================================================================== --- security/libntlm/Makefile +++ security/libntlm/Makefile @@ -18,7 +18,9 @@ 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} Index: security/linux-c6-cyrus-sasl2/Makefile =================================================================== --- security/linux-c6-cyrus-sasl2/Makefile +++ security/linux-c6-cyrus-sasl2/Makefile @@ -19,4 +19,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c6-libgcrypt/Makefile =================================================================== --- security/linux-c6-libgcrypt/Makefile +++ security/linux-c6-libgcrypt/Makefile @@ -16,4 +16,6 @@ USE_LINUX= libgpg-error USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c6-libssh2/Makefile =================================================================== --- security/linux-c6-libssh2/Makefile +++ security/linux-c6-libssh2/Makefile @@ -16,4 +16,6 @@ USE_LINUX= openssl USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c6-libtasn1/Makefile =================================================================== --- security/linux-c6-libtasn1/Makefile +++ security/linux-c6-libtasn1/Makefile @@ -16,4 +16,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c6-openssl/Makefile =================================================================== --- security/linux-c6-openssl/Makefile +++ security/linux-c6-openssl/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c7-cyrus-sasl2/Makefile =================================================================== --- security/linux-c7-cyrus-sasl2/Makefile +++ security/linux-c7-cyrus-sasl2/Makefile @@ -21,4 +21,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c7-libgcrypt/Makefile =================================================================== --- security/linux-c7-libgcrypt/Makefile +++ security/linux-c7-libgcrypt/Makefile @@ -20,4 +20,6 @@ USE_LINUX= libgpg-error USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c7-libssh2/Makefile =================================================================== --- security/linux-c7-libssh2/Makefile +++ security/linux-c7-libssh2/Makefile @@ -18,4 +18,6 @@ USE_LINUX= openssl USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c7-libtasn1/Makefile =================================================================== --- security/linux-c7-libtasn1/Makefile +++ security/linux-c7-libtasn1/Makefile @@ -19,4 +19,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c7-nettle/Makefile =================================================================== --- security/linux-c7-nettle/Makefile +++ security/linux-c7-nettle/Makefile @@ -13,4 +13,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c7-openssl/Makefile =================================================================== --- security/linux-c7-openssl/Makefile +++ security/linux-c7-openssl/Makefile @@ -23,4 +23,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c7-p11-kit/Makefile =================================================================== --- security/linux-c7-p11-kit/Makefile +++ security/linux-c7-p11-kit/Makefile @@ -13,4 +13,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/linux-c7-trousers/Makefile =================================================================== --- security/linux-c7-trousers/Makefile +++ security/linux-c7-trousers/Makefile @@ -14,4 +14,6 @@ USE_LINUX= openssl USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: security/logcheck/Makefile =================================================================== --- security/logcheck/Makefile +++ security/logcheck/Makefile @@ -27,7 +27,7 @@ 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 Index: security/lynis/Makefile =================================================================== --- security/lynis/Makefile +++ security/lynis/Makefile @@ -22,6 +22,8 @@ PORTDOCS= FAQ README +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e '/tINCLUDE_TARGETS/ s|".*"|"${DATADIR}/include"|; \ /tPLUGIN_TARGETS/ s|".*"|"${DATADIR}/plugins"|; \ Index: security/obfsclient/Makefile =================================================================== --- security/obfsclient/Makefile +++ security/obfsclient/Makefile @@ -28,6 +28,8 @@ PORTDOCS= COPYING +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR} Index: security/openconnect/Makefile =================================================================== --- security/openconnect/Makefile +++ security/openconnect/Makefile @@ -27,7 +27,7 @@ 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 Index: security/openct/Makefile =================================================================== --- security/openct/Makefile +++ security/openct/Makefile @@ -14,7 +14,7 @@ LIB_DEPENDS= libltdl.so:devel/libltdl -OPTIONS_DEFINE= PCSC DOCS +OPTIONS_DEFINE= PCSC DOCS EXAMPLES PCSC_DESC= Enable PC/SC support GNU_CONFIGURE= yes Index: security/openssh-portable/Makefile =================================================================== --- security/openssh-portable/Makefile +++ security/openssh-portable/Makefile @@ -39,6 +39,7 @@ LDNS NONECIPHER XMSS OPTIONS_DEFAULT= LIBEDIT PAM TCP_WRAPPERS LDNS .if ${FLAVOR:U} == hpn +OPTIONS_DEFINE+= DOCS OPTIONS_DEFAULT+= HPN NONECIPHER .endif OPTIONS_RADIO= KERBEROS Index: security/p5-Digest-SHA-PurePerl/Makefile =================================================================== --- security/p5-Digest-SHA-PurePerl/Makefile +++ security/p5-Digest-SHA-PurePerl/Makefile @@ -20,6 +20,8 @@ PORTEXAMPLES= dups +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL Index: security/pad/Makefile =================================================================== --- security/pad/Makefile +++ security/pad/Makefile @@ -20,6 +20,8 @@ CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -e "s|\(-lcrypto\)|${LDFLAGS} \1|g" \ ${WRKSRC}/Makefile.in Index: security/pam-mysql/Makefile =================================================================== --- security/pam-mysql/Makefile +++ security/pam-mysql/Makefile @@ -26,7 +26,7 @@ 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 Index: security/pkcs11-gateway/Makefile =================================================================== --- security/pkcs11-gateway/Makefile +++ security/pkcs11-gateway/Makefile @@ -20,6 +20,8 @@ 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 Index: security/pkesh/Makefile =================================================================== --- security/pkesh/Makefile +++ security/pkesh/Makefile @@ -16,6 +16,8 @@ PLIST_FILES= bin/pkesh PORTDOCS= README +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/pkesh.sh ${STAGEDIR}${PREFIX}/bin/pkesh ${MKDIR} ${STAGEDIR}${DOCSDIR} Index: security/rcracki_mt/Makefile =================================================================== --- security/rcracki_mt/Makefile +++ security/rcracki_mt/Makefile @@ -21,6 +21,8 @@ PLIST_FILES= bin/${PORTNAME} PORTDOCS= ChangeLog.txt README.txt +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} \ -e 's,CC = g++,CXX ?= g++,' \ Index: security/signing-party/Makefile =================================================================== --- security/signing-party/Makefile +++ security/signing-party/Makefile @@ -44,6 +44,8 @@ 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 Index: security/stoken/Makefile =================================================================== --- security/stoken/Makefile +++ security/stoken/Makefile @@ -20,7 +20,7 @@ USE_LDCONFIG= yes INSTALL_TARGET= install-strip -OPTIONS_DEFINE= X11 +OPTIONS_DEFINE= DOCS X11 OPTIONS_SUB= yes X11_CONFIGURE_WITH= gtk Index: security/tclsasl/Makefile =================================================================== --- security/tclsasl/Makefile +++ security/tclsasl/Makefile @@ -20,6 +20,8 @@ PORTDOCS= tclsasl.html +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/tclsasl.html ${STAGEDIR}${DOCSDIR} Index: security/tmux-cssh/Makefile =================================================================== --- security/tmux-cssh/Makefile +++ security/tmux-cssh/Makefile @@ -19,7 +19,10 @@ 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 Index: security/vlock/Makefile =================================================================== --- security/vlock/Makefile +++ security/vlock/Makefile @@ -24,7 +24,7 @@ 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 Index: security/whatweb/Makefile =================================================================== --- security/whatweb/Makefile +++ security/whatweb/Makefile @@ -21,6 +21,8 @@ NO_ARCH= yes PORTDOCS= CHANGELOG INSTALL README whatweb.xsl +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -e \ 's!/usr/share/whatweb/!${RUBY_SITELIBDIR}/whatweb!' \ Index: security/wolfssl/Makefile =================================================================== --- security/wolfssl/Makefile +++ security/wolfssl/Makefile @@ -28,6 +28,8 @@ USE_LDCONFIG= yes PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-configure: @${REINPLACE_CMD} \ -e 's|$${prefix}/cyassl/include|$${prefix}/include/cyassl|' \ Index: security/xmlsec1/Makefile =================================================================== --- security/xmlsec1/Makefile +++ security/xmlsec1/Makefile @@ -31,7 +31,7 @@ INSTALL_TARGET= install-strip PORTDOCS= * -OPTIONS_DEFINE= GNUTLS NSS +OPTIONS_DEFINE= DOCS GNUTLS NSS OPTIONS_DEFAULT= NSS OPTIONS_SUB= yes Index: shells/44bsd-csh/Makefile =================================================================== --- shells/44bsd-csh/Makefile +++ shells/44bsd-csh/Makefile @@ -18,6 +18,8 @@ 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 Index: shells/heirloom-sh/Makefile =================================================================== --- shells/heirloom-sh/Makefile +++ shells/heirloom-sh/Makefile @@ -20,6 +20,8 @@ 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 Index: shells/jailkit/Makefile =================================================================== --- shells/jailkit/Makefile +++ shells/jailkit/Makefile @@ -19,6 +19,8 @@ PORTDOCS= COPYRIGHT README.txt +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} Index: shells/lshell/Makefile =================================================================== --- shells/lshell/Makefile +++ shells/lshell/Makefile @@ -19,6 +19,8 @@ USE_GITHUB= yes USE_PYTHON= distutils +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e \ "s|(.*lshell.conf.*),|| ; \ Index: shells/osh/Makefile =================================================================== --- shells/osh/Makefile +++ shells/osh/Makefile @@ -18,6 +18,8 @@ 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 Index: sysutils/atop/Makefile =================================================================== --- sysutils/atop/Makefile +++ sysutils/atop/Makefile @@ -31,6 +31,8 @@ README \ README.FreeBSD +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/atop ${STAGEDIR}${PREFIX}/bin ${LN} -sf atop ${STAGEDIR}${PREFIX}/bin/atopsar Index: sysutils/backupchecker/Makefile =================================================================== --- sysutils/backupchecker/Makefile +++ sysutils/backupchecker/Makefile @@ -19,6 +19,8 @@ PORTDOCS= README.md +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} "s|'share','man'|'${MANPREFIX}/man'|" ${WRKSRC}/setup.py Index: sysutils/bacula-docs/Makefile =================================================================== --- sysutils/bacula-docs/Makefile +++ sysutils/bacula-docs/Makefile @@ -14,6 +14,8 @@ PORTDOCS= *.pdf +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${FIND} ${WRKSRC}/manuals/en \ Index: sysutils/bacula9-docs/Makefile =================================================================== --- sysutils/bacula9-docs/Makefile +++ sysutils/bacula9-docs/Makefile @@ -18,6 +18,8 @@ PORTDOCS= *.pdf +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${FIND} ${WRKSRC}/manuals/en \ Index: sysutils/baloo-widgets/Makefile =================================================================== --- sysutils/baloo-widgets/Makefile +++ sysutils/baloo-widgets/Makefile @@ -15,4 +15,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: sysutils/bareos-docs/Makefile =================================================================== --- sysutils/bareos-docs/Makefile +++ sysutils/bareos-docs/Makefile @@ -14,6 +14,8 @@ PORTDOCS= *.pdf +OPTIONS_DEFINE= DOCS + do-extract: ${MKDIR} ${WRKSRC} ${CP} ${DISTDIR}/${PORTNAME}-manual-main-reference.pdf ${WRKSRC} Index: sysutils/catfish/Makefile =================================================================== --- sysutils/catfish/Makefile +++ sysutils/catfish/Makefile @@ -22,7 +22,7 @@ USE_PYTHON= distutils USE_GNOME= gtk30 intltool pygobject3 -OPTIONS_DEFINE= ZEITGEIST +OPTIONS_DEFINE= DOCS ZEITGEIST OPTIONS_DEFAULT=ZEITGEIST ZEITGEIST_DESC= Provide recent search suggestions Index: sysutils/cdbkup/Makefile =================================================================== --- sysutils/cdbkup/Makefile +++ sysutils/cdbkup/Makefile @@ -23,4 +23,6 @@ PORTDOCS= README TODO COMPLIANCE +OPTIONS_DEFINE= DOCS + .include Index: sysutils/cfengine22/Makefile =================================================================== --- sysutils/cfengine22/Makefile +++ sysutils/cfengine22/Makefile @@ -36,7 +36,7 @@ INFO= cfengine-Tutorial cfengine-Reference -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e '/^docdir/s!=.*!= @docdir@!'\ Index: sysutils/ck4up/Makefile =================================================================== --- sysutils/ck4up/Makefile +++ sysutils/ck4up/Makefile @@ -21,6 +21,8 @@ PLIST_FILES= bin/ck4up \ man/man1/ck4up.1.gz +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \ ${WRKSRC}/Makefile Index: sysutils/clonehdd/Makefile =================================================================== --- sysutils/clonehdd/Makefile +++ sysutils/clonehdd/Makefile @@ -18,6 +18,8 @@ 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 Index: sysutils/cmockery2/Makefile =================================================================== --- sysutils/cmockery2/Makefile +++ sysutils/cmockery2/Makefile @@ -22,6 +22,8 @@ # 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|' \ Index: sysutils/deltup/Makefile =================================================================== --- sysutils/deltup/Makefile +++ sysutils/deltup/Makefile @@ -37,6 +37,8 @@ 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 Index: sysutils/detox/Makefile =================================================================== --- sysutils/detox/Makefile +++ sysutils/detox/Makefile @@ -17,6 +17,8 @@ GNU_CONFIGURE= yes GH_ACCOUNT= dharple +OPTIONS_DEFINE= DOCS + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/detox ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/inline-detox Index: sysutils/djmount/Makefile =================================================================== --- sysutils/djmount/Makefile +++ sysutils/djmount/Makefile @@ -23,6 +23,8 @@ PORTDOCS= AUTHORS ChangeLog NEWS README TODO +OPTIONS_DEFINE= DOCS + post-install: @${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: sysutils/duff/Makefile =================================================================== --- sysutils/duff/Makefile +++ sysutils/duff/Makefile @@ -19,7 +19,7 @@ PORTDOCS= README.SHA -OPTIONS_DEFINE= JOIN NLS +OPTIONS_DEFINE= DOCS JOIN NLS OPTIONS_SUB= yes JOIN_DESC= Add run-dependencies for join-duplicates.sh Index: sysutils/duply/Makefile =================================================================== --- sysutils/duply/Makefile +++ sysutils/duply/Makefile @@ -27,6 +27,8 @@ 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 Index: sysutils/fanout/Makefile =================================================================== --- sysutils/fanout/Makefile +++ sysutils/fanout/Makefile @@ -17,6 +17,8 @@ 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 Index: sysutils/filelight/Makefile =================================================================== --- sysutils/filelight/Makefile +++ sysutils/filelight/Makefile @@ -19,4 +19,6 @@ USE_QT= core dbus gui network script widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: sysutils/fpart/Makefile =================================================================== --- sysutils/fpart/Makefile +++ sysutils/fpart/Makefile @@ -18,7 +18,7 @@ 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 \ Index: sysutils/fswatch-mon/Makefile =================================================================== --- sysutils/fswatch-mon/Makefile +++ sysutils/fswatch-mon/Makefile @@ -21,7 +21,7 @@ CONFLICTS_INSTALL= fswatch-[0-9]* -OPTIONS_DEFINE= NLS +OPTIONS_DEFINE= DOCS NLS OPTIONS_SUB= yes NLS_USES= gettext Index: sysutils/hfm/Makefile =================================================================== --- sysutils/hfm/Makefile +++ sysutils/hfm/Makefile @@ -33,6 +33,8 @@ 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 ) Index: sysutils/immortal/Makefile =================================================================== --- sysutils/immortal/Makefile +++ sysutils/immortal/Makefile @@ -21,6 +21,8 @@ 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 \ Index: sysutils/k3b/Makefile =================================================================== --- sysutils/k3b/Makefile +++ sysutils/k3b/Makefile @@ -34,7 +34,7 @@ # The ffmpeg-plugin needs patching CMAKE_ARGS= -DK3B_BUILD_FFMPEG_DECODER_PLUGIN:BOOL=FALSE -OPTIONS_DEFINE= CDRDAO DVDPLUSRW EMOVIX VCDIMAGER +OPTIONS_DEFINE= CDRDAO DVDPLUSRW EMOVIX VCDIMAGER DOCS OPTIONS_DEFAULT= ${OPTIONS_DEFINE} CDRDAO_DESC= Burning: cdrdao Index: sysutils/kbackup/Makefile =================================================================== --- sysutils/kbackup/Makefile +++ sysutils/kbackup/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: sysutils/kcron/Makefile =================================================================== --- sysutils/kcron/Makefile +++ sysutils/kcron/Makefile @@ -17,4 +17,6 @@ USE_QT= core gui network printsupport widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: sysutils/kdebugsettings/Makefile =================================================================== --- sysutils/kdebugsettings/Makefile +++ sysutils/kdebugsettings/Makefile @@ -13,4 +13,6 @@ USE_QT= core dbus gui testlib widgets \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: sysutils/kdf/Makefile =================================================================== --- sysutils/kdf/Makefile +++ sysutils/kdf/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: sysutils/kdialog/Makefile =================================================================== --- sysutils/kdialog/Makefile +++ sysutils/kdialog/Makefile @@ -17,4 +17,6 @@ buildtools_build qmake_build USE_XORG= x11 +OPTIONS_DEFINE= DOCS + .include Index: sysutils/kfloppy/Makefile =================================================================== --- sysutils/kfloppy/Makefile +++ sysutils/kfloppy/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: sysutils/khelpcenter/Makefile =================================================================== --- sysutils/khelpcenter/Makefile +++ sysutils/khelpcenter/Makefile @@ -21,4 +21,6 @@ buildtools_build qmake_build SHEBANG_FILES= searchhandlers/khc_mansearch.pl +OPTIONS_DEFINE= DOCS + .include Index: sysutils/ksystemlog/Makefile =================================================================== --- sysutils/ksystemlog/Makefile +++ sysutils/ksystemlog/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network printsupport testlib widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: sysutils/lava/Makefile =================================================================== --- sysutils/lava/Makefile +++ sysutils/lava/Makefile @@ -23,6 +23,8 @@ PLIST_FILES= bin/${PORTNAME}.sh PORTDOCS= README.md +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/ Index: sysutils/liburcu/Makefile =================================================================== --- sysutils/liburcu/Makefile +++ sysutils/liburcu/Makefile @@ -26,4 +26,6 @@ INSTALL_TARGET= install-strip TEST_TARGET= check +OPTIONS_DEFINE= DOCS + .include Index: sysutils/lttng-tools/Makefile =================================================================== --- sysutils/lttng-tools/Makefile +++ sysutils/lttng-tools/Makefile @@ -31,6 +31,8 @@ --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/ Index: sysutils/lttng-ust/Makefile =================================================================== --- sysutils/lttng-ust/Makefile +++ sysutils/lttng-ust/Makefile @@ -25,6 +25,8 @@ 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 Index: sysutils/memdump/Makefile =================================================================== --- sysutils/memdump/Makefile +++ sysutils/memdump/Makefile @@ -20,6 +20,8 @@ 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 Index: sysutils/monitorix/Makefile =================================================================== --- sysutils/monitorix/Makefile +++ sysutils/monitorix/Makefile @@ -52,6 +52,8 @@ PORTDOCS= * PORTDATA= *.pm +OPTIONS_DEFINE= DOCS + .include pre-everything:: Index: sysutils/most/Makefile =================================================================== --- sysutils/most/Makefile +++ sysutils/most/Makefile @@ -25,6 +25,8 @@ PORTSCOUT= skipv:5.0.0a +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|||' \ ${WRKSRC}/src/jdmacros.h Index: sysutils/nbosd/Makefile =================================================================== --- sysutils/nbosd/Makefile +++ sysutils/nbosd/Makefile @@ -15,6 +15,8 @@ PLIST_FILES= bin/nbosd PORTDOCS= * +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/nbosd ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DOCSDIR} Index: sysutils/openhpi/Makefile =================================================================== --- sysutils/openhpi/Makefile +++ sysutils/openhpi/Makefile @@ -29,6 +29,8 @@ USE_PERL5= build USE_RC_SUBR= openhpid +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's/-lstdc++//' \ ${WRKSRC}/baselib/Makefile.in \ Index: sysutils/py-bcfg2/Makefile =================================================================== --- sysutils/py-bcfg2/Makefile +++ sysutils/py-bcfg2/Makefile @@ -17,7 +17,7 @@ ${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 Index: sysutils/py-supervisor/Makefile =================================================================== --- sysutils/py-supervisor/Makefile +++ sysutils/py-supervisor/Makefile @@ -31,6 +31,8 @@ python_OLD_CMD= "/usr/bin/env python" python_OLD_CMD+= "<>" +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!' ${WRKSRC}/supervisor/options.py Index: sysutils/qdirstat/Makefile =================================================================== --- sysutils/qdirstat/Makefile +++ sysutils/qdirstat/Makefile @@ -18,6 +18,8 @@ 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 Index: sysutils/racktables/Makefile =================================================================== --- sysutils/racktables/Makefile +++ sysutils/racktables/Makefile @@ -28,7 +28,7 @@ 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 Index: sysutils/read-edid/Makefile =================================================================== --- sysutils/read-edid/Makefile +++ sysutils/read-edid/Makefile @@ -16,4 +16,6 @@ PLIST_FILES= bin/get-edid bin/parse-edid man/man1/get-edid.1.gz PORTDOCS= AUTHORS ChangeLog LICENSE README +OPTIONS_DEFINE= DOCS + .include Index: sysutils/sas2ircu/Makefile =================================================================== --- sysutils/sas2ircu/Makefile +++ sysutils/sas2ircu/Makefile @@ -26,17 +26,17 @@ ONLY_FOR_ARCHS= i386 amd64 ONLY_FOR_ARCHS_REASON= Binaries only available for i386 and amd64 from Broadcom -.include +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 +.include Index: sysutils/scct/Makefile =================================================================== --- sysutils/scct/Makefile +++ sysutils/scct/Makefile @@ -20,6 +20,8 @@ PLIST_FILES= bin/scct PORTDOCS= README.org +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/scct ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DOCSDIR} Index: sysutils/signon-kwallet-extension/Makefile =================================================================== --- sysutils/signon-kwallet-extension/Makefile +++ sysutils/signon-kwallet-extension/Makefile @@ -17,4 +17,6 @@ PLIST_FILES= ${SE_DIR}/libkeyring-kwallet.so SE_DIR= lib/signon/extensions +OPTIONS_DEFINE= DOCS + .include Index: sysutils/signon-qt5/Makefile =================================================================== --- sysutils/signon-qt5/Makefile +++ sysutils/signon-qt5/Makefile @@ -22,6 +22,8 @@ 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,' \ Index: sysutils/sweeper/Makefile =================================================================== --- sysutils/sweeper/Makefile +++ sysutils/sweeper/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: sysutils/tkdvd/Makefile =================================================================== --- sysutils/tkdvd/Makefile +++ sysutils/tkdvd/Makefile @@ -28,7 +28,7 @@ "AudioVideo;DiscBurning;" \ true -.include +OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|tclsh|${TCLSH}|' ${WRKSRC}/install.tcl \ Index: sysutils/tree/Makefile =================================================================== --- sysutils/tree/Makefile +++ sysutils/tree/Makefile @@ -19,6 +19,8 @@ PORTDOCS= CHANGES README +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/tree ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 Index: sysutils/ts/Makefile =================================================================== --- sysutils/ts/Makefile +++ sysutils/ts/Makefile @@ -16,6 +16,8 @@ man/man8/ts.8.gz PORTDOCS= OBJECTIVES PROTOCOL README TRICKS +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -e '/^GLIBCFLAGS/d;/^CFLAGS/d'\ ${WRKSRC}/Makefile Index: sysutils/tw_cli/Makefile =================================================================== --- sysutils/tw_cli/Makefile +++ sysutils/tw_cli/Makefile @@ -29,6 +29,8 @@ 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 Index: sysutils/ucspi-ssl/Makefile =================================================================== --- sysutils/ucspi-ssl/Makefile +++ sysutils/ucspi-ssl/Makefile @@ -21,6 +21,8 @@ SCRIPTS_TO_INSTALL= https@ sslcat sslconnect +OPTIONS_DEFINE= DOCS + .include post-patch: Index: sysutils/watchman/Makefile =================================================================== --- sysutils/watchman/Makefile +++ sysutils/watchman/Makefile @@ -27,7 +27,7 @@ "@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 Index: sysutils/xcdroast/Makefile =================================================================== --- sysutils/xcdroast/Makefile +++ sysutils/xcdroast/Makefile @@ -34,9 +34,9 @@ .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} Index: sysutils/xjobs/Makefile =================================================================== --- sysutils/xjobs/Makefile +++ sysutils/xjobs/Makefile @@ -17,6 +17,8 @@ PORTDOCS= ChangeLog README +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 Index: sysutils/zap/Makefile =================================================================== --- sysutils/zap/Makefile +++ sysutils/zap/Makefile @@ -21,6 +21,8 @@ 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 Index: sysutils/zfsnap2/Makefile =================================================================== --- sysutils/zfsnap2/Makefile +++ sysutils/zfsnap2/Makefile @@ -16,7 +16,7 @@ NO_BUILD= yes USE_GITHUB= yes -OPTIONS_DEFINE= BASH ZSH +OPTIONS_DEFINE= BASH ZSH DOCS EXAMPLES OPTIONS_DEFAULT= BASH ZSH OPTIONS_SUB= yes Index: textproc/apache-solr3/Makefile =================================================================== --- textproc/apache-solr3/Makefile +++ textproc/apache-solr3/Makefile @@ -24,6 +24,8 @@ CPE_VENDOR= apache NO_ARCH= yes +OPTIONS_DEFINE= EXAMPLES + do-install: cd ${WRKSRC}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${JAVAJARDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} Index: textproc/bibtool/Makefile =================================================================== --- textproc/bibtool/Makefile +++ textproc/bibtool/Makefile @@ -23,6 +23,8 @@ PORTDOCS= bibtool.pdf ref_card.pdf c_lib.pdf +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} 's/bibtex$$/&8/' ${WRKSRC}/doc/Makefile Index: textproc/docbook-utils/Makefile =================================================================== --- textproc/docbook-utils/Makefile +++ textproc/docbook-utils/Makefile @@ -30,6 +30,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|/etc/sgml/catalog|${PREFIX}/share/sgml/catalog|g' \ ${WRKSRC}/doc/HTML/Makefile.in Index: textproc/elixir-earmark/Makefile =================================================================== --- textproc/elixir-earmark/Makefile +++ textproc/elixir-earmark/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: textproc/elixir-ex_doc/Makefile =================================================================== --- textproc/elixir-ex_doc/Makefile +++ textproc/elixir-ex_doc/Makefile @@ -22,4 +22,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: textproc/elixir-funnel/Makefile =================================================================== --- textproc/elixir-funnel/Makefile +++ textproc/elixir-funnel/Makefile @@ -21,4 +21,6 @@ www/elixir-httpoison MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: textproc/elixir-sweet_xml/Makefile =================================================================== --- textproc/elixir-sweet_xml/Makefile +++ textproc/elixir-sweet_xml/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= gniquil +OPTIONS_DEFINE= DOCS + .include Index: textproc/erlang-edown/Makefile =================================================================== --- textproc/erlang-edown/Makefile +++ textproc/erlang-edown/Makefile @@ -14,4 +14,6 @@ ERL_DOCS= doc/* +OPTIONS_DEFINE= DOCS + .include Index: textproc/erlang-fast_xml/Makefile =================================================================== --- textproc/erlang-fast_xml/Makefile +++ textproc/erlang-fast_xml/Makefile @@ -22,6 +22,8 @@ CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -l expat +OPTIONS_DEFINE= DOCS + pre-install: ${STRIP_CMD} ${WRKSRC}/priv/lib/*.so Index: textproc/erlang-p1_utils/Makefile =================================================================== --- textproc/erlang-p1_utils/Makefile +++ textproc/erlang-p1_utils/Makefile @@ -14,4 +14,6 @@ USE_GITHUB= yes GH_ACCOUNT= processone +OPTIONS_DEFINE= DOCS + .include Index: textproc/erlang-yamerl/Makefile =================================================================== --- textproc/erlang-yamerl/Makefile +++ textproc/erlang-yamerl/Makefile @@ -17,4 +17,6 @@ ERL_DOCS= README.md doc +OPTIONS_DEFINE= DOCS + .include Index: textproc/expat2/Makefile =================================================================== --- textproc/expat2/Makefile +++ textproc/expat2/Makefile @@ -19,4 +19,6 @@ CONFIGURE_ARGS= --without-docbook INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + .include Index: textproc/highlight/Makefile =================================================================== --- textproc/highlight/Makefile +++ textproc/highlight/Makefile @@ -25,6 +25,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} \ -e 's|^PREFIX =|PREFIX ?=|' \ Index: textproc/html-xml-utils/Makefile =================================================================== --- textproc/html-xml-utils/Makefile +++ textproc/html-xml-utils/Makefile @@ -21,7 +21,7 @@ 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} Index: textproc/htmlc/Makefile =================================================================== --- textproc/htmlc/Makefile +++ textproc/htmlc/Makefile @@ -21,6 +21,8 @@ HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix ${LOCALBASE} +OPTIONS_DEFINE= DOCS + post-patch: ${RM} ${WRKSRC}/doc/Makefile ${TOUCH} ${WRKSRC}/doc/Makefile Index: textproc/java2html/Makefile =================================================================== --- textproc/java2html/Makefile +++ textproc/java2html/Makefile @@ -16,6 +16,8 @@ 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} Index: textproc/kompare/Makefile =================================================================== --- textproc/kompare/Makefile +++ textproc/kompare/Makefile @@ -16,4 +16,6 @@ USE_QT= core dbus gui network printsupport widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: textproc/libepubgen/Makefile =================================================================== --- textproc/libepubgen/Makefile +++ textproc/libepubgen/Makefile @@ -28,7 +28,7 @@ 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 @@ PORTDOCS= * DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_CONFIGURE_OFF= --without-docs +DOXYGEN_IMPLIES= DOCS .include Index: textproc/libkomparediff2/Makefile =================================================================== --- textproc/libkomparediff2/Makefile +++ textproc/libkomparediff2/Makefile @@ -14,4 +14,6 @@ buildtools_build qmake_build USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + .include Index: textproc/libqxp/Makefile =================================================================== --- textproc/libqxp/Makefile +++ textproc/libqxp/Makefile @@ -30,7 +30,7 @@ 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 @@ PORTDOCS= * DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_CONFIGURE_OFF= --without-docs +DOXYGEN_IMPLIES= DOCS .include Index: textproc/librevenge/Makefile =================================================================== --- textproc/librevenge/Makefile +++ textproc/librevenge/Makefile @@ -19,12 +19,13 @@ 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 Index: textproc/libxml++26-reference/pkg-plist =================================================================== --- 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 Index: textproc/linux-c6-expat/Makefile =================================================================== --- textproc/linux-c6-expat/Makefile +++ textproc/linux-c6-expat/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: textproc/linux-c6-libxml2/Makefile =================================================================== --- textproc/linux-c6-libxml2/Makefile +++ textproc/linux-c6-libxml2/Makefile @@ -15,4 +15,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: textproc/linux-c7-expat/Makefile =================================================================== --- textproc/linux-c7-expat/Makefile +++ textproc/linux-c7-expat/Makefile @@ -19,4 +19,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: textproc/linux-c7-libxml2/Makefile =================================================================== --- textproc/linux-c7-libxml2/Makefile +++ textproc/linux-c7-libxml2/Makefile @@ -19,4 +19,6 @@ USE_LDCONFIG= yes USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: textproc/metauml/Makefile =================================================================== --- textproc/metauml/Makefile +++ textproc/metauml/Makefile @@ -32,6 +32,8 @@ 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} Index: textproc/py-xlwriter/Makefile =================================================================== --- textproc/py-xlwriter/Makefile +++ textproc/py-xlwriter/Makefile @@ -16,6 +16,8 @@ PORTEXAMPLES= * +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${FIND} ${WRKSRC}/examples -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR} \; Index: textproc/rss2html/Makefile =================================================================== --- textproc/rss2html/Makefile +++ textproc/rss2html/Makefile @@ -20,6 +20,8 @@ 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 Index: textproc/ruby-rdtool/Makefile =================================================================== --- textproc/ruby-rdtool/Makefile +++ textproc/ruby-rdtool/Makefile @@ -24,7 +24,7 @@ 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 Index: textproc/smi/Makefile =================================================================== --- textproc/smi/Makefile +++ textproc/smi/Makefile @@ -24,6 +24,8 @@ MANDIR="${MANPREFIX}/man/man" CFLAGS+= -DVERSION=${PORTVERSION} +OPTIONS_DEFINE= DOCS + pre-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} Index: textproc/tex2im/Makefile =================================================================== --- textproc/tex2im/Makefile +++ textproc/tex2im/Makefile @@ -20,6 +20,8 @@ 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 Index: textproc/xerces-j/Makefile =================================================================== --- textproc/xerces-j/Makefile +++ textproc/xerces-j/Makefile @@ -26,6 +26,8 @@ PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,} +OPTIONS_DEFINE= DOCS EXAMPLES + do-install: @${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..." .for JARFILE in ${JARFILES} Index: textproc/xom/Makefile =================================================================== --- textproc/xom/Makefile +++ textproc/xom/Makefile @@ -18,7 +18,7 @@ NO_BUILD= yes WRKSRC= ${WRKDIR}/XOM -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar PORTDOCS= overview.html apidocs Index: textproc/xp/Makefile =================================================================== --- textproc/xp/Makefile +++ textproc/xp/Makefile @@ -23,6 +23,8 @@ JARFILE= ${PORTNAME}.jar PLIST_FILES+= %%JAVAJARDIR%%/${JARFILE} +OPTIONS_DEFINE= DOCS + do-install: @${ECHO_CMD} -n ">> Installing JAR as ${JAVAJARDIR}/${JARFILE}..." @${MKDIR} ${STAGEDIR}${JAVAJARDIR} Index: www/amphetadesk/Makefile =================================================================== --- www/amphetadesk/Makefile +++ www/amphetadesk/Makefile @@ -38,6 +38,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include post-patch: Index: www/apache24/Makefile.options =================================================================== --- www/apache24/Makefile.options +++ www/apache24/Makefile.options @@ -85,6 +85,7 @@ ${EXAMPLE_MODULES} ${META_MODULES} OPTIONS_DEFINE= \ + DOCS \ ${MOST_ENABLED_MODULES} \ ${MOST_DISABLED_MODULES}\ ${ADDITIONAL_OPT} \ Index: www/axis/Makefile =================================================================== --- www/axis/Makefile +++ www/axis/Makefile @@ -13,6 +13,7 @@ LICENSE= APACHE20 +OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_SINGLE= AS OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7 OPTIONS_DEFAULT= TOMCAT6 Index: www/cgicc/Makefile =================================================================== --- www/cgicc/Makefile +++ www/cgicc/Makefile @@ -11,7 +11,7 @@ LICENSE= LGPL3+ -OPTIONS_DEFINE= DOXYGEN +OPTIONS_DEFINE= DOXYGEN DOCS USES= gmake pathfix libtool GNU_CONFIGURE= yes @@ -24,6 +24,7 @@ PORTDOCS= * +DOXYGEN_IMPLIES= DOCS DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen DOXYGEN_CONFIGURE_ENV_OFF= ac_cv_prog_DOXYGEN="${ECHO_CMD}" Index: www/elixir-html_entities/Makefile =================================================================== --- www/elixir-html_entities/Makefile +++ www/elixir-html_entities/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-html_sanitize_ex/Makefile =================================================================== --- www/elixir-html_sanitize_ex/Makefile +++ www/elixir-html_sanitize_ex/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-httpoison/Makefile =================================================================== --- www/elixir-httpoison/Makefile +++ www/elixir-httpoison/Makefile @@ -18,4 +18,6 @@ MIX_BUILD_DEPS= www/erlang-hackney MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-httpotion/Makefile =================================================================== --- www/elixir-httpotion/Makefile +++ www/elixir-httpotion/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-joken/Makefile =================================================================== --- www/elixir-joken/Makefile +++ www/elixir-joken/Makefile @@ -19,4 +19,6 @@ security/elixir-jose MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-maru/Makefile =================================================================== --- www/elixir-maru/Makefile +++ www/elixir-maru/Makefile @@ -20,4 +20,6 @@ www/erlang-cowboy MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-phoenix/Makefile =================================================================== --- www/elixir-phoenix/Makefile +++ www/elixir-phoenix/Makefile @@ -15,7 +15,7 @@ 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 Index: www/elixir-phoenix_ecto/Makefile =================================================================== --- www/elixir-phoenix_ecto/Makefile +++ www/elixir-phoenix_ecto/Makefile @@ -22,4 +22,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-phoenix_html/Makefile =================================================================== --- www/elixir-phoenix_html/Makefile +++ www/elixir-phoenix_html/Makefile @@ -19,4 +19,6 @@ MIX_RUN_DEPS:= ${MIX_BUILD_DEPS} MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-phoenix_pubsub/Makefile =================================================================== --- www/elixir-phoenix_pubsub/Makefile +++ www/elixir-phoenix_pubsub/Makefile @@ -17,4 +17,6 @@ MIX_REWRITE= yes +OPTIONS_DEFINE= DOCS + .include Index: www/elixir-webassembly/Makefile =================================================================== --- www/elixir-webassembly/Makefile +++ www/elixir-webassembly/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= herenowcoder +OPTIONS_DEFINE= DOCS + .include Index: www/erlang-cowboy/Makefile =================================================================== --- www/erlang-cowboy/Makefile +++ www/erlang-cowboy/Makefile @@ -18,7 +18,9 @@ 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} Index: www/erlang-cowlib/Makefile =================================================================== --- www/erlang-cowlib/Makefile +++ www/erlang-cowlib/Makefile @@ -15,4 +15,6 @@ USE_GITHUB= yes GH_ACCOUNT= ninenines +OPTIONS_DEFINE= DOCS + .include Index: www/erlang-hackney/Makefile =================================================================== --- www/erlang-hackney/Makefile +++ www/erlang-hackney/Makefile @@ -21,6 +21,8 @@ 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 Index: www/erlang-ibrowse/Makefile =================================================================== --- www/erlang-ibrowse/Makefile +++ www/erlang-ibrowse/Makefile @@ -16,4 +16,6 @@ USE_GITHUB= yes GH_ACCOUNT= cmullaparthi +OPTIONS_DEFINE= DOCS + .include Index: www/erlang-mochiweb-basho/Makefile =================================================================== --- www/erlang-mochiweb-basho/Makefile +++ www/erlang-mochiweb-basho/Makefile @@ -18,7 +18,9 @@ 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} Index: www/erlang-mochiweb/Makefile =================================================================== --- www/erlang-mochiweb/Makefile +++ www/erlang-mochiweb/Makefile @@ -18,7 +18,9 @@ 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} Index: www/erlang-webmachine/Makefile =================================================================== --- www/erlang-webmachine/Makefile +++ www/erlang-webmachine/Makefile @@ -17,4 +17,6 @@ ERL_BUILD_DEPS= www/erlang-mochiweb-basho ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} +OPTIONS_DEFINE= DOCS + .include Index: www/hypermail/Makefile =================================================================== --- www/hypermail/Makefile +++ www/hypermail/Makefile @@ -24,6 +24,8 @@ CFLAGS+= -L${LOCALBASE}/lib WRKSRC= ${WRKDIR}/${PORTNAME} +OPTIONS_DEFINE= DOCS + post-install: ${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/hypermail \ ${STAGEDIR}/${PREFIX}/bin/msg2archive \ Index: www/jericho-html/Makefile =================================================================== --- www/jericho-html/Makefile +++ www/jericho-html/Makefile @@ -21,6 +21,8 @@ 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} \ Index: www/linux-opera/Makefile =================================================================== --- www/linux-opera/Makefile +++ www/linux-opera/Makefile @@ -38,6 +38,8 @@ 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 Index: www/luakit/Makefile =================================================================== --- www/luakit/Makefile +++ www/luakit/Makefile @@ -30,7 +30,7 @@ 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 Index: www/mod_auth_cas/Makefile =================================================================== --- www/mod_auth_cas/Makefile +++ www/mod_auth_cas/Makefile @@ -35,7 +35,7 @@ APMOD_FILE= 250_${PORTNAME}.conf.sample PLIST_SUB+= APMOD_FILE=${APMOD_FILE} -.include +OPTIONS_DEFINE= DOCS do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} ${STAGEDIR}${DOCSDIR} @@ -46,4 +46,4 @@ ${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} -.include +.include Index: www/mod_auth_external2/Makefile =================================================================== --- www/mod_auth_external2/Makefile +++ www/mod_auth_external2/Makefile @@ -21,7 +21,9 @@ PORTDOCS= AUTHENTICATORS INSTALL README -post-install: +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: www/mod_auth_mysql_another/Makefile =================================================================== --- www/mod_auth_mysql_another/Makefile +++ www/mod_auth_mysql_another/Makefile @@ -25,6 +25,8 @@ PORTDOCS= CONFIGURE CHANGES +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: www/mod_auth_pam2/Makefile =================================================================== --- www/mod_auth_pam2/Makefile +++ www/mod_auth_pam2/Makefile @@ -24,6 +24,8 @@ AP_EXTRAS+= -lpam +OPTIONS_DEFINE= DOCS EXAMPLES + post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/samples/httpd ${STAGEDIR}${EXAMPLESDIR}/pam-httpd.sample Index: www/mod_auth_pgsql2/Makefile =================================================================== --- www/mod_auth_pgsql2/Makefile +++ www/mod_auth_pgsql2/Makefile @@ -19,6 +19,8 @@ AP_GENPLIST= yes PORTDOCS= mod_auth_pgsql.html +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: www/mod_authnz_external24/Makefile =================================================================== --- www/mod_authnz_external24/Makefile +++ www/mod_authnz_external24/Makefile @@ -21,6 +21,8 @@ PORTDOCS= AUTHENTICATORS INSTALL README \ CHANGES UPGRADE INSTALL.HARDCODE +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: www/mod_cfg_ldap/Makefile =================================================================== --- www/mod_cfg_ldap/Makefile +++ www/mod_cfg_ldap/Makefile @@ -26,7 +26,9 @@ 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} Index: www/mod_chroot/Makefile =================================================================== --- www/mod_chroot/Makefile +++ www/mod_chroot/Makefile @@ -17,6 +17,8 @@ PORTDOCS= INSTALL CAVEATS README.Apache20 README +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: www/mod_cvs2/Makefile =================================================================== --- www/mod_cvs2/Makefile +++ www/mod_cvs2/Makefile @@ -22,6 +22,8 @@ PORTDOCS= reference.html guide.html README +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} Index: www/mod_domaintree/Makefile =================================================================== --- www/mod_domaintree/Makefile +++ www/mod_domaintree/Makefile @@ -18,6 +18,8 @@ PORTDOCS= LICENSE.txt ChangeLog +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Index: www/mod_evasive/Makefile =================================================================== --- www/mod_evasive/Makefile +++ www/mod_evasive/Makefile @@ -24,6 +24,8 @@ PORTDOCS= README test.pl +OPTIONS_DEFINE= DOCS + .include post-patch: Index: www/mod_fastcgi/Makefile =================================================================== --- www/mod_fastcgi/Makefile +++ www/mod_fastcgi/Makefile @@ -19,7 +19,9 @@ 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} Index: www/mod_geoip2/Makefile =================================================================== --- www/mod_geoip2/Makefile +++ www/mod_geoip2/Makefile @@ -26,6 +26,8 @@ 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} Index: www/mod_gzip2/Makefile =================================================================== --- www/mod_gzip2/Makefile +++ www/mod_gzip2/Makefile @@ -21,6 +21,8 @@ PORTDOCS= commands.txt samples.txt PORTEXAMPLES= mod_gzip2.conf.sample +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${MV} ${WRKSRC}/mod_gzip.c ${WRKSRC}/${PORTNAME}.c Index: www/mod_http2-devel/Makefile =================================================================== --- www/mod_http2-devel/Makefile +++ www/mod_http2-devel/Makefile @@ -31,6 +31,8 @@ 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 \ Index: www/mod_limitipconn2/Makefile =================================================================== --- www/mod_limitipconn2/Makefile +++ www/mod_limitipconn2/Makefile @@ -22,6 +22,8 @@ PORTDOCS= ChangeLog INSTALL README +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}/ Index: www/mod_md-devel/Makefile =================================================================== --- www/mod_md-devel/Makefile +++ www/mod_md-devel/Makefile @@ -39,6 +39,8 @@ DOCSDIR= share/doc/mod_md PORTDOCS= README README.md +OPTIONS_DEFINE= DOCS + .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100085 && ${SSL_DEFAULT} == base Index: www/mod_rpaf2/Makefile =================================================================== --- www/mod_rpaf2/Makefile +++ www/mod_rpaf2/Makefile @@ -31,11 +31,11 @@ PORTDOCS= README.md -.include +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 +.include Index: www/mod_tsa/Makefile =================================================================== --- www/mod_tsa/Makefile +++ www/mod_tsa/Makefile @@ -11,7 +11,7 @@ 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 Index: www/p5-CGI.pm/Makefile =================================================================== --- www/p5-CGI.pm/Makefile +++ www/p5-CGI.pm/Makefile @@ -32,6 +32,8 @@ 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 Index: www/php-templates/Makefile =================================================================== --- www/php-templates/Makefile +++ www/php-templates/Makefile @@ -26,6 +26,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR} ${INSTALL_LIB} ${WRKSRC}/modules/templates.so \ Index: www/pmwiki/Makefile =================================================================== --- www/pmwiki/Makefile +++ www/pmwiki/Makefile @@ -25,6 +25,8 @@ SUB_LIST+= PMWIKIDIR=${PMWIKIDIR} SUB_FILES= pkg-message +OPTIONS_DEFINE= DOCS + pre-fetch: .if !defined(PMWIKIDIR) @${ECHO_MSG} "" Index: www/polipo/Makefile =================================================================== --- www/polipo/Makefile +++ www/polipo/Makefile @@ -18,6 +18,8 @@ INFO= polipo +OPTIONS_DEFINE= DOCS + .include DOCSDIR= ${DATADIR}/www/doc @@ -27,7 +29,7 @@ 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 Index: www/privatebin/Makefile =================================================================== --- www/privatebin/Makefile +++ www/privatebin/Makefile @@ -19,6 +19,8 @@ USE_GITHUB= yes GH_PROJECT= PrivateBin +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's:%%DATADBDIR%%:/var/db/${PORTNAME}:' \ ${WRKSRC}/index.php Index: www/py-pyweblib/Makefile =================================================================== --- www/py-pyweblib/Makefile +++ www/py-pyweblib/Makefile @@ -20,7 +20,7 @@ pyweblib.session.html pyweblib.sslenv.html EXAMPLES= *.py -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES PORTEXAMPLES= * Index: www/pycarddav/Makefile =================================================================== --- www/pycarddav/Makefile +++ www/pycarddav/Makefile @@ -32,6 +32,8 @@ SUB_FILES= pkg-message +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/pycard.conf.sample ${STAGEDIR}${EXAMPLESDIR}/pycard.conf.sample Index: www/qdecoder/Makefile =================================================================== --- www/qdecoder/Makefile +++ www/qdecoder/Makefile @@ -20,7 +20,7 @@ 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: Index: www/roundup/Makefile =================================================================== --- www/roundup/Makefile +++ www/roundup/Makefile @@ -17,7 +17,7 @@ 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 Index: www/spdylay/Makefile =================================================================== --- www/spdylay/Makefile +++ www/spdylay/Makefile @@ -34,6 +34,8 @@ PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-install: ${INSTALL_SCRIPT} ${WRKSRC}/examples/spdycli ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_DATA} ${WRKSRC}/shrpx.conf.sample ${STAGEDIR}${PREFIX}/etc/ Index: www/spreadlogd/Makefile =================================================================== --- www/spreadlogd/Makefile +++ www/spreadlogd/Makefile @@ -21,6 +21,8 @@ PORTDOCS= README +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/spreadlogd.c Index: www/squidanalyzer/Makefile =================================================================== --- www/squidanalyzer/Makefile +++ www/squidanalyzer/Makefile @@ -33,6 +33,8 @@ CONF_FILES= excluded included network-aliases \ squidanalyzer.conf user-aliases +OPTIONS_DEFINE= DOCS + post-install: .for file in ${CONF_FILES} @${MV} ${STAGEDIR}${ETCDIR}/${file} \ Index: www/trac-tweakui/Makefile =================================================================== --- www/trac-tweakui/Makefile +++ www/trac-tweakui/Makefile @@ -27,6 +27,8 @@ WRKSRC= ${WRKDIR}/trac${PORTNAME}plugin/0.11 +OPTIONS_DEFINE= EXAMPLES + post-install: cd ${WRKSRC}/tractweakui/htdocs && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} Index: www/ufdbguard/Makefile =================================================================== --- www/ufdbguard/Makefile +++ www/ufdbguard/Makefile @@ -57,7 +57,7 @@ MAKE_JOBS_UNSAFE= yes -OPTIONS_DEFINE= UNIXSOCKETS +OPTIONS_DEFINE= UNIXSOCKETS EXAMPLES UNIXSOCKETS_CONFIGURE_WITH= unix-sockets Index: www/varnish-libvmod-awsrest/Makefile =================================================================== --- www/varnish-libvmod-awsrest/Makefile +++ www/varnish-libvmod-awsrest/Makefile @@ -24,4 +24,6 @@ USE_GITHUB= yes GH_ACCOUNT= xcir +OPTIONS_DEFINE= DOCS + .include Index: www/varnish-libvmod-digest/Makefile =================================================================== --- www/varnish-libvmod-digest/Makefile +++ www/varnish-libvmod-digest/Makefile @@ -23,4 +23,6 @@ USE_GITHUB= yes GH_ACCOUNT= varnish +OPTIONS_DEFINE= DOCS + .include Index: www/varnish-libvmod-maxminddb/Makefile =================================================================== --- www/varnish-libvmod-maxminddb/Makefile +++ www/varnish-libvmod-maxminddb/Makefile @@ -26,4 +26,6 @@ MAKE_JOBS_UNSAFE= yes +OPTIONS_DEFINE= DOCS + .include Index: www/varnish4/Makefile =================================================================== --- www/varnish4/Makefile +++ www/varnish4/Makefile @@ -44,6 +44,8 @@ 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|} Index: www/varnish5/Makefile =================================================================== --- www/varnish5/Makefile +++ www/varnish5/Makefile @@ -43,6 +43,8 @@ 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|} Index: www/varnish6/Makefile =================================================================== --- www/varnish6/Makefile +++ www/varnish6/Makefile @@ -43,8 +43,10 @@ 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 Index: www/volta/Makefile =================================================================== --- www/volta/Makefile +++ www/volta/Makefile @@ -25,6 +25,8 @@ PORTDOCS= README INSTALL LICENSE ChangeLog SUB_FILES= pkg-message +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} Index: www/webinject/Makefile =================================================================== --- www/webinject/Makefile +++ www/webinject/Makefile @@ -32,6 +32,8 @@ PORTDOCS= LICENSE README +OPTIONS_DEFINE= DOCS + do-install: @${MKDIR} ${STAGEDIR}${DATADIR} @cd ${WRKSRC} && ${INSTALL_DATA} *.xml ${STAGEDIR}${DATADIR} Index: www/websh/Makefile =================================================================== --- www/websh/Makefile +++ www/websh/Makefile @@ -29,6 +29,8 @@ 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 Index: www/www6to4/Makefile =================================================================== --- www/www6to4/Makefile +++ www/www6to4/Makefile @@ -20,6 +20,8 @@ ALL_TARGET= www6to4 +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's,/etc,${ETCDIR},' \ ${WRKSRC}/www6to4.c ${WRKSRC}/www6to4.conf Index: www/xombrero/Makefile =================================================================== --- www/xombrero/Makefile +++ www/xombrero/Makefile @@ -36,6 +36,8 @@ 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|' \ Index: www/xshttpd-devel/Makefile =================================================================== --- www/xshttpd-devel/Makefile +++ www/xshttpd-devel/Makefile @@ -22,7 +22,7 @@ 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+ Index: www/xshttpd/Makefile =================================================================== --- www/xshttpd/Makefile +++ www/xshttpd/Makefile @@ -24,7 +24,7 @@ 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 Index: x11-clocks/kteatime/Makefile =================================================================== --- x11-clocks/kteatime/Makefile +++ x11-clocks/kteatime/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: x11-clocks/ktimer/Makefile =================================================================== --- x11-clocks/ktimer/Makefile +++ x11-clocks/ktimer/Makefile @@ -14,4 +14,6 @@ USE_QT= core dbus gui network widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: x11-drivers/xf86-video-qxl/Makefile =================================================================== --- x11-drivers/xf86-video-qxl/Makefile +++ x11-drivers/xf86-video-qxl/Makefile @@ -24,6 +24,8 @@ 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 \ Index: x11-fm/dolphin/Makefile =================================================================== --- x11-fm/dolphin/Makefile +++ x11-fm/dolphin/Makefile @@ -29,4 +29,6 @@ PLIST_SUB+= SHLIB_VER="${SHLIB_VER}" \ SHLIB_SHVER="${SHLIB_VER:R:R}" +OPTIONS_DEFINE= DOCS + .include Index: x11-fm/konqueror/Makefile =================================================================== --- x11-fm/konqueror/Makefile +++ x11-fm/konqueror/Makefile @@ -20,4 +20,6 @@ buildtools_build qmake_build USE_XORG= ice sm x11 xext +OPTIONS_DEFINE= DOCS + .include Index: x11-fm/mucommander/Makefile =================================================================== --- x11-fm/mucommander/Makefile +++ x11-fm/mucommander/Makefile @@ -22,6 +22,8 @@ WRKSRC= ${WRKDIR}/muCommander-${PORTVERSION:S/./_/g} +OPTIONS_DEFINE= DOCS + do-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/mucommander.jar ${STAGEDIR}${DATADIR} Index: x11-fm/rodent/Makefile =================================================================== --- x11-fm/rodent/Makefile +++ x11-fm/rodent/Makefile @@ -30,7 +30,7 @@ PORTDOCS= * -OPTIONS_DEFINE= NLS +OPTIONS_DEFINE= NLS DOCS OPTIONS_SUB= yes NLS_USES= gettext Index: x11-fonts/averiagwf/Makefile =================================================================== --- x11-fonts/averiagwf/Makefile +++ x11-fonts/averiagwf/Makefile @@ -19,6 +19,8 @@ PORTDOCS= FONTLOG.txt +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${FONTSDIR} cd ${WRKSRC} && ${INSTALL_DATA} *.ttf ${STAGEDIR}${FONTSDIR} Index: x11-fonts/linux-c6-fontconfig/Makefile =================================================================== --- x11-fonts/linux-c6-fontconfig/Makefile +++ x11-fonts/linux-c6-fontconfig/Makefile @@ -16,6 +16,8 @@ USE_LINUX= expat USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + post-patch: @${RM} -r ${WRKSRC}/etc ${WRKSRC}/usr/share/fonts ${WRKSRC}/var Index: x11-fonts/linux-c7-fontconfig/Makefile =================================================================== --- x11-fonts/linux-c7-fontconfig/Makefile +++ x11-fonts/linux-c7-fontconfig/Makefile @@ -18,6 +18,8 @@ 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 Index: x11-fonts/mkbold-mkitalic/Makefile =================================================================== --- x11-fonts/mkbold-mkitalic/Makefile +++ x11-fonts/mkbold-mkitalic/Makefile @@ -16,6 +16,8 @@ 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}) Index: x11-fonts/webfonts/Makefile =================================================================== --- x11-fonts/webfonts/Makefile +++ x11-fonts/webfonts/Makefile @@ -32,7 +32,7 @@ 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 Index: x11-themes/sddm-freebsd-black-theme/Makefile =================================================================== --- x11-themes/sddm-freebsd-black-theme/Makefile +++ x11-themes/sddm-freebsd-black-theme/Makefile @@ -25,6 +25,8 @@ SUB_FILES= pkg-message PORTDOCS= README.md AUTHORS COPYING TRADEMARKS +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${THEMEDIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${THEMEDIR} \ Index: x11-themes/slim-freebsd-black-theme/Makefile =================================================================== --- x11-themes/slim-freebsd-black-theme/Makefile +++ x11-themes/slim-freebsd-black-theme/Makefile @@ -24,6 +24,8 @@ SUB_FILES= pkg-message PORTDOCS= README.md AUTHORS COPYING TRADEMARKS +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${THEMEDIR} (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${THEMEDIR} \ Index: x11-toolkits/gtksourceview3/Makefile =================================================================== --- x11-toolkits/gtksourceview3/Makefile +++ x11-toolkits/gtksourceview3/Makefile @@ -37,6 +37,8 @@ LIBS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|tests testsuite||g' \ ${WRKSRC}/Makefile.in Index: x11-toolkits/libxaw3dxft/Makefile =================================================================== --- x11-toolkits/libxaw3dxft/Makefile +++ x11-toolkits/libxaw3dxft/Makefile @@ -26,6 +26,8 @@ DOCSDIR= ${LOCALBASE}/share/doc/libXaw3dXft PORTDOCS= * +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} '/^typedef.*Pixel;/d' ${WRKSRC}/src/Xaw3dXft.c Index: x11-toolkits/linux-c6-openmotif/Makefile =================================================================== --- x11-toolkits/linux-c6-openmotif/Makefile +++ x11-toolkits/linux-c6-openmotif/Makefile @@ -16,6 +16,8 @@ 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 Index: x11-toolkits/linux-c6-pango/Makefile =================================================================== --- x11-toolkits/linux-c6-pango/Makefile +++ x11-toolkits/linux-c6-pango/Makefile @@ -16,4 +16,6 @@ USE_LINUX= cairo fontconfig libthai xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: x11-toolkits/linux-c6-tk85/Makefile =================================================================== --- x11-toolkits/linux-c6-tk85/Makefile +++ x11-toolkits/linux-c6-tk85/Makefile @@ -19,4 +19,6 @@ USE_LINUX_RPM= yes USE_LINUX_RPM_BAD_PERMS= yes +OPTIONS_DEFINE= DOCS + .include Index: x11-toolkits/linux-c7-openmotif/Makefile =================================================================== --- x11-toolkits/linux-c7-openmotif/Makefile +++ x11-toolkits/linux-c7-openmotif/Makefile @@ -18,6 +18,8 @@ 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 Index: x11-toolkits/linux-c7-pango/Makefile =================================================================== --- x11-toolkits/linux-c7-pango/Makefile +++ x11-toolkits/linux-c7-pango/Makefile @@ -17,4 +17,6 @@ USE_LINUX= cairo fontconfig harfbuzz libthai xorglibs USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + .include Index: x11-toolkits/linux-c7-tk85/Makefile =================================================================== --- x11-toolkits/linux-c7-tk85/Makefile +++ x11-toolkits/linux-c7-tk85/Makefile @@ -21,4 +21,6 @@ USE_LINUX_RPM= yes USE_LINUX_RPM_BAD_PERMS= yes +OPTIONS_DEFINE= DOCS + .include Index: x11-toolkits/osm-gps-map/Makefile =================================================================== --- x11-toolkits/osm-gps-map/Makefile +++ x11-toolkits/osm-gps-map/Makefile @@ -21,4 +21,6 @@ MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig" INSTALL_TARGET= install-strip +OPTIONS_DEFINE= DOCS + .include Index: x11-toolkits/py-fltk/Makefile =================================================================== --- x11-toolkits/py-fltk/Makefile +++ x11-toolkits/py-fltk/Makefile @@ -30,6 +30,8 @@ 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 Index: x11-wm/blackbox/Makefile =================================================================== --- x11-wm/blackbox/Makefile +++ x11-wm/blackbox/Makefile @@ -22,7 +22,7 @@ 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 Index: x11-wm/ctwm/Makefile =================================================================== --- x11-wm/ctwm/Makefile +++ x11-wm/ctwm/Makefile @@ -16,4 +16,6 @@ USES= cmake:outsource jpeg tar:xz USE_XORG= x11 xext xt ice sm xpm xmu +OPTIONS_DEFINE= DOCS EXAMPLES + .include Index: x11-wm/larswm/Makefile =================================================================== --- x11-wm/larswm/Makefile +++ x11-wm/larswm/Makefile @@ -19,6 +19,8 @@ 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} Index: x11-wm/xfce4-panel-profiles/Makefile =================================================================== --- x11-wm/xfce4-panel-profiles/Makefile +++ x11-wm/xfce4-panel-profiles/Makefile @@ -19,6 +19,8 @@ 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 Index: x11/alttab/Makefile =================================================================== --- x11/alttab/Makefile +++ x11/alttab/Makefile @@ -28,4 +28,6 @@ alttab.ad \ wm-setup.md +OPTIONS_DEFINE= DOCS + .include Index: x11/konsole/Makefile =================================================================== --- x11/konsole/Makefile +++ x11/konsole/Makefile @@ -21,4 +21,6 @@ widgets xml \ buildtools_build qmake_build +OPTIONS_DEFINE= DOCS + .include Index: x11/libXcm/Makefile =================================================================== --- x11/libXcm/Makefile +++ x11/libXcm/Makefile @@ -19,4 +19,6 @@ INSTALL_TARGET= install-strip PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include Index: x11/lightdm-gtk-greeter/Makefile =================================================================== --- x11/lightdm-gtk-greeter/Makefile +++ x11/lightdm-gtk-greeter/Makefile @@ -21,6 +21,8 @@ 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) Index: x11/linux-c6-xorg-libs/Makefile =================================================================== --- x11/linux-c6-xorg-libs/Makefile +++ x11/linux-c6-xorg-libs/Makefile @@ -81,6 +81,8 @@ USE_LINUX= fontconfig USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + post-patch: @${RM} -r ${WRKSRC}/usr/share/icons Index: x11/linux-c7-xorg-libs/Makefile =================================================================== --- x11/linux-c7-xorg-libs/Makefile +++ x11/linux-c7-xorg-libs/Makefile @@ -85,6 +85,8 @@ USE_LINUX= fontconfig USE_LINUX_RPM= yes +OPTIONS_DEFINE= DOCS + post-patch: @${RM} -r ${WRKSRC}/usr/share/icons Index: x11/mate-desktop/Makefile =================================================================== --- x11/mate-desktop/Makefile +++ x11/mate-desktop/Makefile @@ -49,4 +49,6 @@ org.mate.typing-break.gschema.xml \ org.mate.debug.gschema.xml +OPTIONS_DEFINE= DOCS + .include Index: x11/mate-panel/Makefile =================================================================== --- x11/mate-panel/Makefile +++ x11/mate-panel/Makefile @@ -44,4 +44,6 @@ org.mate.panel.object.gschema.xml \ org.mate.panel.toplevel.gschema.xml +OPTIONS_DEFINE= DOCS + .include Index: x11/menulibre/Makefile =================================================================== --- x11/menulibre/Makefile +++ x11/menulibre/Makefile @@ -22,6 +22,8 @@ USE_PYTHON= distutils INSTALLS_ICONS= yes +OPTIONS_DEFINE= DOCS + .include PYDISTUTILS_INSTALLARGS:= ${PYDISTUTILS_INSTALLARGS:N--single-version-externally-managed} Index: x11/mrxvt-devel/Makefile =================================================================== --- x11/mrxvt-devel/Makefile +++ x11/mrxvt-devel/Makefile @@ -28,7 +28,7 @@ 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 Index: x11/rxvt-unicode/Makefile =================================================================== --- x11/rxvt-unicode/Makefile +++ x11/rxvt-unicode/Makefile @@ -73,10 +73,10 @@ 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 Index: x11/trayer/Makefile =================================================================== --- x11/trayer/Makefile +++ x11/trayer/Makefile @@ -26,6 +26,8 @@ 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} Index: x11/urxvt-perls/Makefile =================================================================== --- x11/urxvt-perls/Makefile +++ x11/urxvt-perls/Makefile @@ -21,6 +21,8 @@ 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} Index: x11/wbarconf/Makefile =================================================================== --- x11/wbarconf/Makefile +++ x11/wbarconf/Makefile @@ -23,6 +23,8 @@ PORTDOCS= README COPYING INSTALLS_ICONS= yes +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DATADIR} Index: x11/xcm/Makefile =================================================================== --- x11/xcm/Makefile +++ x11/xcm/Makefile @@ -30,4 +30,6 @@ man/man1/xcmevents.1.gz man/man1/xcmhextobin.1.gz PORTDOCS= * +OPTIONS_DEFINE= DOCS + .include Index: x11/xkbset/Makefile =================================================================== --- x11/xkbset/Makefile +++ x11/xkbset/Makefile @@ -28,10 +28,10 @@ .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