diff options
author | adamw <adamw@FreeBSD.org> | 2014-07-16 07:11:12 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-07-16 07:11:12 +0800 |
commit | 9343eeba7783ac2ce4c8f5c88ab322647d489c19 (patch) | |
tree | 37076f8661cc0a667d6e54eab2728ecc665430a0 | |
parent | d5dd4663dfc459a5aa6a241eff9b72f253fbc4e8 (diff) | |
download | freebsd-ports-gnome-9343eeba7783ac2ce4c8f5c88ab322647d489c19.tar.gz freebsd-ports-gnome-9343eeba7783ac2ce4c8f5c88ab322647d489c19.tar.zst freebsd-ports-gnome-9343eeba7783ac2ce4c8f5c88ab322647d489c19.zip |
Add OPTIONS_DEFINE=DOCS for ports with %%PORTDOCS%% in the plist.
Where possible, correct a few instances where PORTDOCS was being used
to flag stuff in EXAMPLESDIR. For some ports, mostly those owned by
ruby@, PORTDOCS is applied to pretty much everything whether it's
documentation or example.
115 files changed, 237 insertions, 55 deletions
diff --git a/archivers/bzip2/Makefile b/archivers/bzip2/Makefile index d0c4e73e1a24..9a441f78a2b7 100644 --- a/archivers/bzip2/Makefile +++ b/archivers/bzip2/Makefile @@ -12,6 +12,8 @@ COMMENT= Block-sorting file compressor USE_LDCONFIG= yes PATCH_STRIP= -p3 +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bzip2 ${STAGEDIR}${PREFIX}/bin ${LN} -sf ${PREFIX}/bin/bzip2 ${STAGEDIR}${PREFIX}/bin/bunzip2 diff --git a/archivers/macutils/Makefile b/archivers/macutils/Makefile index 641e735361b6..043701a20a2b 100644 --- a/archivers/macutils/Makefile +++ b/archivers/macutils/Makefile @@ -19,6 +19,8 @@ DOCFILES= README.crc README.hexbin README.macput README.unpit \ README.zoom README.crc.orig README.macget README.scan \ README.unsit ../README +OPTIONS_DEFINE= DOCS + # The distribution has a naff install target which doesn't install man # pages so here is a decent one. # diff --git a/archivers/ruby-lha/Makefile b/archivers/ruby-lha/Makefile index 36dc6892a776..6a37f89e33fa 100644 --- a/archivers/ruby-lha/Makefile +++ b/archivers/ruby-lha/Makefile @@ -23,6 +23,8 @@ CONFIGURE_ARGS= --rubyprog=${RUBY} EXAMPLES= test/test.rb RUBY_SHEBANG_FILES= ${EXAMPLES} +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} ${INSTALL_SCRIPT} ${EXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} diff --git a/archivers/tclmkziplib/Makefile b/archivers/tclmkziplib/Makefile index 5a11a94a81ea..29a3a684f594 100644 --- a/archivers/tclmkziplib/Makefile +++ b/archivers/tclmkziplib/Makefile @@ -22,6 +22,8 @@ MAKE_ENV= VERSION=${PORTVERSION:S/.//} \ PLIST_SUB+= VERSION=${PORTVERSION:S/.//} +OPTIONS_DEFINE= DOCS + do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/lib/mkZiplib ${INSTALL_LIB} ${WRKSRC}/mkZiplib${PORTVERSION:S/.//}.so ${STAGEDIR}${PREFIX}/lib/mkZiplib diff --git a/astro/wcslib/Makefile b/astro/wcslib/Makefile index 2da1982bc073..1817874d151a 100644 --- a/astro/wcslib/Makefile +++ b/astro/wcslib/Makefile @@ -21,7 +21,7 @@ PLIST_SUB= VERSION="${PORTVERSION}" # See makedefs.in which describes why you want to set the extra support. # For most users it will not be required. -OPTIONS_DEFINE= CFITSIO PGPLOT +OPTIONS_DEFINE= CFITSIO PGPLOT DOCS OPTIONS_SUB= yes CFITSIO_DESC= Add cfitsio support (for tests only) PGPLOT_DESC= Add pgplot support (for tests only) diff --git a/audio/abcmidi/Makefile b/audio/abcmidi/Makefile index 45f06a5e09bb..a821c1c465e2 100644 --- a/audio/abcmidi/Makefile +++ b/audio/abcmidi/Makefile @@ -20,6 +20,8 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -DANSILIBS -c" LNK="${CC}" MANPAGES= abc2abc.1 abc2midi.1 mftext.1 midi2abc.1 midicopy.1 yaps.1 +OPTIONS_DEFINE= DOCS + do-install: .for FILE in abc2abc abc2midi abcmatch mftext midi2abc midicopy yaps ${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${STAGEDIR}${PREFIX}/bin diff --git a/audio/calf/Makefile b/audio/calf/Makefile index 6abe2da2974b..07f39da72076 100644 --- a/audio/calf/Makefile +++ b/audio/calf/Makefile @@ -27,7 +27,7 @@ INSTALLS_ICONS= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS_DEFINE= LASH LV2 +OPTIONS_DEFINE= LASH LV2 DOCS OPTIONS_DEFAULT= LASH LV2 OPTIONS_SUB= yes diff --git a/audio/chordpack/Makefile b/audio/chordpack/Makefile index edd45ac53d3e..fed755c50aaa 100644 --- a/audio/chordpack/Makefile +++ b/audio/chordpack/Makefile @@ -17,6 +17,8 @@ USE_PERL5= run NO_WRKSUBDIR= true NO_BUILD= true +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKDIR}/chordpack ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${PREFIX}/share/emacs/site-lisp diff --git a/audio/eawpats/Makefile b/audio/eawpats/Makefile index 10d3993de5db..3e0b07424c89 100644 --- a/audio/eawpats/Makefile +++ b/audio/eawpats/Makefile @@ -22,6 +22,8 @@ DOC_SUBDIRS= ethnic gsdrum08 gsdrum25 gsdrum40 power wime WRKSRC= ${WRKDIR}/${PORTNAME} TIMIDITY_DATADIR= ${PREFIX}/share/timidity +OPTIONS_DEFINE= DOCS + .include <bsd.port.options.mk> post-patch: diff --git a/audio/espeak/Makefile b/audio/espeak/Makefile index b249667599e9..cb13fd5a419f 100644 --- a/audio/espeak/Makefile +++ b/audio/espeak/Makefile @@ -17,6 +17,7 @@ LICENSE= GPLv3 LIB_DEPENDS= ${PORTAUDIOLIB} \ ${PULSEAUDIOLIB} +OPTIONS_DEFINE= DOCS OPTIONS_DEFAULT= PORTAUDIO OPTIONS_RADIO= AUDIO_SYSTEM OPTIONS_RADIO_AUDIO_SYSTEM= PORTAUDIO PULSEAUDIO RUNTIME diff --git a/audio/idjc/Makefile b/audio/idjc/Makefile index 19c7958283f9..c942c4148981 100644 --- a/audio/idjc/Makefile +++ b/audio/idjc/Makefile @@ -27,6 +27,8 @@ RUN_DEPENDS= oggenc:${PORTSDIR}/audio/vorbis-tools \ ${PYTHON_PKGNAMEPREFIX}mutagen>=0:${PORTSDIR}/audio/py-mutagen \ ${PYTHON_PKGNAMEPREFIX}dbus>=0.8:${PORTSDIR}/devel/py-dbus +OPTIONS_DEFINE= DOCS + USES= compiler:nestedfct desktop-file-utils gettext gmake \ libtool pathfix pkgconfig LDFLAGS= -L${LOCALBASE}/lib diff --git a/audio/lame/Makefile b/audio/lame/Makefile index 4b49eedb6aff..2a94c7029d3e 100644 --- a/audio/lame/Makefile +++ b/audio/lame/Makefile @@ -19,6 +19,8 @@ RESTRICTED= patent issues, see http://www.mp3licensing.com/ DOC_FILES= API LICENSE README TODO USAGE +OPTIONS_DEFINE= DOCS + .include <bsd.port.pre.mk> .if ${ARCH} == "i386" diff --git a/audio/ruby-audiofile/Makefile b/audio/ruby-audiofile/Makefile index 8a2d009a487f..55ea77d9b2b3 100644 --- a/audio/ruby-audiofile/Makefile +++ b/audio/ruby-audiofile/Makefile @@ -27,6 +27,8 @@ REINPLACE_ARGS= -i "" DOCS= audiofile.rd +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -E -e "s,/home/jaredj/ruby-lib/(cddb),\1,g" \ ${CDDB_WRKSRC}/wavcddb diff --git a/audio/ruby-freedb/Makefile b/audio/ruby-freedb/Makefile index 015678470edd..6556feb42493 100644 --- a/audio/ruby-freedb/Makefile +++ b/audio/ruby-freedb/Makefile @@ -21,6 +21,8 @@ INSTALL_TARGET= site-install DOCS= CHANGELOG README doc EXAMPLES= examples/*.rb +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -E -e "s,RSTRING\(([^)]+)\)->ptr,RSTRING_PTR(\1),g" ${WRKSRC}/freedb_cdrom.c diff --git a/audio/ruby-mp3info/Makefile b/audio/ruby-mp3info/Makefile index 96e676445487..62f094ae247c 100644 --- a/audio/ruby-mp3info/Makefile +++ b/audio/ruby-mp3info/Makefile @@ -22,6 +22,8 @@ CONFIGURE_ARGS= --prefix=${PREFIX} DOCS= CHANGELOG EXAMPLES README +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/test.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ diff --git a/audio/ruby-mp3tag/Makefile b/audio/ruby-mp3tag/Makefile index cef2dbd0427c..7262aa99c800 100644 --- a/audio/ruby-mp3tag/Makefile +++ b/audio/ruby-mp3tag/Makefile @@ -21,6 +21,8 @@ NO_BUILD= yes DOCS= README \ ${RUBY_RD_HTML_FILES} +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -E \ -e "s,^(require[[:space:]]+')\./mp3tag(.*),\1mp3tag\2," \ diff --git a/audio/ruby-smf/Makefile b/audio/ruby-smf/Makefile index 2337d484501c..2e36242b3df1 100644 --- a/audio/ruby-smf/Makefile +++ b/audio/ruby-smf/Makefile @@ -20,6 +20,8 @@ DOCS_EN= MANUAL.en MANUAL.en.html MANUAL.en.rd README.en DOCS_JA= MANUAL MANUAL.html MANUAL.rd README EXAMPLES= sample/* +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/en ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja diff --git a/audio/ufmcontrol-i18n/Makefile b/audio/ufmcontrol-i18n/Makefile index 3a23df788086..ab9b44c776ef 100644 --- a/audio/ufmcontrol-i18n/Makefile +++ b/audio/ufmcontrol-i18n/Makefile @@ -15,6 +15,8 @@ USES= tcl USE_LDCONFIG= yes MAKE_ENV= NO_PROFILE=yes +OPTIONS_DEFINE= DOCS + pre-install: @${MKDIR} ${STAGEDIR}${MAN1PREFIX}/man/it.ISO8859-1/man1 @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/audio/vsound/Makefile b/audio/vsound/Makefile index fc3628007287..807ac52e182b 100644 --- a/audio/vsound/Makefile +++ b/audio/vsound/Makefile @@ -16,6 +16,8 @@ RUN_DEPENDS= sox:${PORTSDIR}/audio/sox USES= libtool GNU_CONFIGURE= yes +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} diff --git a/benchmarks/tsung/Makefile b/benchmarks/tsung/Makefile index b4a70065d213..dd19f0eaa4ac 100644 --- a/benchmarks/tsung/Makefile +++ b/benchmarks/tsung/Makefile @@ -23,6 +23,8 @@ SHEBANG_FILES= src/*.pl.in src/tsung-plotter/tsung/tsung.py PLIST_SUB= PORTVERSION=${PORTVERSION} +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|MAN_DIR = $$(datadir)/man/man1/|MAN_DIR = $$(prefix)/man/man1/| ; \ s|CONFDIR = $$(docdir)/examples|CONFDIR = $$(prefix)/share/examples/tsung|' \ diff --git a/benchmarks/ttcp/Makefile b/benchmarks/ttcp/Makefile index 84a46747e644..515dbde2f365 100644 --- a/benchmarks/ttcp/Makefile +++ b/benchmarks/ttcp/Makefile @@ -21,6 +21,8 @@ LICENSE_TEXT= The license: ${_LICENSE} (${_LICENSE_NAME}) is standard, please re NO_WRKSUBDIR= yes DIST_SUBDIR= ${PORTNAME} +OPTIONS_DEFINE= DOCS + post-extract: ${CP} ${DISTDIR}/${DIST_SUBDIR}/ttcp.c ${WRKSRC} ${CP} ${DISTDIR}/${DIST_SUBDIR}/ttcp.1 ${WRKSRC} diff --git a/biology/seqtools/Makefile b/biology/seqtools/Makefile index 9ea74c613e53..8ea9fc1d4d47 100644 --- a/biology/seqtools/Makefile +++ b/biology/seqtools/Makefile @@ -23,4 +23,6 @@ CFLAGS= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib -lexecinfo -lcurl -lsqlite3 -lm MAKE_JOBS_UNSAFE= yes +OPTIONS_DEFINE= DOCS + .include <bsd.port.mk> diff --git a/cad/kicad-devel/Makefile b/cad/kicad-devel/Makefile index 72cfe88bf668..4cea8d9aa471 100644 --- a/cad/kicad-devel/Makefile +++ b/cad/kicad-devel/Makefile @@ -29,6 +29,8 @@ WX_UNICODE= yes USE_GNOME= atk # Required by libwx_gtk2_aui-2.8.so USE_PYTHON= yes +OPTIONS_DEFINE= DOCS + PLIST_SUB= OPSYS=${OPSYS} \ DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||} diff --git a/chinese/fcitx/Makefile b/chinese/fcitx/Makefile index 01a0ac710117..7673b8edce7f 100644 --- a/chinese/fcitx/Makefile +++ b/chinese/fcitx/Makefile @@ -34,7 +34,7 @@ USES= tar:xz cmake desktop-file-utils gettext iconv pathfix pkgconfig shared-mi INSTALLS_ICONS= yes LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} -OPTIONS_DEFINE= GTK2 GTK3 QT4 OPENCC TPUNC +OPTIONS_DEFINE= GTK2 GTK3 QT4 OPENCC TPUNC DOCS OPTIONS_DEFAULT=GTK2 GTK2_DESC= Enable Gtk2 IM module diff --git a/comms/aprsd/Makefile b/comms/aprsd/Makefile index 4d476e7ea770..98cab1371e8a 100644 --- a/comms/aprsd/Makefile +++ b/comms/aprsd/Makefile @@ -13,6 +13,8 @@ COMMENT= Server daemon providing Internet access to APRS packet data GNU_CONFIGURE= yes SUB_FILES= pkg-message +OPTIONS_DEFINE= DOCS EXAMPLES + .include <bsd.port.pre.mk> post-patch: diff --git a/comms/aprsd/pkg-plist b/comms/aprsd/pkg-plist index 7247ead9f7de..2fe0ddd51a63 100644 --- a/comms/aprsd/pkg-plist +++ b/comms/aprsd/pkg-plist @@ -6,12 +6,12 @@ etc/aprsd/aprsd.conf.samp etc/aprsd/user.deny.samp etc/aprsd/welcome.txt.samp etc/rc.d/aprsd -%%EXAMPLESDIR%%/chkaprsd -%%EXAMPLESDIR%%/udp_example +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/chkaprsd +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/udp_example %%PORTDOCS%%%%DOCSDIR%%/aprsddoc.html %%PORTDOCS%%%%DOCSDIR%%/ports.html %%PORTDOCS%%%%DOCSDIR%%/q.html %%PORTDOCS%%%%DOCSDIR%%/qalgorithm.html %%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% @dirrmtry etc/aprsd diff --git a/comms/chirp/Makefile b/comms/chirp/Makefile index 8db4fe7acea8..02bf01670783 100644 --- a/comms/chirp/Makefile +++ b/comms/chirp/Makefile @@ -19,6 +19,8 @@ BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/serial:${PORTSDIR}/comms/py-serial \ USE_PYTHON= YES USE_PYDISTUTILS= YES +OPTIONS_DEFINE= DOCS + .include <bsd.port.pre.mk> pre-configure: diff --git a/comms/cwdaemon/Makefile b/comms/cwdaemon/Makefile index 902acd695c62..be8268d9606c 100644 --- a/comms/cwdaemon/Makefile +++ b/comms/cwdaemon/Makefile @@ -19,4 +19,6 @@ CONFIGURE_ARGS+= --datadir=${PREFIX}/share/doc GNU_CONFIGURE= yes USES= pkgconfig +OPTIONS_DEFINE= DOCS + .include <bsd.port.mk> diff --git a/comms/ebook2cw/Makefile b/comms/ebook2cw/Makefile index ebf3e0368541..f1243ef07e78 100644 --- a/comms/ebook2cw/Makefile +++ b/comms/ebook2cw/Makefile @@ -15,6 +15,8 @@ LICENSE= GPLv2 LIB_DEPENDS= libmp3lame.so:${PORTSDIR}/audio/lame \ libvorbis.so:${PORTSDIR}/audio/libvorbis +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|'g \ ${WRKSRC}/Makefile diff --git a/comms/echolinux/Makefile b/comms/echolinux/Makefile index 9f732ed40ea2..9bfcee164521 100644 --- a/comms/echolinux/Makefile +++ b/comms/echolinux/Makefile @@ -16,7 +16,7 @@ LICENSE= GPLv2 LIB_DEPENDS= libforms.so:${PORTSDIR}/x11-toolkits/xforms \ libgsm.so:${PORTSDIR}/audio/gsm -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|gcc|$${CC}|' -e 's|/usr/include/X11|$${LOCALBASE}/include|' \ diff --git a/comms/fldigi/Makefile b/comms/fldigi/Makefile index 17d5a28d8984..febbd7015fd9 100644 --- a/comms/fldigi/Makefile +++ b/comms/fldigi/Makefile @@ -28,7 +28,7 @@ CONFIGURE_ENV= FLTK_CONFIG="${LOCALBASE}/bin/fltk-config" \ EXTRA_LIBS="-lexecinfo" SHEBANG_FILES= scripts/fldigi-shell -OPTIONS_DEFINE= NATIVE_OPT FLARQ OSS SNDFILE PORTAUDIO PULSEAUDIO HAMLIB NLS +OPTIONS_DEFINE= NATIVE_OPT FLARQ OSS SNDFILE PORTAUDIO PULSEAUDIO HAMLIB NLS DOCS NATIVE_OPT_DESC= Enable Native Optimizations FLARQ_DESC= Compile flarq diff --git a/comms/flwrap/Makefile b/comms/flwrap/Makefile index 3df1bae33654..c88f91789331 100644 --- a/comms/flwrap/Makefile +++ b/comms/flwrap/Makefile @@ -19,6 +19,8 @@ USES= gmake dos2unix GNU_CONFIGURE= yes CONFIGURE_ENV= FLTK_CONFIG="${LOCALBASE}/bin/fltk-config" +OPTIONS_DEFINE= DOCS + post-configure: @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \ -e 's|^CPPFLAGS|#CPPFLAGS|' \ diff --git a/comms/gkermit/Makefile b/comms/gkermit/Makefile index 6e1769134e09..6a32a660fa71 100644 --- a/comms/gkermit/Makefile +++ b/comms/gkermit/Makefile @@ -14,6 +14,8 @@ NO_WRKSUBDIR= yes ALL_TARGET= posix +OPTIONS_DEFINE= DOCS + post-extract: cd ${WRKSRC} && ${MV} makefile Makefile diff --git a/comms/hamlib/Makefile b/comms/hamlib/Makefile index b8384f9f4131..fca0fd41abb7 100644 --- a/comms/hamlib/Makefile +++ b/comms/hamlib/Makefile @@ -26,6 +26,8 @@ CONFIGURE_ARGS= --with-perl-binding \ --with-python-binding --without-rigmatrix PLIST_SUB= VER=${PORTVERSION} TCL_VER=${TCL_VER} +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} -e 's|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|g' \ -e 's|%%TCL_LIBDIR%%|${TCL_LIBDIR}/hamlib|g' \ diff --git a/comms/hf/Makefile b/comms/hf/Makefile index 98005b88bce0..bc1488d78c92 100644 --- a/comms/hf/Makefile +++ b/comms/hf/Makefile @@ -24,6 +24,8 @@ PKGMESSAGE= ${WRKDIR}/pkg-message CONFLICTS= sysutils/lbl-hf-1.* +OPTIONS_DEFINE= DOCS EXAMPLES + post-configure: @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|' \ ${WRKSRC}/hfkernel/Makefile diff --git a/comms/kb/Makefile b/comms/kb/Makefile index f3e170a0c125..667e6b9b118a 100644 --- a/comms/kb/Makefile +++ b/comms/kb/Makefile @@ -23,6 +23,8 @@ DESKTOP_ENTRIES="KB" \ "" \ true +OPTIONS_DEFINE= DOCS + pre-configure: @${CP} ${FILESDIR}/Makefile ${WRKSRC} diff --git a/comms/locator/Makefile b/comms/locator/Makefile index 4f7a3e1459f8..484484a5ca4a 100644 --- a/comms/locator/Makefile +++ b/comms/locator/Makefile @@ -11,6 +11,8 @@ COMMENT= Grid square calculator program used in Amateur Radio and GPS work CONFLICTS= wwl* +OPTIONS_DEFINE= DOCS + do-install: @${INSTALL_PROGRAM} ${WRKSRC}/locator ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/comms/nasawash/Makefile b/comms/nasawash/Makefile index 63a1bc63ddd3..26280ae92209 100644 --- a/comms/nasawash/Makefile +++ b/comms/nasawash/Makefile @@ -17,6 +17,8 @@ WRKSRC= ${WRKDIR}/${DISTNAME}-${PORTVERSION} PLIST_FILES= bin/nasawash PORTDOCS= nasawash.txt nasawash.upd +OPTIONS_DEFINE= DOCS + do-build: ${CC} ${CPPFLAGS} ${CFLAGS} -c -o ${WRKSRC}/nasawash.o ${WRKSRC}/nasawash.c ${CC} -o ${WRKSRC}/nasawash ${WRKSRC}/nasawash.o ${LIBS} diff --git a/comms/nec2c/Makefile b/comms/nec2c/Makefile index df2187b73e70..4b770cd5695c 100644 --- a/comms/nec2c/Makefile +++ b/comms/nec2c/Makefile @@ -14,6 +14,8 @@ COMMENT= Used to calculate antenna patterns useful to ham radio LIB_DEPENDS= libccm.so:${PORTSDIR}/math/ccmath +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: ${CP} ${FILESDIR}/carg.c ${WRKSRC} diff --git a/comms/wspr/Makefile b/comms/wspr/Makefile index ca5b9e5bbfb4..c648cada68b2 100644 --- a/comms/wspr/Makefile +++ b/comms/wspr/Makefile @@ -35,6 +35,8 @@ PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} \ VERSION=${VERSION} VERSION= 3.00 +OPTIONS_DEFINE= DOCS + .include <bsd.port.pre.mk> post-configure: @${REINPLACE_CMD} -e 's|%%DESTDIR%%|${STAGEDIR}|' ${WRKSRC}/Makefile diff --git a/comms/xwota/Makefile b/comms/xwota/Makefile index b1c6ece65fb7..1b405b61ba65 100644 --- a/comms/xwota/Makefile +++ b/comms/xwota/Makefile @@ -18,6 +18,8 @@ USES= gmake pkgconfig libtool USE_GNOME= gtk20 GNU_CONFIGURE= yes +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for d in ${WRKSRC}/README \ diff --git a/comms/yagiuda/Makefile b/comms/yagiuda/Makefile index 5850b7497bd9..2058b36c1d4d 100644 --- a/comms/yagiuda/Makefile +++ b/comms/yagiuda/Makefile @@ -15,6 +15,8 @@ LICENSE= GPLv2 GNU_CONFIGURE= yes +OPTIONS_DEFINE= DOCS + do-install: .for f in first optimise yagi dipole input output ${INSTALL_PROGRAM} ${WRKSRC}/src/${f} ${STAGEDIR}${PREFIX}/bin diff --git a/comms/yfklog/Makefile b/comms/yfklog/Makefile index 2b9ab61171c8..b8cb62e8a343 100644 --- a/comms/yfklog/Makefile +++ b/comms/yfklog/Makefile @@ -25,6 +25,8 @@ RUN_DEPENDS= p5-Curses>=0:${PORTSDIR}/devel/p5-Curses \ USES= perl5 NO_BUILD= yes +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' \ ${WRKSRC}/yfk ${WRKSRC}/yfksubs.pl diff --git a/converters/aish/Makefile b/converters/aish/Makefile index 7086ebe07e2d..d3ef7807c1c0 100644 --- a/converters/aish/Makefile +++ b/converters/aish/Makefile @@ -12,6 +12,8 @@ COMMENT= Ish/uuencode/Base64 converter MAKE_ARGS= DSTDIR=${STAGEDIR}${PREFIX}/bin +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ja/aish ${INSTALL_DATA} ${WRKSRC}/aish.txt ${STAGEDIR}${PREFIX}/share/doc/ja/aish diff --git a/converters/enca/Makefile b/converters/enca/Makefile index cbfafaa3918a..1e03ec8b9c6a 100644 --- a/converters/enca/Makefile +++ b/converters/enca/Makefile @@ -24,6 +24,8 @@ CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +OPTIONS_DEFINE= DOCS + post-patch:: @${REINPLACE_CMD} -e 's/$$(LN_S)/$$(LN_S) -f/' ${WRKSRC}/src/Makefile.in diff --git a/databases/adodb5/Makefile b/databases/adodb5/Makefile index 43b169579c90..959dffd06d56 100644 --- a/databases/adodb5/Makefile +++ b/databases/adodb5/Makefile @@ -24,7 +24,7 @@ NO_BUILD= YES ADODB_SUBDIRS= contrib datadict drivers lang pear perf session xsl -OPTIONS_DEFINE= TESTS +OPTIONS_DEFINE= TESTS DOCS TESTS_DESC= Install tests .include <bsd.port.options.mk> diff --git a/databases/c3p0/Makefile b/databases/c3p0/Makefile index 1340793939b7..60745ea7b54f 100644 --- a/databases/c3p0/Makefile +++ b/databases/c3p0/Makefile @@ -15,6 +15,8 @@ NO_BUILD= yes JAVA_VERSION= 1.6+ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/databases/gtksql/Makefile b/databases/gtksql/Makefile index 69147acf2d4e..d67cb27f8bd1 100644 --- a/databases/gtksql/Makefile +++ b/databases/gtksql/Makefile @@ -15,7 +15,7 @@ LICENSE= GPLv2 # (or later) LIB_DEPENDS= libscintilla.so:${PORTSDIR}/x11-toolkits/scintilla RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils -OPTIONS_DEFINE= AVAHI +OPTIONS_DEFINE= AVAHI DOCS OPTIONS_MULTI= DB OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE OPTIONS_DEFAULT= SQLITE diff --git a/databases/libdbi/Makefile b/databases/libdbi/Makefile index 334ca7817383..fd0c31d1e889 100644 --- a/databases/libdbi/Makefile +++ b/databases/libdbi/Makefile @@ -15,6 +15,8 @@ USE_AUTOTOOLS= libtool GNU_CONFIGURE= yes USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e "s|-O20|${CFLAGS}|g" -e "s|-std=gnu99||g" \ ${WRKSRC}/configure diff --git a/databases/pg_filedump/Makefile b/databases/pg_filedump/Makefile index 46290c073019..5a7d8c34e26e 100644 --- a/databases/pg_filedump/Makefile +++ b/databases/pg_filedump/Makefile @@ -14,6 +14,8 @@ BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/databases/postgresql84-client:patch WRKSRC= ${WRKDIR}/${PORTNAME}-8.4.0 +OPTIONS_DEFINE= DOCS + .include <bsd.port.pre.mk> BROKEN= Does not compile diff --git a/databases/py-sqlkit/Makefile b/databases/py-sqlkit/Makefile index 627343d5411c..d890b852394e 100644 --- a/databases/py-sqlkit/Makefile +++ b/databases/py-sqlkit/Makefile @@ -22,7 +22,7 @@ USE_PYDISTUTILS=yes USE_GNOME= pygtk2 USES= gettext -OPTIONS_DEFINE= FIREBIRD MSSQL MYSQL PGSQL SQLITE SYBASE +OPTIONS_DEFINE= FIREBIRD MSSQL MYSQL PGSQL SQLITE SYBASE DOCS OPTIONS_DEFAULT=MYSQL PGSQL SQLITE SYBASE_DESC= Sybase support diff --git a/databases/ruby-cdb/Makefile b/databases/ruby-cdb/Makefile index f9a41f7348c7..0bcd0418e36b 100644 --- a/databases/ruby-cdb/Makefile +++ b/databases/ruby-cdb/Makefile @@ -22,6 +22,8 @@ CDB_PORTDIR= ${PORTSDIR}/databases/cdb INSTALL_TARGET= site-install +OPTIONS_DEFINE= DOCS + .include <bsd.port.pre.mk> post-patch: diff --git a/databases/ruby-dbi/Makefile b/databases/ruby-dbi/Makefile index 4e5d0af8947f..cacdcfd1ac60 100644 --- a/databases/ruby-dbi/Makefile +++ b/databases/ruby-dbi/Makefile @@ -19,6 +19,8 @@ RUN_DEPENDS= ${RUBY_SITELIBDIR}/aspectr.rb:${PORTSDIR}/devel/ruby-aspectr \ USE_RUBY= yes USE_RUBY_SETUP= yes +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ diff --git a/databases/ruby-o_dbm/Makefile b/databases/ruby-o_dbm/Makefile index 976e3acc6455..cfa7d0e80c04 100644 --- a/databases/ruby-o_dbm/Makefile +++ b/databases/ruby-o_dbm/Makefile @@ -16,6 +16,8 @@ USE_RUBY= yes NO_BUILD= yes +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR} ${INSTALL_DATA} ${WRKSRC}/o_dbm.rb ${STAGEDIR}${RUBY_SITELIBDIR}/ diff --git a/databases/ruby-sybct/Makefile b/databases/ruby-sybct/Makefile index 78f6e57af2de..1846ac96cc94 100644 --- a/databases/ruby-sybct/Makefile +++ b/databases/ruby-sybct/Makefile @@ -18,6 +18,8 @@ USE_RUBY= yes USE_RUBY_EXTCONF= yes USES= iconv +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \ -e 's|%%ICONV_LIB%%|${ICONV_LIB}|' \ diff --git a/databases/ruby-tokyocabinet/Makefile b/databases/ruby-tokyocabinet/Makefile index 9578dfacf243..220de65e3150 100644 --- a/databases/ruby-tokyocabinet/Makefile +++ b/databases/ruby-tokyocabinet/Makefile @@ -21,6 +21,8 @@ INSTALL_TARGET= site-install DOCS= doc/* +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} .for f in ${DOCS} diff --git a/deskutils/dailystrips/Makefile b/deskutils/dailystrips/Makefile index a7df9ef34b3d..8817e20bd92b 100644 --- a/deskutils/dailystrips/Makefile +++ b/deskutils/dailystrips/Makefile @@ -22,6 +22,8 @@ SHEBANG_FILES= ${WRKSRC}/dailystrips* PORTSCOUT= limit:^1\.0\. +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} ' s!/usr/share/dailystrips/strips.def!${DATADIR}/strips.def!' \ ${WRKSRC}/dailystrips ${WRKSRC}/dailystrips-clean \ diff --git a/devel/anjuta/Makefile b/devel/anjuta/Makefile index 74cf34bafae5..d5c669a65a9d 100644 --- a/devel/anjuta/Makefile +++ b/devel/anjuta/Makefile @@ -63,7 +63,7 @@ SHEBANG_FILES= scripts/builder2schema.pl \ plugins/gbf-mkfile/gbf-mkfile-parse.in \ plugins/tools/scripts/*.pl -OPTIONS_DEFINE= SVN DEVHELP +OPTIONS_DEFINE= SVN DEVHELP DOCS OPTIONS_DEFAULT=DEVHELP DEVHELP_DESC= Devhelp support diff --git a/devel/art/Makefile b/devel/art/Makefile index f399de119343..3113c8cf8655 100644 --- a/devel/art/Makefile +++ b/devel/art/Makefile @@ -16,6 +16,8 @@ LIB_DEPENDS= libxml++-2.6.so:${PORTSDIR}/textproc/libxml++26 USES= gmake pkgconfig +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/artlibgen/src/artlibgen ${STAGEDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/artrepgen/artrepgen ${STAGEDIR}${PREFIX}/bin diff --git a/devel/astyle/Makefile b/devel/astyle/Makefile index b1a18dedd843..b156d98e4c21 100644 --- a/devel/astyle/Makefile +++ b/devel/astyle/Makefile @@ -21,6 +21,8 @@ USES= compiler gmake iconv WRKSRC= ${WRKDIR}/astyle/build/gcc +OPTIONS_DEFINE= DOCS + pre-patch: @${REINPLACE_CMD} -e 's,^CFLAGS,#CFLAGS,; s,g++,${CXX},; \ s,\(CFLAGSr.*=.*\),\1 -I${LOCALBASE}/include,' \ diff --git a/devel/buildtool-doc/Makefile b/devel/buildtool-doc/Makefile index cb9f9c18dd77..5a72b53d0056 100644 --- a/devel/buildtool-doc/Makefile +++ b/devel/buildtool-doc/Makefile @@ -25,6 +25,8 @@ DOCBOOK_XSL= ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl DOCS= CHANGES COPYING PEOPLE README README.bt +OPTIONS_DEFINE= DOCS + do-configure: cd ${WRKSRC} && \ CATALOG_FILE=${LOCALBASE}/share/xml/catalog.ports \ diff --git a/devel/c4/Makefile b/devel/c4/Makefile index 1f942ec7d4b2..414d227b1129 100644 --- a/devel/c4/Makefile +++ b/devel/c4/Makefile @@ -13,12 +13,14 @@ COMMENT= CVS-like Frontend to Perforce WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} ALL_TARGET= c4 +OPTIONS_DEFINE= DOCS + do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/c4 ${STAGEDIR}${PREFIX}/bin/ - ${INSTALL_MAN} ${WRKSRC}/c4.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ + ${INSTALL_PROGRAM} ${WRKSRC}/c4 ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/c4.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/c4.pdf ${STAGEDIR}${DOCSDIR}/ - ${INSTALL_DATA} ${WRKSRC}/c4.ps ${STAGEDIR}${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/c4.pdf ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/c4.ps ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/devel/cdk/Makefile b/devel/cdk/Makefile index f2a9d5c63bad..2ca2eb30a973 100644 --- a/devel/cdk/Makefile +++ b/devel/cdk/Makefile @@ -25,7 +25,7 @@ ALL_TARGET= default examples demos cli cdkshlib INSTALL_TARGET= install installCDKSHLibrary USE_LDCONFIG= yes -OPTIONS_DEFINE= EXAMPLES +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.options.mk> diff --git a/devel/cppunit/Makefile b/devel/cppunit/Makefile index 52a46df0ae0b..a57482e22665 100644 --- a/devel/cppunit/Makefile +++ b/devel/cppunit/Makefile @@ -10,7 +10,7 @@ MASTER_SITES= SF MAINTAINER= bdrewery@FreeBSD.org COMMENT= C++ port of the JUnit framework for unit testing -OPTIONS_DEFINE= DOXYGEN +OPTIONS_DEFINE= DOXYGEN DOCS USE_AUTOTOOLS= libtool GNU_CONFIGURE= yes diff --git a/devel/csmith/Makefile b/devel/csmith/Makefile index 4d071cf23658..40180201e108 100644 --- a/devel/csmith/Makefile +++ b/devel/csmith/Makefile @@ -20,4 +20,6 @@ USES= gmake ONLY_FOR_ARCHS= i386 amd64 +OPTIONS_DEFINE= DOCS + .include <bsd.port.mk> diff --git a/devel/cvsweb/Makefile b/devel/cvsweb/Makefile index c4b862d5a45e..4f1b610eacec 100644 --- a/devel/cvsweb/Makefile +++ b/devel/cvsweb/Makefile @@ -19,6 +19,8 @@ CONFLICTS= cvsweb-3.* NO_BUILD= yes USES= perl5 +OPTIONS_DEFINE= DOCS + .include <bsd.port.pre.mk> # Specify where your repository belongs. diff --git a/devel/ddd/Makefile b/devel/ddd/Makefile index cf8718b45eeb..3f5afc862044 100644 --- a/devel/ddd/Makefile +++ b/devel/ddd/Makefile @@ -28,6 +28,8 @@ DOCS= AUTHORS INSTALL PROBLEMS README TIPS TODO \ doc/ddd-themes.pdf doc/ddd.pdf INFO= ddd ddd-themes +OPTIONS_DEFINE= DOCS + .if defined(MOTIFLIB) .if defined(MOTIF_STATIC) LIBXMDIR!= ${ECHO_CMD} ${MOTIFLIB} | ${SED} -e 's/\/libXm\.a//g' | ${AWK} '{print $$1}' diff --git a/devel/ditrack/Makefile b/devel/ditrack/Makefile index 985d9ddef9d4..7efa5e53a856 100644 --- a/devel/ditrack/Makefile +++ b/devel/ditrack/Makefile @@ -20,6 +20,8 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_PKGNAME= DITrack +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKSRC}/upgrade-0.7-db.py ${STAGEDIR}${DATADIR} diff --git a/devel/fga/Makefile b/devel/fga/Makefile index 7ba26c655147..aa114a3d99b2 100644 --- a/devel/fga/Makefile +++ b/devel/fga/Makefile @@ -16,12 +16,14 @@ USES= gmake EXAMPLES= graph_gen maxbit tsp tsp_bf PORTDOCS= * +OPTIONS_DEFINE= DOCS EXAMPLES + do-install: ${INSTALL_DATA} ${WRKSRC}/include/fga.hpp ${STAGEDIR}${PREFIX}/include ${INSTALL_PROGRAM} ${EXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/bin - ${MKDIR} ${STAGEDIR}${DOCSDIR}/ - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ - ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,:S,$,.cpp,} ${STAGEDIR}${EXAMPLESDIR}/ - ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,:S,$,.cpp,} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/devel/fga/pkg-plist b/devel/fga/pkg-plist index 0efacc75c7e4..26173fca5e63 100644 --- a/devel/fga/pkg-plist +++ b/devel/fga/pkg-plist @@ -3,8 +3,8 @@ bin/maxbit bin/tsp bin/tsp_bf include/fga.hpp -%%PORTDOCS%%%%EXAMPLESDIR%%/graph_gen.cpp -%%PORTDOCS%%%%EXAMPLESDIR%%/maxbit.cpp -%%PORTDOCS%%%%EXAMPLESDIR%%/tsp.cpp -%%PORTDOCS%%%%EXAMPLESDIR%%/tsp_bf.cpp -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/graph_gen.cpp +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/maxbit.cpp +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsp.cpp +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tsp_bf.cpp +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% diff --git a/devel/flyspray/Makefile b/devel/flyspray/Makefile index faaed8c26e4a..97fcfac715ee 100644 --- a/devel/flyspray/Makefile +++ b/devel/flyspray/Makefile @@ -21,7 +21,7 @@ NO_WRKSUBDIR= yes DOS2UNIX_REGEX= .php -OPTIONS_DEFINE= GRAPHVIZ MYSQL MYSQLI PGSQL +OPTIONS_DEFINE= GRAPHVIZ MYSQL MYSQLI PGSQL DOCS OPTIONS_DEFAULT= MYSQLI MYSQLI_DESC= Use MySQLi Database Interface diff --git a/devel/gazpacho/Makefile b/devel/gazpacho/Makefile index 05fab5a63896..256cc64c8b29 100644 --- a/devel/gazpacho/Makefile +++ b/devel/gazpacho/Makefile @@ -17,10 +17,12 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/kiwi-i18n:${PORTSDIR}/x11-toolkits/py-kiwi NO_BUILD= yes USE_GNOME= pygtk2 USE_PYTHON= yes -USE_PYDISTUTILS= yes +USE_PYDISTUTILS=yes USES= gettext DOCS= AUTHORS ChangeLog CONTRIBUTORS COPYING README NEWS +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e 's|share/doc/gazpacho/examples|${EXAMPLESDIR}|g' ${WRKSRC}/setup.py diff --git a/devel/gcc-arm-embedded/Makefile b/devel/gcc-arm-embedded/Makefile index fdb670936084..e1136376bf9e 100644 --- a/devel/gcc-arm-embedded/Makefile +++ b/devel/gcc-arm-embedded/Makefile @@ -13,7 +13,7 @@ COMMENT= Complete gcc-based toolcahin for embedded ARM development LICENSE= GPLv2 LGPL20 LGPL21 GPLv3 LGPL3 LICENSE_COMB= multi -OPTIONS_DEFINE= PURE EXAMPLES HTML PDF +OPTIONS_DEFINE= PURE EXAMPLES HTML PDF DOCS OPTIONS_DEFAULT=EXAMPLES PURE_DESC= Use all libraries from bundle, do not depend on anything HTML_DESC= Install HTML documentation diff --git a/devel/kickassembler/Makefile b/devel/kickassembler/Makefile index 49e83e7964f7..9e506f4210cd 100644 --- a/devel/kickassembler/Makefile +++ b/devel/kickassembler/Makefile @@ -19,6 +19,8 @@ SUB_LIST= PORTNAME=${PORTNAME} SUB_FILES= kickassembler.sh WRKSRC= ${WRKDIR} +OPTIONS_DEFINE= DOCS EXAMPLES + post-extract-script: @${MV} "${WRKSRC}/Examples/MusicIrq/ode to 64.bin" ${WRKSRC}/Examples/MusicIrq/odeto64.bin diff --git a/devel/libdict/Makefile b/devel/libdict/Makefile index e864bf78d3a1..c9ac80a46055 100644 --- a/devel/libdict/Makefile +++ b/devel/libdict/Makefile @@ -18,6 +18,8 @@ MAKEFILE= GNUmakefile USE_LDCONFIG= yes MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX} +OPTIONS_DEFINE= DOCS + post-extract: . for ___f in avl_insert.pdf empty.pdf treap_insert.pdf @${CP} ${DISTDIR}/${___f} ${WRKSRC}/ diff --git a/devel/libexplain/Makefile b/devel/libexplain/Makefile index 40e011368b5b..e6e7e450039e 100644 --- a/devel/libexplain/Makefile +++ b/devel/libexplain/Makefile @@ -28,6 +28,8 @@ LDFLAGS+= -L${LOCALBASE}/lib PATCHLEVEL= D012 +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} -e \ 's|$$(libdir)/pkgconfig|$$(libdir)/../libdata/pkgconfig|g ; \ diff --git a/devel/libstatgrab/Makefile b/devel/libstatgrab/Makefile index 9d0626f9aca1..560dec9af6c1 100644 --- a/devel/libstatgrab/Makefile +++ b/devel/libstatgrab/Makefile @@ -17,7 +17,7 @@ USES= pathfix pkgconfig libtool CONFIGURE_ARGS+= --docdir=${DOCSDIR} -OPTIONS_DEFINE= TOOLS +OPTIONS_DEFINE= TOOLS DOCS OPTIONS_DEFAULT= TOOLS TOOLS_DESC= Build and install statgrab and saidar diff --git a/devel/libvc/Makefile b/devel/libvc/Makefile index 5ecd32a56a4f..950349e033b2 100644 --- a/devel/libvc/Makefile +++ b/devel/libvc/Makefile @@ -14,6 +14,8 @@ USES= bison libtool tar:bzip2 GNU_CONFIGURE= yes USE_LDCONFIG= yes +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for DOC in AUTHORS ChangeLog NEWS README THANKS doc/rfc2426.txt diff --git a/devel/loki/Makefile b/devel/loki/Makefile index c7b5dfe103a3..54bc806ba68f 100644 --- a/devel/loki/Makefile +++ b/devel/loki/Makefile @@ -18,6 +18,8 @@ DOCS= README CHANGES doc/flex/flex_string.html \ doc/yasli/Notes.txt \ doc/yasli/yasli.html +OPTIONS_DEFINE= DOCS + post-patch: @${REINPLACE_CMD} 's/bad_function_call/Loki::bad_function_call/g' \ ${WRKSRC}/test/Function/FunctionTest.cpp diff --git a/devel/mk-configure/Makefile b/devel/mk-configure/Makefile index 44e255c513d4..e865984317f4 100644 --- a/devel/mk-configure/Makefile +++ b/devel/mk-configure/Makefile @@ -20,6 +20,8 @@ INSTALL_TARGET= installdirs install install-doc PORTEXAMPLES= * +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${ECHO_CMD} "MKDEP ?= bmkdep" >> ${WRKSRC}/mk/sys.mk diff --git a/devel/ocaml-findlib/Makefile b/devel/ocaml-findlib/Makefile index 62bcd57ce3aa..b007ace560c6 100644 --- a/devel/ocaml-findlib/Makefile +++ b/devel/ocaml-findlib/Makefile @@ -21,7 +21,7 @@ CONFIGURE_ARGS= -bindir "${PREFIX}/bin" -mandir "${PREFIX}/man" \ USE_OCAML_FINDLIB=yes OCAMLFIND_DEPEND= # Avoid dependency loop -OPTIONS_DEFINE= TOOLBOX +OPTIONS_DEFINE= TOOLBOX DOCS OPTIONS_DEFAULT=TOOLBOX OPTIONS_SUB= yes TOOLBOX_DESC= Include toolbox interface (requires OCaml with TK) diff --git a/devel/ocaml-magic/Makefile b/devel/ocaml-magic/Makefile index 77ab78132341..f45f9947b2a7 100644 --- a/devel/ocaml-magic/Makefile +++ b/devel/ocaml-magic/Makefile @@ -23,6 +23,8 @@ ALL_TARGET+= doc examples DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME} +OPTIONS_DEFINE= DOCS EXAMPLES + # This really is overzealous but I work this way .if !exists(/usr/lib/libmagic.so) LIB_DEPENDS+= libmagic.so:${PORTSDIR}/sysutils/file diff --git a/devel/ocaml-pcre/Makefile b/devel/ocaml-pcre/Makefile index 04e7fe63c3a7..7daabb4303d5 100644 --- a/devel/ocaml-pcre/Makefile +++ b/devel/ocaml-pcre/Makefile @@ -20,6 +20,8 @@ USE_OCAML_LDCONFIG= yes EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME} DOCSDIR= ${PREFIX}/share/doc/pcre-ocaml +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|$$prefix"/"share|${STAGEDIR}${PREFIX}/share|' \ ${WRKSRC}/setup.ml diff --git a/devel/oniguruma4/Makefile b/devel/oniguruma4/Makefile index d54b83498077..1b6f51e17571 100644 --- a/devel/oniguruma4/Makefile +++ b/devel/oniguruma4/Makefile @@ -19,6 +19,8 @@ DOCS= HISTORY README doc/* PKGNAMESUFFIX= 4 +OPTIONS_DEFINE= DOCS EXAMPLES + post-patch: ${REINPLACE_CMD} -e 's|echo aout|echo elf|' \ -e 's|freebsd1|freebsd1.|' \ diff --git a/devel/p4api/Makefile b/devel/p4api/Makefile index 3d638d5f88a0..9927b9736adf 100644 --- a/devel/p4api/Makefile +++ b/devel/p4api/Makefile @@ -20,6 +20,8 @@ WRKSRC= ${WRKDIR}/p4api-2008.1.158777 PLATFORM= freebsd60 VERSION= 08.1 +OPTIONS_DEFINE= DOCS EXAMPLES + .include <bsd.port.pre.mk> .if ${ARCH} == i386 diff --git a/devel/p5-App-Build/Makefile b/devel/p5-App-Build/Makefile index b005a05fd3ff..cf8c6639e86d 100644 --- a/devel/p5-App-Build/Makefile +++ b/devel/p5-App-Build/Makefile @@ -19,6 +19,8 @@ BUILD_DEPENDS= p5-Test-Differences>=0.47:${PORTSDIR}/devel/p5-Test-Differences \ USES= perl5 USE_PERL5= modbuild +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/CHANGES ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} diff --git a/devel/p5-Class-Contract/pkg-plist b/devel/p5-Class-Contract/pkg-plist index 50474a9cc99f..67d29159472a 100644 --- a/devel/p5-Class-Contract/pkg-plist +++ b/devel/p5-Class-Contract/pkg-plist @@ -3,8 +3,8 @@ %%SITE_PERL%%/Class/Contract.pm %%SITE_PERL%%/Class/Contract/Production.pm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/Contract/.packlist -%%PORTDOCS%%%%EXAMPLESDIR%%/demo.pl -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo.pl +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/Contract @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class @dirrm %%SITE_PERL%%/Class/Contract diff --git a/devel/p5-Class-Delegation/pkg-plist b/devel/p5-Class-Delegation/pkg-plist index dad090a74614..368e2288500c 100644 --- a/devel/p5-Class-Delegation/pkg-plist +++ b/devel/p5-Class-Delegation/pkg-plist @@ -1,13 +1,13 @@ %%PERL5_MAN3%%/Class::Delegation.3.gz %%SITE_PERL%%/Class/Delegation.pm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/Delegation/.packlist -%%PORTDOCS%%%%EXAMPLESDIR%%/demo_adapt_interface.pl -%%PORTDOCS%%%%EXAMPLESDIR%%/demo_change_semantics.pl -%%PORTDOCS%%%%EXAMPLESDIR%%/demo_facade.pl -%%PORTDOCS%%%%EXAMPLESDIR%%/demo_handle.pl -%%PORTDOCS%%%%EXAMPLESDIR%%/demo_inheritance.pl -%%PORTDOCS%%%%EXAMPLESDIR%%/demo_pseudo.pl -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo_adapt_interface.pl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo_change_semantics.pl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo_facade.pl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo_handle.pl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo_inheritance.pl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/demo_pseudo.pl +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class/Delegation @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Class @dirrmtry %%SITE_PERL%%/Class diff --git a/devel/p5-Devel-Diagram/pkg-plist b/devel/p5-Devel-Diagram/pkg-plist index 6bc21558f230..73195c3ddbe2 100644 --- a/devel/p5-Devel-Diagram/pkg-plist +++ b/devel/p5-Devel-Diagram/pkg-plist @@ -4,14 +4,14 @@ %%SITE_PERL%%/Devel/Diagram/Render/UXF20.pm %%SITE_PERL%%/Devel/Diagram/xsl/uxf20toHtml.xsl %%SITE_PERL%%/%%PERL_ARCH%%/auto/Devel/Diagram/.packlist -%%PORTDOCS%%%%EXAMPLESDIR%%/ClassDiagram.pl -%%PORTDOCS%%%%EXAMPLESDIR%%/cd-CGI.html -%%PORTDOCS%%%%EXAMPLESDIR%%/cd-CPAN.html -%%PORTDOCS%%%%EXAMPLESDIR%%/cd-DBI.html -%%PORTDOCS%%%%EXAMPLESDIR%%/cd-HTML.html -%%PORTDOCS%%%%EXAMPLESDIR%%/cd-IO.html -%%PORTDOCS%%%%EXAMPLESDIR%%/cd-LWP.html -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ClassDiagram.pl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cd-CGI.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cd-CPAN.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cd-DBI.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cd-HTML.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cd-IO.html +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cd-LWP.html +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Devel/Diagram @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Devel @dirrm %%SITE_PERL%%/Devel/Diagram/xsl diff --git a/devel/p5-IO-KQueue/Makefile b/devel/p5-IO-KQueue/Makefile index 68989523285e..3f294cec13ed 100644 --- a/devel/p5-IO-KQueue/Makefile +++ b/devel/p5-IO-KQueue/Makefile @@ -12,6 +12,8 @@ COMMENT= Perl interface to the BSD kqueue system call USES= perl5 USE_PERL5= configure +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} diff --git a/devel/p5-IO-KQueue/pkg-plist b/devel/p5-IO-KQueue/pkg-plist index 46f02c773c0a..e50032fb6303 100644 --- a/devel/p5-IO-KQueue/pkg-plist +++ b/devel/p5-IO-KQueue/pkg-plist @@ -1,9 +1,9 @@ %%SITE_PERL%%/%%PERL_ARCH%%/IO/KQueue.pm %%SITE_PERL%%/%%PERL_ARCH%%/auto/IO/KQueue/.packlist %%SITE_PERL%%/%%PERL_ARCH%%/auto/IO/KQueue/KQueue.so -%%PORTDOCS%%%%EXAMPLESDIR%%/chat.pl -%%PORTDOCS%%%%EXAMPLESDIR%%/tail.pl -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/chat.pl +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tail.pl +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PERL5_MAN3%%/IO::KQueue.3.gz @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/IO/KQueue @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/IO diff --git a/devel/py-period/Makefile b/devel/py-period/Makefile index 75f27f247287..3c7b4fc013ed 100644 --- a/devel/py-period/Makefile +++ b/devel/py-period/Makefile @@ -13,6 +13,8 @@ COMMENT= Basic time period checking library USE_PYTHON= yes NO_BUILD= yes +OPTIONS_DEFINE= DOCS + do-install: @${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR} ${INSTALL_SCRIPT} ${WRKSRC}/period.py ${STAGEDIR}${PYTHON_SITELIBDIR} diff --git a/devel/py-traits/Makefile b/devel/py-traits/Makefile index 11491e0f444a..bb44a30b4582 100644 --- a/devel/py-traits/Makefile +++ b/devel/py-traits/Makefile @@ -22,6 +22,8 @@ USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes +OPTIONS_DEFINE= DOCS EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples \ diff --git a/devel/py-xoltar-toolkit/Makefile b/devel/py-xoltar-toolkit/Makefile index 9599b69e2229..9c7b20fac05d 100644 --- a/devel/py-xoltar-toolkit/Makefile +++ b/devel/py-xoltar-toolkit/Makefile @@ -14,6 +14,8 @@ COMMENT= Functional programming, lazy expressions, and thread pools for Python USE_PYTHON= 2 NO_WRKSUBDIR= yes +OPTIONS_DEFINE= DOCS + do-build: @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC} diff --git a/devel/pychecker/Makefile b/devel/pychecker/Makefile index 6e9be28b5a23..fd74a8e43f63 100644 --- a/devel/pychecker/Makefile +++ b/devel/pychecker/Makefile @@ -17,6 +17,8 @@ PYDISTUTILS_AUTOPLIST= yes DOCS= ChangeLog COPYRIGHT KNOWN_BUGS MAINTAINERS README TODO VERSION +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} diff --git a/devel/raknet/Makefile b/devel/raknet/Makefile index 4ea4009fbaa4..76b118297c50 100644 --- a/devel/raknet/Makefile +++ b/devel/raknet/Makefile @@ -43,6 +43,8 @@ DOS2UNIX_REGEX= .*\.(cpp|h|txt) # have to be provided by the port to have working extensions CMAKE_ARGS+= -DDISABLEDEPENDENCIES:BOOL=ON +OPTIONS_DEFINE= DOCS + post-patch: @${FIND} ${WRKSRC} -type f -a '(' -name '*.cpp' -o -name '*.h' ')' -print0 \ | ${XARGS} -0 -x -n10 \ diff --git a/devel/readline/Makefile b/devel/readline/Makefile index b30cbfa2041f..a2297854eb1f 100644 --- a/devel/readline/Makefile +++ b/devel/readline/Makefile @@ -18,7 +18,7 @@ COMMENT= Library for editing command lines as they are typed LICENSE= GPLv3 -OPTIONS_DEFINE= TERMCAP +OPTIONS_DEFINE= TERMCAP DOCS OPTIONS_DEFAULT=TERMCAP TERMCAP_DESC= Link against libtermcap diff --git a/devel/ruby-byaccr/Makefile b/devel/ruby-byaccr/Makefile index 5011a758503e..6990c99c81f1 100644 --- a/devel/ruby-byaccr/Makefile +++ b/devel/ruby-byaccr/Makefile @@ -17,6 +17,8 @@ RUBY_NO_RUN_DEPENDS= yes DOCS= README README.html +OPTIONS_DEFINE= DOCS + post-patch: ${REINPLACE_CMD} 's,^#include <malloc\.h>,#include <stdlib.h>,' ${WRKSRC}/*.[ch] diff --git a/devel/ruby-cache/Makefile b/devel/ruby-cache/Makefile index 8ad03a7cfdf0..e03246a45c23 100644 --- a/devel/ruby-cache/Makefile +++ b/devel/ruby-cache/Makefile @@ -21,6 +21,8 @@ RUBY_SETUP= install.rb DOCS= MANUAL.rd README.rd +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} .for f in ${DOCS} diff --git a/devel/ruby-calendar/Makefile b/devel/ruby-calendar/Makefile index 4fc08f79d4aa..27bc18685b09 100644 --- a/devel/ruby-calendar/Makefile +++ b/devel/ruby-calendar/Makefile @@ -20,6 +20,8 @@ DOCS_EN= README.en ext/sdn/README.sdncal20 DOCS_JA= README EXAMPLES_EN= ext/calendar/cal*.rb +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} .for f in ${EXAMPLES_EN} diff --git a/devel/ruby-date2/Makefile b/devel/ruby-date2/Makefile index 5cbb2657b836..64a667370b00 100644 --- a/devel/ruby-date2/Makefile +++ b/devel/ruby-date2/Makefile @@ -20,6 +20,7 @@ DOCS_JA= MANUAL MANUAL.rd MANUAL.html README EXAMPLES_EN= cal.rb daylight.rb goodfriday.rb EXAMPLES_JA= ncal.rb +OPTIONS_DEFINE= DOCS post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ja diff --git a/devel/ruby-dialogs/Makefile b/devel/ruby-dialogs/Makefile index acad7c7b6ae7..edff0d1fdb61 100644 --- a/devel/ruby-dialogs/Makefile +++ b/devel/ruby-dialogs/Makefile @@ -17,6 +17,8 @@ RUBY_NO_BUILD_DEPENDS= yes NO_WRKSUBDIR= yes NO_BUILD= yes +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR} ${INSTALL_DATA} ${WRKDIR}/dialogs.rb ${STAGEDIR}${RUBY_SITELIBDIR}/ diff --git a/devel/ruby-fastri/Makefile b/devel/ruby-fastri/Makefile index c43a7ad99ecb..fa99bdca2513 100644 --- a/devel/ruby-fastri/Makefile +++ b/devel/ruby-fastri/Makefile @@ -17,6 +17,8 @@ CONFIGURE_ARGS= --prefix="${PREFIX}" DOCS= CHANGES README.en +OPTIONS_DEFINE= DOCS + post-install: @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${RUBY_MODDOCDIR}/ diff --git a/devel/ruby-intl/Makefile b/devel/ruby-intl/Makefile index 68ab6e9a4dab..de3f58a227db 100644 --- a/devel/ruby-intl/Makefile +++ b/devel/ruby-intl/Makefile @@ -20,6 +20,8 @@ USE_RUBY_EXTCONF= yes WRKSRC= ${WRKDIR}/${PORTNAME} INSTALL_TARGET= site-install +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/po/ ${INSTALL_DATA} ${WRKSRC}/hello.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ diff --git a/devel/ruby-locale2/Makefile b/devel/ruby-locale2/Makefile index 0e0792fb8ae5..22a1796342da 100644 --- a/devel/ruby-locale2/Makefile +++ b/devel/ruby-locale2/Makefile @@ -18,6 +18,8 @@ CONFLICTS= ${PKGNAMEPREFIX}locale-[0-9]* USE_RUBY= yes USE_RUBY_SETUP= yes +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ ${INSTALL_DATA} ${WRKSRC}/README.rdoc ${STAGEDIR}${RUBY_MODDOCDIR}/ diff --git a/devel/ruby-multi/Makefile b/devel/ruby-multi/Makefile index 8865c38349ef..114c27d10e74 100644 --- a/devel/ruby-multi/Makefile +++ b/devel/ruby-multi/Makefile @@ -18,6 +18,8 @@ NO_BUILD= yes EXAMPLES= multi_example.rb +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR} ${INSTALL_DATA} ${WRKSRC}/multi.rb ${STAGEDIR}${RUBY_SITELIBDIR}/ diff --git a/devel/ruby-ncurses/Makefile b/devel/ruby-ncurses/Makefile index aaf42243c5a8..ff96fe67d131 100644 --- a/devel/ruby-ncurses/Makefile +++ b/devel/ruby-ncurses/Makefile @@ -22,6 +22,8 @@ INSTALL_TARGET= site-install DOCS= COPYING Changes README THANKS TODO +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} .for f in ${DOCS} diff --git a/devel/ruby-property/Makefile b/devel/ruby-property/Makefile index 8733ab073475..83edd43c97a4 100644 --- a/devel/ruby-property/Makefile +++ b/devel/ruby-property/Makefile @@ -16,6 +16,8 @@ USE_RUBY= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/${PORTNAME} +OPTIONS_DEFINE= DOCS + post-patch: ${RUBY} -i -pe 'gsub /rubyapi\.css/, "../rubyapi.css"' ${WRKSRC}/Properties-ja.html diff --git a/devel/ruby-rbison/Makefile b/devel/ruby-rbison/Makefile index 975fd511f871..5a500f2e8108 100644 --- a/devel/ruby-rbison/Makefile +++ b/devel/ruby-rbison/Makefile @@ -23,6 +23,8 @@ EXAMPLES= CalcFileLexer.rb CalcStringLexer.rb \ NO_BUILD= yes +OPTIONS_DEFINE= DOCS + do-install: ${INSTALL_SCRIPT} ${WRKSRC}/rbison ${STAGEDIR}${PREFIX}/bin/ ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} diff --git a/devel/ruby-setup.rb/Makefile b/devel/ruby-setup.rb/Makefile index 7e1ab3b5af32..52739f5bf585 100644 --- a/devel/ruby-setup.rb/Makefile +++ b/devel/ruby-setup.rb/Makefile @@ -24,6 +24,8 @@ RUBY_SHEBANG_FILES= ${_SCRIPTS:S:^:${WRKSRC}/ruby-:} DOCS_EN= doc.en/* NEWS.en Usage_en.txt README.en ChangeLog TODO DOCS_JA= doc.ja/* NEWS.ja Usage_ja.txt README.ja +OPTIONS_DEFINE= DOCS + post-extract: .for f in ${_SCRIPTS} ${CP} -p ${WRKSRC}/${f} ${WRKSRC}/ruby-${f} diff --git a/devel/ruby-statgrab/Makefile b/devel/ruby-statgrab/Makefile index 4eec3fdb83d5..135ae5e5f607 100644 --- a/devel/ruby-statgrab/Makefile +++ b/devel/ruby-statgrab/Makefile @@ -20,6 +20,8 @@ USES= pkgconfig INSTALL_TARGET= site-install +OPTIONS_DEFINE= DOCS + post-install: ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} ${INSTALL_DATA} ${WRKSRC}/README.mkdn ${STAGEDIR}${RUBY_MODDOCDIR} diff --git a/devel/ruby-wirble/Makefile b/devel/ruby-wirble/Makefile index c7696e8a6e39..60fa6eba0112 100644 --- a/devel/ruby-wirble/Makefile +++ b/devel/ruby-wirble/Makefile @@ -15,6 +15,8 @@ DOCS_EN= README USE_RUBY= yes do-build: +OPTIONS_DEFINE= DOCS + do-install: ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR} ${INSTALL_DATA} ${WRKSRC}/lib/wirble.rb ${STAGEDIR}${RUBY_SITELIBDIR}/ diff --git a/devel/srecord/Makefile b/devel/srecord/Makefile index a1971f547f59..7d64f9b205f6 100644 --- a/devel/srecord/Makefile +++ b/devel/srecord/Makefile @@ -32,6 +32,8 @@ HEADER_DIRS= input \ output/file \ quit +OPTIONS_DEFINE= DOCS + post-build: cd ${WRKSRC} && ${MAKE_CMD} libdir/pkgconfig/srecord.pc diff --git a/dns/adns/Makefile b/dns/adns/Makefile index fc47fb87602a..ac3efa20f259 100644 --- a/dns/adns/Makefile +++ b/dns/adns/Makefile @@ -19,6 +19,8 @@ PLIST_SUB+= LIBVERSION="${LIBVERSION}" DOCS= COPYING GPL-vs-LGPL INSTALL LICENCE.WAIVERS README README.html TODO changelog +OPTIONS_DEFINE= DOCS + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/adnslogres ${STAGEDIR}${PREFIX}/bin/adnshost @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/dns/zonecheck/Makefile b/dns/zonecheck/Makefile index 982f37a6a1e9..d9ea16821081 100644 --- a/dns/zonecheck/Makefile +++ b/dns/zonecheck/Makefile @@ -25,7 +25,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME} DOCS= BUGS CREDITS HISTORY INSTALL README TODO -OPTIONS_DEFINE= CGI +OPTIONS_DEFINE= CGI DOCS OPTIONS_DEFAULT= OPTIONS_SUB= |