diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2018-09-10 13:15:47 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2018-09-10 13:15:47 +0000 |
commit | 4a3bebcae1b693cbd2080fc861c87e36af4f8bc4 (patch) | |
tree | 3c6875e1915991a70b5d02b799e17418d20b218a | |
parent | e1bfdfbe5665c963621e06f6bbfbbc2c000a804e (diff) | |
download | ports-4a3bebcae1b693cbd2080fc861c87e36af4f8bc4.tar.gz ports-4a3bebcae1b693cbd2080fc861c87e36af4f8bc4.zip |
Notes
127 files changed, 190 insertions, 95 deletions
diff --git a/archivers/zip-ada/Makefile b/archivers/zip-ada/Makefile index dfa99967ca1a..b50d97c98781 100644 --- a/archivers/zip-ada/Makefile +++ b/archivers/zip-ada/Makefile @@ -45,6 +45,8 @@ DEMOS= demo_csv_into_zip \ test_llhc \ test_lz77 +OPTIONS_DEFINE= EXAMPLES + do-build: (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -P zipada.gpr) diff --git a/cad/qcad/Makefile b/cad/qcad/Makefile index 4c69e64502c6..45ca6e8010ec 100644 --- a/cad/qcad/Makefile +++ b/cad/qcad/Makefile @@ -47,6 +47,8 @@ SHRDIR= fonts libraries linetypes patterns plugins scripts themes ts #QSCRIPTS should not be installed to avoid conflicts with texlive-base QSCRIPTS= bbox dwg2bmp dwg2pdf dwg2svg +OPTIONS_DEFINE= EXAMPLES + pre-configure: ${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|" \ ${WRKSRC}/src/core/RS.cpp diff --git a/databases/p5-DBD-Excel/Makefile b/databases/p5-DBD-Excel/Makefile index 361483195a79..bcb0ee5d35f9 100644 --- a/databases/p5-DBD-Excel/Makefile +++ b/databases/p5-DBD-Excel/Makefile @@ -21,7 +21,9 @@ EXAMPLESDIR?= ${PREFIX}/share/examples/${PORTNAME} USES= perl5 USE_PERL5= configure -post-install: +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/sample/* ${STAGEDIR}${EXAMPLESDIR} diff --git a/databases/skytools/Makefile b/databases/skytools/Makefile index 75010f198eba..8ea341a66e00 100644 --- a/databases/skytools/Makefile +++ b/databases/skytools/Makefile @@ -26,6 +26,8 @@ CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \ --docdir=${EXAMPLESDIR} \ --with-pgconfig=${LOCALBASE}/bin/pg_config +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's=share/doc=share/examples=' ${WRKSRC}/setup_skytools.py diff --git a/databases/tcl-sqlite3/Makefile b/databases/tcl-sqlite3/Makefile index 0c3996f9368c..90a5c3b065d6 100644 --- a/databases/tcl-sqlite3/Makefile +++ b/databases/tcl-sqlite3/Makefile @@ -14,7 +14,7 @@ LICENSE= PD LIB_DEPENDS= libsqlite3.so:databases/sqlite3 -OPTIONS_DEFINE= THREADS +OPTIONS_DEFINE= EXAMPLES THREADS OPTIONS_DEFAULT= THREADS WRKSRC= ${WRKDIR}/${DISTNAME}/tea diff --git a/deskutils/note/Makefile b/deskutils/note/Makefile index a48aaa0ec1f9..276aed5875e1 100644 --- a/deskutils/note/Makefile +++ b/deskutils/note/Makefile @@ -17,7 +17,7 @@ RUN_DEPENDS= p5-YAML>=0.1:textproc/p5-YAML \ USES= perl5 USE_PERL5= configure -OPTIONS_DEFINE= MYSQL PWSAFE3 +OPTIONS_DEFINE= EXAMPLES MYSQL PWSAFE3 OPTIONS_DEFAULT= BLOWFISH DES IDEA MYSQL PWSAFE3 MYSQL_RUN_DEPENDS= p5-DBD-mysql>0:databases/p5-DBD-mysql \ diff --git a/devel/allegro-devel/Makefile b/devel/allegro-devel/Makefile index 8b7f0898657d..4b9aa7e0eeed 100644 --- a/devel/allegro-devel/Makefile +++ b/devel/allegro-devel/Makefile @@ -64,6 +64,7 @@ DOCS_BUILD_DEPENDS= ${LOCALBASE}/bin/pandoc:textproc/hs-pandoc ALSA_LIB_DEPENDS= libasound.so.2:audio/alsa-lib ALSA_CMAKE_ON= -DWANT_ALSA=on ALSA_CMAKE_OFF= -DWANT_ALSA=off +DEMOS_IMPLIES= EXAMPLES PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_CMAKE_ON= -DWANT_PULSEAUDIO=on PULSEAUDIO_CMAKE_OFF= -DWANT_PULSEAUDIO=off diff --git a/devel/cvs2svn/Makefile b/devel/cvs2svn/Makefile index 7a66d46de600..3165b18e3053 100644 --- a/devel/cvs2svn/Makefile +++ b/devel/cvs2svn/Makefile @@ -55,7 +55,7 @@ MANPAGES= cvs2svn.1.gz \ PLIST_FILES+= ${MANPAGES:S|^|man/man1/|} -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: # be consistent with PORTVERSION diff --git a/devel/cvsweb3/Makefile b/devel/cvsweb3/Makefile index 7190081edb3e..dd68092474ea 100644 --- a/devel/cvsweb3/Makefile +++ b/devel/cvsweb3/Makefile @@ -35,7 +35,7 @@ SHEBANG_FILES= cvsweb.cgi NO_BUILD= yes NO_ARCH= yes -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.pre.mk> diff --git a/devel/eric6/Makefile b/devel/eric6/Makefile index 930c72db4333..e36736b3755e 100644 --- a/devel/eric6/Makefile +++ b/devel/eric6/Makefile @@ -29,7 +29,7 @@ PORTDATA= * PORTDOCS= * PORTEXAMPLES= * -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include "${.CURDIR}/bsd.eric6.mk" .include <bsd.port.options.mk> diff --git a/devel/erlang-gen_leader/Makefile b/devel/erlang-gen_leader/Makefile index 19d8be07a4ad..5505857cea0a 100644 --- a/devel/erlang-gen_leader/Makefile +++ b/devel/erlang-gen_leader/Makefile @@ -15,9 +15,9 @@ GH_ACCOUNT= garret-smith GH_PROJECT= gen_leader_revival GH_TAGNAME= a12a4e3 -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES -post-install: +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} diff --git a/devel/erlang-jobs/Makefile b/devel/erlang-jobs/Makefile index f26dc89f4173..577cdea96f93 100644 --- a/devel/erlang-jobs/Makefile +++ b/devel/erlang-jobs/Makefile @@ -16,9 +16,9 @@ ERL_BUILD_DEPS= devel/erlang-parse_trans ERL_RUN_DEPS:= ${ERL_BUILD_DEPS} ERL_DOCS= doc/* -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES -post-install: +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} diff --git a/devel/erlang-parse_trans/Makefile b/devel/erlang-parse_trans/Makefile index c317581d2b19..7e18159214c0 100644 --- a/devel/erlang-parse_trans/Makefile +++ b/devel/erlang-parse_trans/Makefile @@ -14,9 +14,9 @@ GH_ACCOUNT= uwiger ERL_DOCS= doc/* -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES -post-install: +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} diff --git a/devel/fistgen/Makefile b/devel/fistgen/Makefile index 25a7cd5db71c..c542a13c45a4 100644 --- a/devel/fistgen/Makefile +++ b/devel/fistgen/Makefile @@ -20,7 +20,7 @@ PORTEXAMPLES= * PLIST_FILES= sbin/fistgen \ man/man8/fistgen.8.gz -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-install: @${MKDIR} ${STAGEDIR}${DATADIR} diff --git a/devel/gengetopt/Makefile b/devel/gengetopt/Makefile index 5bbfd55a26bc..a41cc2f4e259 100644 --- a/devel/gengetopt/Makefile +++ b/devel/gengetopt/Makefile @@ -29,7 +29,7 @@ DOC_EXAMPLES= README.example cmdline1.c cmdline1.h cmdline2.c cmdline2.h \ TESTS_EXAMPLES= test_manual_help.c test_manual_help_cmd.c \ test_manual_help_cmd.ggo test_manual_help_cmd.h -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-install: ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \ diff --git a/devel/lua-sysctl/Makefile b/devel/lua-sysctl/Makefile index 83dc1a74388b..ed7ca6e96623 100644 --- a/devel/lua-sysctl/Makefile +++ b/devel/lua-sysctl/Makefile @@ -19,7 +19,7 @@ USE_GITHUB= yes GH_ACCOUNT= kAworu GH_PROJECT= lua-${PORTNAME} -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e "s/5.1/${LUA_VER}/g" ${WRKSRC}/Makefile diff --git a/devel/p5-Object-Pluggable/Makefile b/devel/p5-Object-Pluggable/Makefile index 03bf168df392..4c3b070ecafe 100644 --- a/devel/p5-Object-Pluggable/Makefile +++ b/devel/p5-Object-Pluggable/Makefile @@ -21,7 +21,9 @@ RUN_DEPENDS:= ${BUILD_DEPENDS} USES= perl5 USE_PERL5= configure -post-install: +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}/ diff --git a/devel/pure-stllib/Makefile b/devel/pure-stllib/Makefile index 6552b191e6ee..249a0ec8f0c0 100644 --- a/devel/pure-stllib/Makefile +++ b/devel/pure-stllib/Makefile @@ -27,7 +27,7 @@ DOC_FILES2= *.pdf PORTEXAMPLES= * -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS ?=|' \ diff --git a/devel/py-kid/Makefile b/devel/py-kid/Makefile index 3076b42fe1d9..faa9c56271c0 100644 --- a/devel/py-kid/Makefile +++ b/devel/py-kid/Makefile @@ -16,7 +16,7 @@ USES= python:2.7 shebangfix USE_PYTHON= distutils autoplist SHEBANG_FILES= misc/upgrade-0.6.py -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES NO_ARCH= yes DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} diff --git a/devel/py-pymtbl/Makefile b/devel/py-pymtbl/Makefile index 3766f2d530a7..5f7efd6f03e8 100644 --- a/devel/py-pymtbl/Makefile +++ b/devel/py-pymtbl/Makefile @@ -24,6 +24,8 @@ PORTEXAMPLES= * CPPFLAGS+= -I${LOCALBASE}/include +OPTIONS_DEFINE= EXAMPLES + post-install: ${STRIP_CMD} ${STAGEDIR}/${PYTHON_SITELIBDIR}/mtbl.so ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} diff --git a/devel/py-pyro/Makefile b/devel/py-pyro/Makefile index da8f33fef397..e29d4ebbcc50 100644 --- a/devel/py-pyro/Makefile +++ b/devel/py-pyro/Makefile @@ -23,7 +23,7 @@ USE_PYTHON= autoplist concurrent distutils PORTDOCS= * PORTEXAMPLES= * -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.pre.mk> diff --git a/devel/py-uvloop/Makefile b/devel/py-uvloop/Makefile index fc2c297f0bbd..6c6b6d18a80c 100644 --- a/devel/py-uvloop/Makefile +++ b/devel/py-uvloop/Makefile @@ -21,6 +21,7 @@ USES= python:3.5+ USE_PYTHON= autoplist concurrent distutils PORTDOCS= * +PORTEXAMPLES= * post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/uvloop/loop.so diff --git a/devel/pydbus-common/Makefile b/devel/pydbus-common/Makefile index 9e290c4b4e85..de42985662ee 100644 --- a/devel/pydbus-common/Makefile +++ b/devel/pydbus-common/Makefile @@ -31,7 +31,7 @@ DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} OPTIONS_SUB= yes -OPTIONS_DEFINE= HTMLDOCS DOCS +OPTIONS_DEFINE= HTMLDOCS DOCS EXAMPLES HTMLDOCS_DESC= build html documentation HTMLDOCS_IMPLIES= DOCS HTMLDOCS_CONFIGURE_OFF= --disable-html-docs diff --git a/devel/quickcheck++/Makefile b/devel/quickcheck++/Makefile index 1fcf82d25aa2..24203f05d483 100644 --- a/devel/quickcheck++/Makefile +++ b/devel/quickcheck++/Makefile @@ -20,7 +20,7 @@ NO_BUILD= yes PORTDOCS= COPYRIGHT README PORTEXAMPLES= examples.cc -OPTIONS_DEFINE= DOCS DOXYGEN +OPTIONS_DEFINE= DOCS DOXYGEN EXAMPLES DOXYGEN_DESC= Build documentation with doxygen .include <bsd.port.options.mk> diff --git a/devel/rebar/Makefile b/devel/rebar/Makefile index 47dc56578d6e..4f4dff7ee41e 100644 --- a/devel/rebar/Makefile +++ b/devel/rebar/Makefile @@ -14,7 +14,7 @@ LICENSE= APACHE20 BUILD_DEPENDS= ${LOCALBASE}/bin/escript:lang/erlang RUN_DEPENDS:= ${BUILD_DEPENDS} -OPTIONS_DEFINE= BASH ZSH +OPTIONS_DEFINE= BASH ZSH EXAMPLES USE_GITHUB= yes NO_ARCH= yes diff --git a/devel/rebar3/Makefile b/devel/rebar3/Makefile index a9eb402138bc..26d5b0a9d572 100644 --- a/devel/rebar3/Makefile +++ b/devel/rebar3/Makefile @@ -20,7 +20,7 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/erl:lang/erlang \ ${LOCALBASE}/bin/git:devel/git RUN_DEPENDS= ${LOCALBASE}/bin/erl:lang/erlang -OPTIONS_DEFINE= BASH ZSH +OPTIONS_DEFINE= BASH ZSH EXAMPLES USE_GITHUB= yes GH_ACCOUNT= rebar diff --git a/devel/relx/Makefile b/devel/relx/Makefile index 6c288eaabf10..ab55500a540d 100644 --- a/devel/relx/Makefile +++ b/devel/relx/Makefile @@ -39,7 +39,7 @@ REBAR_DEPS= bbmustache-1.0.4 \ DISTFILES+= ${_dep}.tar:hex .endfor -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES # convenience target to rebuild the relx cache file build-cache: @@ -80,11 +80,12 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/_build/default/lib/relx/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/ebin cd ${WRKSRC}/priv && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv ${INSTALL_SCRIPT} ${WRKSRC}/_build/default/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} 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} .include <bsd.port.mk> diff --git a/dns/ironsides/Makefile b/dns/ironsides/Makefile index 758185ca6469..e3010db602a0 100644 --- a/dns/ironsides/Makefile +++ b/dns/ironsides/Makefile @@ -25,6 +25,8 @@ WRKSRC= ${WRKDIR}/${DISTFILES:S/.zip//} PLIST_FILES= sbin/ironsides man/man1/ironsides.1.gz PORTEXAMPLES= dfcs.usafa.edu.zonefile +OPTIONS_DEFINE= EXAMPLES + post-extract: @${CP} ${FILESDIR}/ironsides.gpr ${FILESDIR}/Makefile ${WRKSRC}/ diff --git a/dns/powerdns/Makefile b/dns/powerdns/Makefile index 7fb321bbcebe..cea6cb79407e 100644 --- a/dns/powerdns/Makefile +++ b/dns/powerdns/Makefile @@ -38,7 +38,7 @@ SUB_FILES= pkg-message USE_RC_SUBR= pdns -OPTIONS_DEFINE= DOCS GEOIP LUAJIT MYDNS MYSQL OPENDBX OPENLDAP OPTALGO PGSQL PROTOBUF REMOTE SQLITE3 TINYDNS TOOLS UNIXODBC +OPTIONS_DEFINE= DOCS EXAMPLES GEOIP LUAJIT MYDNS MYSQL OPENDBX OPENLDAP OPTALGO PGSQL PROTOBUF REMOTE SQLITE3 TINYDNS TOOLS UNIXODBC OPTIONS_GROUP= EXPERIMENTAL REMOTEOPT OPTIONS_GROUP_EXPERIMENTAL= LUABACKEND OPTIONS_GROUP_REMOTEOPT= ZEROMQ diff --git a/emulators/dynagen/Makefile b/emulators/dynagen/Makefile index d4ef7e13def7..659ccc6809d7 100644 --- a/emulators/dynagen/Makefile +++ b/emulators/dynagen/Makefile @@ -28,7 +28,7 @@ USE_PYTHON= distutils autoplist ALL_TARGET= # empty NO_ARCH= yes -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.pre.mk> diff --git a/ftp/py-pyftpdlib/Makefile b/ftp/py-pyftpdlib/Makefile index 25a17b3235c1..12404ad601d0 100644 --- a/ftp/py-pyftpdlib/Makefile +++ b/ftp/py-pyftpdlib/Makefile @@ -16,7 +16,7 @@ USE_PYTHON= autoplist distutils SHEBANG_FILES= demo/*.py NO_ARCH= yes -OPTIONS_DEFINE= SENDFILE OPENSSL +OPTIONS_DEFINE= SENDFILE OPENSSL EXAMPLES OPTIONS_DEFAULT= SENDFILE OPENSSL SENDFILE_DESC= Enable sendfile(2) support OPENSSL_DESC= Enable FTP over SSL/TLS (RFC4217) diff --git a/games/mangband/Makefile b/games/mangband/Makefile index 8462dab33933..d7c08ae5875c 100644 --- a/games/mangband/Makefile +++ b/games/mangband/Makefile @@ -19,7 +19,7 @@ DOS2UNIXFILES= ${WRKSRC}/client/main-sdl.c MAKE_ARGS= "DATADIR=${DATADIR}" -OPTIONS_DEFINE= GCU X11 SDL +OPTIONS_DEFINE= GCU X11 SDL EXAMPLES OPTIONS_DEFAULT= GCU X11 SDL GCU_DESC= Display module GCU (curses) X11_DESC= Display module X11 diff --git a/graphics/gimp-gmic-plugin/Makefile b/graphics/gimp-gmic-plugin/Makefile index c413f33267bb..7b61c414dbaf 100644 --- a/graphics/gimp-gmic-plugin/Makefile +++ b/graphics/gimp-gmic-plugin/Makefile @@ -20,7 +20,7 @@ LIB_DEPENDS= libGraphicsMagick++.so:graphics/GraphicsMagick \ libfftw3.so:math/fftw3 \ libgimp-2.0.so:graphics/gimp-app -OPTIONS_DEFINE= BASH +OPTIONS_DEFINE= BASH EXAMPLES OPTIONS_SUB= yes BASH_RUN_DEPENDS= bash:shells/bash diff --git a/graphics/py-pygooglechart/Makefile b/graphics/py-pygooglechart/Makefile index 26ca5ca4ef37..8879ebbff95e 100644 --- a/graphics/py-pygooglechart/Makefile +++ b/graphics/py-pygooglechart/Makefile @@ -18,6 +18,8 @@ USE_PYTHON= distutils autoplist PORTEXAMPLES= * EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME} +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} && \ cd ${WRKSRC}/examples && \ diff --git a/irc/ratbox-respond/Makefile b/irc/ratbox-respond/Makefile index 72535af6c68e..7162d81d313e 100644 --- a/irc/ratbox-respond/Makefile +++ b/irc/ratbox-respond/Makefile @@ -22,7 +22,7 @@ PORTDOCS= challenge.txt PORTEXAMPLES= * PLIST_FILES= bin/ratbox-respond bin/makekeypair -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin diff --git a/irc/thales/Makefile b/irc/thales/Makefile index 05895ab75cc4..ebca8c5db5db 100644 --- a/irc/thales/Makefile +++ b/irc/thales/Makefile @@ -19,7 +19,7 @@ SHEBANG_FILES= examples/MRTG/thalesinfo.pl USE_MYSQL= yes USE_RC_SUBR= thales -OPTIONS_DEFINE= MODES DOCS +OPTIONS_DEFINE= MODES DOCS EXAMPLES OPTIONS_RADIO= IRCD OPTIONS_RADIO_IRCD= HYBRID IRCDRU UNREAL OPTIONS_DEFAULT=MODES UNREAL diff --git a/japanese/groff/Makefile b/japanese/groff/Makefile index bebdebdeb1c0..04f1587254fa 100644 --- a/japanese/groff/Makefile +++ b/japanese/groff/Makefile @@ -45,7 +45,7 @@ TMACFILES= tmac.orig_me tmac.vgrind \ an-old.tmac doc.tmac e.tmac MDOCFILES= ja.eucJP doc-common doc-syms -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: ${REINPLACE_CMD} -E -e 's|^@setfilename +groff|&.info|g;' \ diff --git a/lang/elk/Makefile b/lang/elk/Makefile index a54e097eb479..49aceaab1a54 100644 --- a/lang/elk/Makefile +++ b/lang/elk/Makefile @@ -24,6 +24,8 @@ MAKE_JOBS_UNSAFE= yes CPPFLAGS+= -I${LOCALBASE}/include/libelf -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +OPTIONS_DEFINE= EXAMPLES + .include <bsd.port.pre.mk> .if ${ARCH} == "amd64" diff --git a/mail/muttils/Makefile b/mail/muttils/Makefile index 1af3a43d0031..69057a0c6b4c 100644 --- a/mail/muttils/Makefile +++ b/mail/muttils/Makefile @@ -20,6 +20,8 @@ USE_PYTHON= distutils autoplist PORTEXAMPLES= * +OPTIONS_DEFINE= EXAMPLES + .include <bsd.port.options.mk> post-install: diff --git a/mail/pysieved/Makefile b/mail/pysieved/Makefile index c5fbe4da9ced..b89439dc4777 100644 --- a/mail/pysieved/Makefile +++ b/mail/pysieved/Makefile @@ -23,7 +23,7 @@ SUB_LIST= PORTNAME=${PORTNAME} PYTHON_CMD=${PYTHON_CMD} PORTDOCS= COPYING README README.Dovecot THANKS -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: ${REINPLACE_CMD} \ diff --git a/mail/qmail-rblchk/Makefile b/mail/qmail-rblchk/Makefile index d835490a43a1..916b1e4d2743 100644 --- a/mail/qmail-rblchk/Makefile +++ b/mail/qmail-rblchk/Makefile @@ -22,6 +22,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME} ALL_TARGET= default INSTALL_TARGET= setup +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e '/"cat/d; s|,02755|,0755|' ${WRKSRC}/hier.c diff --git a/mail/sympa/Makefile b/mail/sympa/Makefile index ae6ff7413c88..967ac4fea8a4 100644 --- a/mail/sympa/Makefile +++ b/mail/sympa/Makefile @@ -99,7 +99,7 @@ USE_RC_SUBR= sympa CONFLICTS= sympa-5* -OPTIONS_DEFINE= FASTCGI APACHE DOCS +OPTIONS_DEFINE= FASTCGI APACHE DOCS EXAMPLES OPTIONS_DEFAULT=APACHE OPTIONS_RADIO= DATABASE OPTIONS_RADIO_DATABASE= PGSQL SYBASE MYSQL diff --git a/math/blocksolve95/Makefile b/math/blocksolve95/Makefile index ec1d5a24222d..3f1da1cf9142 100644 --- a/math/blocksolve95/Makefile +++ b/math/blocksolve95/Makefile @@ -23,7 +23,7 @@ LIB_DEPENDS= libf2c.so:lang/f2c \ USES= fortran gmake tar:Z -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_RADIO= BLAS OPTIONS_RADIO_BLAS= REFERENCE ATLAS OPTIONS_DEFAULT= REFERENCE diff --git a/math/emc2/Makefile b/math/emc2/Makefile index 89b8478df487..74f1c714738c 100644 --- a/math/emc2/Makefile +++ b/math/emc2/Makefile @@ -32,7 +32,7 @@ PORTEXAMPLES= * PLIST_FILES= bin/emc2 bin/prf_f3d -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES DOCS_DISTFILES= RTemc2_fr.pdf RTemc2_gb.pdf diff --git a/math/lapack95/Makefile b/math/lapack95/Makefile index 0935bc737c47..0f55ffe5722b 100644 --- a/math/lapack95/Makefile +++ b/math/lapack95/Makefile @@ -14,6 +14,8 @@ COMMENT= LAPACK95, Fortran90/95 wrapper for LAPACK USES= fortran tar:tgz +OPTIONS_DEFINE= EXAMPLES + OPTIONS_RADIO= BLAS OPTIONS_RADIO_BLAS= REFERENCE ATLAS OPTIONS_DEFAULT= REFERENCE diff --git a/math/pari/Makefile b/math/pari/Makefile index f9887b95d213..94aee0bab248 100644 --- a/math/pari/Makefile +++ b/math/pari/Makefile @@ -29,7 +29,7 @@ CONFIGURE_ARGS= --mandir=${MANPREFIX}/man/man1 \ --with-readline ALL_TARGET= gp -OPTIONS_DEFINE= DOCS OPTIMIZED_CFLAGS X11 +OPTIONS_DEFINE= DOCS EXAMPLES OPTIMIZED_CFLAGS X11 OPTIONS_RADIO= THREADS OPTIONS_RADIO_THREADS= PTHREADS MPI OPTIONS_DEFAULT= OPTIMIZED_CFLAGS X11 PTHREADS diff --git a/math/ploticus/Makefile b/math/ploticus/Makefile index c8ba20bd227b..a0aec46f0a7b 100644 --- a/math/ploticus/Makefile +++ b/math/ploticus/Makefile @@ -39,6 +39,8 @@ PKGNAMESUFFIX= -nox11 USE_XORG= xpm .endif +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \ ${BUILD_WRKSRC}/Makefile ${BUILD_WRKSRC}/mkapi diff --git a/math/py-gato/Makefile b/math/py-gato/Makefile index 6571ca80d647..ea1a80309ff1 100644 --- a/math/py-gato/Makefile +++ b/math/py-gato/Makefile @@ -22,6 +22,8 @@ PORTEXAMPLES= * USES= python:2.7 USE_PYTHON= autoplist distutils +OPTIONS_DEFINE= EXAMPLES + post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for sample in *.alg *.pro *.cat diff --git a/math/scalapack/Makefile b/math/scalapack/Makefile index c6a6cca61644..d5e460c0795b 100644 --- a/math/scalapack/Makefile +++ b/math/scalapack/Makefile @@ -32,7 +32,7 @@ EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME:tu} SUB_FILES= pkg-message PLIST_SUB= SVERSION=${SVERSION} PORTVERSION=${PORTVERSION} -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.pre.mk> diff --git a/math/topaz/Makefile b/math/topaz/Makefile index 7f9d925059ab..41437eda9d8f 100644 --- a/math/topaz/Makefile +++ b/math/topaz/Makefile @@ -19,6 +19,8 @@ USES= ncurses readline USE_XORG= x11 MAKEFILE= Makefile.freebsd +OPTIONS_DEFINE= EXAMPLES + post-install: ${LN} -sf ${PREFIX}/lib/topaz/topaz.sh ${STAGEDIR}${PREFIX}/bin/topaz @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} diff --git a/math/xgraph/Makefile b/math/xgraph/Makefile index 62424b4785f2..46282e420020 100644 --- a/math/xgraph/Makefile +++ b/math/xgraph/Makefile @@ -20,6 +20,8 @@ USES= imake tar:Z USE_XORG= x11 xext WRKSRC= ${WRKDIR}/${PORTNAME} +OPTIONS_DEFINE= EXAMPLES + post-extract: @${SED} -ne '2,19 {s|^ \* *||;p;}' < ${WRKSRC}/copyright.h > ${WRKSRC}/COPYING diff --git a/misc/gwhich/Makefile b/misc/gwhich/Makefile index 0048b0d793c1..ceca9bc521fa 100644 --- a/misc/gwhich/Makefile +++ b/misc/gwhich/Makefile @@ -17,6 +17,8 @@ INFO= which PORTEXAMPLES= EXAMPLES PLIST_FILES= bin/gwhich man/man1/gwhich.1.gz +OPTIONS_DEFINE= EXAMPLES + post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/EXAMPLES ${STAGEDIR}${EXAMPLESDIR} diff --git a/misc/heyu2/Makefile b/misc/heyu2/Makefile index bfa603ef36a5..24c07dd9b935 100644 --- a/misc/heyu2/Makefile +++ b/misc/heyu2/Makefile @@ -19,7 +19,7 @@ HAS_CONFIGURE= yes CONFIGURE_SCRIPT= Configure CONFIGURE_ARGS= freebsd -OPTIONS_DEFINE= CM17A EXTENDED RFXSENS RFXMETER DMX OREGON +OPTIONS_DEFINE= CM17A EXTENDED RFXSENS RFXMETER DMX OREGON EXAMPLES CM17A_DESC= X10 CM17A "Firecracker" Support EXTENDED_DESC= Extended Type 0 (Shutter/Shade) Support RFXSENS_DESC= RFXSensors (RF) Support diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile index 33cd4d92e562..d6d7382bd010 100644 --- a/multimedia/mpv/Makefile +++ b/multimedia/mpv/Makefile @@ -42,7 +42,7 @@ CONFIGURE_ARGS= --docdir="${EXAMPLESDIR}" \ --disable-vapoursynth-lazy \ --enable-libmpv-shared -OPTIONS_DEFINE= ARCHIVE ASS DOCS LCMS2 LUAJIT MANPAGES TEST UCHARDET ZSH +OPTIONS_DEFINE= ARCHIVE ASS DOCS LCMS2 LUAJIT MANPAGES TEST UCHARDET ZSH EXAMPLES OPTIONS_DEFAULT= ARCHIVE ASS DVDREAD DVDNAV MANPAGES OPENGL UCHARDET \ V4L VAAPI VDPAU X11 YTDL OPTIONS_GROUP= IN VO AO diff --git a/multimedia/nordlicht/Makefile b/multimedia/nordlicht/Makefile index 0323eaefc93b..8fb35a648346 100644 --- a/multimedia/nordlicht/Makefile +++ b/multimedia/nordlicht/Makefile @@ -30,6 +30,8 @@ BROKEN_powerpc64= Does not build SHEBANG_FILES= utils/mpv-nordlicht +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} \ -e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' \ diff --git a/multimedia/oscam/Makefile b/multimedia/oscam/Makefile index 70174c62675c..09e7cb4ac304 100644 --- a/multimedia/oscam/Makefile +++ b/multimedia/oscam/Makefile @@ -26,11 +26,15 @@ FETCH_DEPENDS+= svn:devel/subversion SVN_REV= 11062 SVN_SRC= http://www.streamboard.tv/svn/oscam/trunk +OPTIONS_DEFINE= EXAMPLES + do-install: ${RM} ${WRKSRC}/Distribution/*.debug ${INSTALL_PROGRAM} ${WRKSRC}/Distribution/${PORTNAME}-${PORTVERSION}-* ${STAGEDIR}${PREFIX}/bin/oscam ${INSTALL_MAN} ${WRKSRC}/Distribution/doc/man/*.1 ${STAGEDIR}${PREFIX}/man/man1/ ${INSTALL_MAN} ${WRKSRC}/Distribution/doc/man/*.5 ${STAGEDIR}${PREFIX}/man/man5/ + +do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ ${INSTALL_DATA} ${WRKSRC}/Distribution/doc/example/* ${STAGEDIR}${EXAMPLESDIR}/ diff --git a/net-mgmt/argus3/Makefile b/net-mgmt/argus3/Makefile index 7eba0fd49e0e..d9bfd19cab1f 100644 --- a/net-mgmt/argus3/Makefile +++ b/net-mgmt/argus3/Makefile @@ -15,7 +15,7 @@ LICENSE= GPLv3 CONFLICTS= argus-2* argus-sasl-2* argus-clients-2* -OPTIONS_DEFINE= SASL +OPTIONS_DEFINE= SASL EXAMPLES OPTIONS_DEFAULT=SASL SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 SASL_CONFIGURE_ON= --with-sasl=${LOCALBASE} diff --git a/net-mgmt/blackbox_exporter/Makefile b/net-mgmt/blackbox_exporter/Makefile index f93dd32b0275..c695e599e1f4 100644 --- a/net-mgmt/blackbox_exporter/Makefile +++ b/net-mgmt/blackbox_exporter/Makefile @@ -29,6 +29,8 @@ USE_RC_SUBR= ${PORTNAME} PORTEXAMPLES= ${WRKSRC}/*.yml +OPTIONS_DEFINE= EXAMPLES + do-install: ${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} diff --git a/net-mgmt/bsnmp-ucd/Makefile b/net-mgmt/bsnmp-ucd/Makefile index 6ab2ff4a52bf..d88feedc8820 100644 --- a/net-mgmt/bsnmp-ucd/Makefile +++ b/net-mgmt/bsnmp-ucd/Makefile @@ -16,7 +16,9 @@ GH_ACCOUNT= trociny USES= uidfix MAKE_ENV+= NO_OBJ=yes -post-install: +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/snmpd.config.sample ${STAGEDIR}${EXAMPLESDIR} diff --git a/net-mgmt/icinga-classicweb/Makefile b/net-mgmt/icinga-classicweb/Makefile index cd45131d0a0f..6cc3b90ef37f 100644 --- a/net-mgmt/icinga-classicweb/Makefile +++ b/net-mgmt/icinga-classicweb/Makefile @@ -7,6 +7,8 @@ DISTNAME= icinga-${PORTVERSION} MAINTAINER= lme@FreeBSD.org COMMENT= Classic web interface for Icinga 1 and 2 +OPTIONS_DEFINE= EXAMPLES + .include "${.CURDIR}/../icinga-core/Makefile.common" LIB_DEPENDS+= libgd.so:graphics/gd diff --git a/net-mgmt/icinga-core/Makefile b/net-mgmt/icinga-core/Makefile index 2850906380bc..1a116c90ced9 100644 --- a/net-mgmt/icinga-core/Makefile +++ b/net-mgmt/icinga-core/Makefile @@ -20,7 +20,7 @@ SUB_FILES= pkg-message SUB_LIST= PREFIX=${PREFIX} \ ${PLIST_SUB} -OPTIONS_DEFINE= IDOUTILS +OPTIONS_DEFINE= IDOUTILS EXAMPLES OPTIONS_RADIO= PLUGINS OPTIONS_RADIO_PLUGINS= MONPLUGINS NAGPLUGINS OPTIONS_DEFAULT= IDOUTILS MONPLUGINS diff --git a/net-mgmt/icingaweb2/Makefile b/net-mgmt/icingaweb2/Makefile index 2135b584a739..44e86704eae4 100644 --- a/net-mgmt/icingaweb2/Makefile +++ b/net-mgmt/icingaweb2/Makefile @@ -30,7 +30,7 @@ SUB_LIST= WWWDIR=${WWWDIR} \ PLIST_SUB= WWWOWN=${WWWOWN} \ WWWGRP=${WWWGRP} -OPTIONS_DEFINE= NLS LDAP MYSQL PGSQL PDF +OPTIONS_DEFINE= NLS LDAP MYSQL PGSQL PDF EXAMPLES OPTIONS_DEFAULT= LDAP MYSQL PGSQL PDF_DESC= Export graphs as PDF diff --git a/net-mgmt/nagiosgraph/Makefile b/net-mgmt/nagiosgraph/Makefile index 6689a275c651..db6c806d1e64 100644 --- a/net-mgmt/nagiosgraph/Makefile +++ b/net-mgmt/nagiosgraph/Makefile @@ -15,7 +15,7 @@ LICENSE= ART20 RUN_DEPENDS= rrdtool>=0:databases/rrdtool \ p5-CGI>=0:www/p5-CGI -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_SINGLE= NAGIOS OPTIONS_SINGLE_NAGIOS= NAGIOS35 NAGIOS4 OPTIONS_DEFAULT= NAGIOS35 diff --git a/net-mgmt/netmagis-database/Makefile b/net-mgmt/netmagis-database/Makefile index 5d8759a11238..a6e70f63f6e5 100644 --- a/net-mgmt/netmagis-database/Makefile +++ b/net-mgmt/netmagis-database/Makefile @@ -20,4 +20,6 @@ MASTERDIR= ${.CURDIR}/../netmagis-common PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + .include "${MASTERDIR}/Makefile" diff --git a/net-mgmt/netmagis-detecteq/Makefile b/net-mgmt/netmagis-detecteq/Makefile index 0d27d0fa1523..56739ac0716f 100644 --- a/net-mgmt/netmagis-detecteq/Makefile +++ b/net-mgmt/netmagis-detecteq/Makefile @@ -15,4 +15,6 @@ MASTERDIR= ${.CURDIR}/../netmagis-common PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + .include "${MASTERDIR}/Makefile" diff --git a/net-mgmt/netmagis-metro/Makefile b/net-mgmt/netmagis-metro/Makefile index 218c51e11455..c3861ccfd1e1 100644 --- a/net-mgmt/netmagis-metro/Makefile +++ b/net-mgmt/netmagis-metro/Makefile @@ -24,4 +24,6 @@ MASTERDIR= ${.CURDIR}/../netmagis-common PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + .include "${MASTERDIR}/Makefile" diff --git a/net-mgmt/netmagis-servers/Makefile b/net-mgmt/netmagis-servers/Makefile index 8485d6ebab81..975b3b7c4888 100644 --- a/net-mgmt/netmagis-servers/Makefile +++ b/net-mgmt/netmagis-servers/Makefile @@ -15,4 +15,6 @@ MASTERDIR= ${.CURDIR}/../netmagis-common PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + .include "${MASTERDIR}/Makefile" diff --git a/net-mgmt/netmagis-topo/Makefile b/net-mgmt/netmagis-topo/Makefile index 3d19753f5e76..057d3d706cc2 100644 --- a/net-mgmt/netmagis-topo/Makefile +++ b/net-mgmt/netmagis-topo/Makefile @@ -24,6 +24,8 @@ PLIST= ${.CURDIR}/pkg-plist ALL_TARGET=build${PKGNAMESUFFIX?=} +OPTIONS_DEFINE= EXAMPLES + post-install: @${MKDIR} ${STAGEDIR}/var/netmagis/eqgen ${STAGEDIR}/var/netmagis/eqvirt diff --git a/net-mgmt/netmagis-www/Makefile b/net-mgmt/netmagis-www/Makefile index fa00b8ca846d..cf46816cc0b3 100644 --- a/net-mgmt/netmagis-www/Makefile +++ b/net-mgmt/netmagis-www/Makefile @@ -23,6 +23,8 @@ MASTERDIR= ${.CURDIR}/../netmagis-common PKGMESSAGE= ${.CURDIR}/pkg-message PLIST= ${.CURDIR}/pkg-plist +OPTIONS_DEFINE= EXAMPLES + post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/htgtcl diff --git a/net-mgmt/nsca-ng/Makefile b/net-mgmt/nsca-ng/Makefile index 5b67eebbce36..6b7342aa9733 100644 --- a/net-mgmt/nsca-ng/Makefile +++ b/net-mgmt/nsca-ng/Makefile @@ -33,7 +33,7 @@ CONFIGURE_ARGS+= --enable-server PORTDOCS= NEWS COPYING README PROTOCOL TODO -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.pre.mk> diff --git a/net-mgmt/p5-RDR-Collector/Makefile b/net-mgmt/p5-RDR-Collector/Makefile index 111f59e34be5..edec153143e8 100644 --- a/net-mgmt/p5-RDR-Collector/Makefile +++ b/net-mgmt/p5-RDR-Collector/Makefile @@ -17,6 +17,8 @@ USES= perl5 shebangfix USE_PERL5= configure SHEBANG_FILES= examples/*.pl +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} diff --git a/net-mgmt/pdagent-integrations/Makefile b/net-mgmt/pdagent-integrations/Makefile index 100fe3ebe0d4..65d68d43f12d 100644 --- a/net-mgmt/pdagent-integrations/Makefile +++ b/net-mgmt/pdagent-integrations/Makefile @@ -25,6 +25,8 @@ SUB_FILES= pagerduty-icinga2.conf pkg-message NO_ARCH= yes NO_BUILD= yes +OPTIONS_DEFINE= EXAMPLES + post-patch: ${REINPLACE_CMD} 's|/usr/share/pdagent-integrations/bin|${PREFIX}/bin|g' ${WRKSRC}/pagerduty_nagios.cfg ${WRKSRC}/conf.d/sensu_pagerduty_handler.json diff --git a/net-mgmt/pmacct/Makefile b/net-mgmt/pmacct/Makefile index d54ba202a648..93447d413692 100644 --- a/net-mgmt/pmacct/Makefile +++ b/net-mgmt/pmacct/Makefile @@ -22,7 +22,7 @@ CPPFLAGS+= "-I${LOCALBASE}/include" LDFLAGS+= "-L${LOCALBASE}/lib" OPTIONS_DEFINE= MYSQL PGSQL SQLITE3 THREADS LAYER2 IPV6 DEBUG \ - DOCS PLABEL RABBITMQ KAFKA JANSSON AVRO + DOCS PLABEL RABBITMQ KAFKA JANSSON AVRO EXAMPLES OPTIONS_DEFAULT=MMAP LAYER2 THREADS SHARED AVRO_DESC= Enable avro support diff --git a/net-mgmt/pnp/Makefile b/net-mgmt/pnp/Makefile index ffdfe8e3de8c..db58f3366f04 100644 --- a/net-mgmt/pnp/Makefile +++ b/net-mgmt/pnp/Makefile @@ -19,7 +19,7 @@ RUN_DEPENDS?= ${LOCALBASE}/bin/rrdtool:databases/rrdtool \ MAKE_JOBS_UNSAFE= yes USES= dos2unix perl5 php php:web -OPTIONS_DEFINE= PDF +OPTIONS_DEFINE= PDF EXAMPLES OPTIONS_DEFAULT= PDF PDF_DESC= Use built-in fpdf library to produce PDF views diff --git a/net-mgmt/py-snmp4/Makefile b/net-mgmt/py-snmp4/Makefile index 82a9a49f3e84..8b9c56de0596 100644 --- a/net-mgmt/py-snmp4/Makefile +++ b/net-mgmt/py-snmp4/Makefile @@ -28,7 +28,7 @@ DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} PORTDOCS= * PORTEXAMPLES= * -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-install: ${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/net-mgmt/smokeping/Makefile b/net-mgmt/smokeping/Makefile index 8894d1f7f55f..5c509a1dcd7d 100644 --- a/net-mgmt/smokeping/Makefile +++ b/net-mgmt/smokeping/Makefile @@ -64,7 +64,7 @@ RADIUS_DESC= Support for Radius probes TELNET_DESC= Support for TelnetIOSPing probes DNS_DESC= Support for AnotherDNS probes -OPTIONS_DEFINE= ECHOPING CURL RADIUS TELNET DNS FPING +OPTIONS_DEFINE= ECHOPING CURL RADIUS TELNET DNS FPING EXAMPLES OPTIONS_DEFAULT= FPING FPING_RUN_DEPENDS= ${LOCALBASE}/sbin/fping:net/fping diff --git a/net-p2p/minder/Makefile b/net-p2p/minder/Makefile index ebe180916a35..1e059d18f360 100644 --- a/net-p2p/minder/Makefile +++ b/net-p2p/minder/Makefile @@ -26,6 +26,8 @@ LDFLAGS+= $$(pkg-config --libs libxml-2.0) \ PORTEXAMPLES= minder.cfg PLIST_FILES= bin/minder +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e \ 's|^CFLAGS|#CFLAGS| ; \ diff --git a/net/deviceatlas-enterprise-c/Makefile b/net/deviceatlas-enterprise-c/Makefile index 9cc4544984cb..42493635b720 100644 --- a/net/deviceatlas-enterprise-c/Makefile +++ b/net/deviceatlas-enterprise-c/Makefile @@ -26,7 +26,7 @@ PLIST_SUB= PORTVERSION=${PORTVERSION} REGISTRATION_URL= https://deviceatlas.com/deviceatlas-haproxy-module -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.pre.mk> diff --git a/net/erlang-ranch/Makefile b/net/erlang-ranch/Makefile index f44db88d7084..99b6b67e7448 100644 --- a/net/erlang-ranch/Makefile +++ b/net/erlang-ranch/Makefile @@ -15,9 +15,9 @@ USE_GITHUB= yes GH_ACCOUNT= ninenines ERL_DOCS= doc/src/guide/* doc/src/manual/* -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES -post-install: +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} diff --git a/net/erlang-xmlrpc/Makefile b/net/erlang-xmlrpc/Makefile index 4827b865de3c..a2db5e889a16 100644 --- a/net/erlang-xmlrpc/Makefile +++ b/net/erlang-xmlrpc/Makefile @@ -16,7 +16,7 @@ WRKSRC= ${WRKDIR}/xmlrpc-${PORTVERSION} ERL_DOCS= doc/xmlrpc.pdf doc/xmlrpc.ps doc/xmlrpc.txt -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES do-build: cd ${WRKSRC}/src && ${GMAKE} @@ -26,8 +26,10 @@ post-patch: @${RM} ${WRKSRC}/src/*.orig post-install: + ${INSTALL_MAN} ${WRKSRC}/doc/xmlrpc.3 ${STAGEDIR}${MANPREFIX}/man/man3/erlang_xmlrpc.3 + +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_MAN} ${WRKSRC}/doc/xmlrpc.3 ${STAGEDIR}${MANPREFIX}/man/man3/erlang_xmlrpc.3 .include <bsd.port.mk> diff --git a/net/freeradius3/Makefile b/net/freeradius3/Makefile index 3c25c4048262..1416927aec9d 100644 --- a/net/freeradius3/Makefile +++ b/net/freeradius3/Makefile @@ -51,7 +51,7 @@ OPTIONS_SUB= yes OPTIONS_DEFINE= USER LDAP MYSQL PGSQL UNIXODBC FIREBIRD REDIS \ EXPERIMENTAL UDPFROMTO DEVELOPER EDIR PERL REST \ FREETDS IDN DOCS SQLITE3 PYTHON RUBY UNBOUND PCRE \ - WINBIND + WINBIND EXAMPLES OPTIONS_DEFAULT=USER PERL HEIMDAL UDPFROMTO OPTIONS_SINGLE= KRB OPTIONS_SINGLE_KRB= NOKRB HEIMDAL HEIMDAL_PORT MITKRB_PORT diff --git a/net/freeswitch/Makefile b/net/freeswitch/Makefile index fdc1f600eb2a..77cedda221f8 100644 --- a/net/freeswitch/Makefile +++ b/net/freeswitch/Makefile @@ -46,7 +46,7 @@ GROUPS= ${USERS} SUB_FILES= pkg-message -OPTIONS_DEFINE= ALL_MODULES X11 +OPTIONS_DEFINE= ALL_MODULES X11 EXAMPLES OPTIONS_DEFAULT= 8K 16K ENGLISH OPTIONS_MULTI= BITRATE LANGUAGE OPTIONS_MULTI_BITRATE= 8K 16K 32K 48K diff --git a/net/mininet/Makefile b/net/mininet/Makefile index ade0fc753cb3..c87e19dfb963 100644 --- a/net/mininet/Makefile +++ b/net/mininet/Makefile @@ -26,7 +26,7 @@ USE_GITHUB= yes GH_ACCOUNT= akoshibe GH_TAGNAME= b88c58c -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES do-build: @${CC} ${WRKSRC}/mnexec.c -o ${BUILD_WRKSRC}/mnexec diff --git a/net/pecl-radius/Makefile b/net/pecl-radius/Makefile index a8148276cca6..52af9c53b926 100644 --- a/net/pecl-radius/Makefile +++ b/net/pecl-radius/Makefile @@ -14,7 +14,9 @@ USES= php:pecl CONFIGURE_ARGS= --enable-radius -post-install: +OPTIONS_DEFINE= EXAMPLES + +post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} diff --git a/net/py-pynmsg/Makefile b/net/py-pynmsg/Makefile index 59b182be9ffb..99982010d240 100644 --- a/net/py-pynmsg/Makefile +++ b/net/py-pynmsg/Makefile @@ -23,6 +23,8 @@ PORTEXAMPLES= * CPPFLAGS+= -I${LOCALBASE}/include +OPTIONS_DEFINE= EXAMPLES + post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_nmsg.so ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} diff --git a/net/quagga/Makefile b/net/quagga/Makefile index f869f2f040cf..de00c9cd3f02 100644 --- a/net/quagga/Makefile +++ b/net/quagga/Makefile @@ -27,7 +27,7 @@ USE_PERL5= build INFO= quagga OPTIONS_DEFINE= ISISD PIMD PAM RTADV SNMP TCPSOCKETS DLMALLOC \ - NO_BGP_ANNOUNCE OSPF_NEXTHOP ISIS_TOPOLOGY + NO_BGP_ANNOUNCE OSPF_NEXTHOP ISIS_TOPOLOGY EXAMPLES # IRDP needs something freebsd does not seem to have: # configure: error: 'IRDP requires in_pktinfo at the moment!' OPTIONS_DEFAULT= ISISD PIMD RTADV diff --git a/net/scribe/Makefile b/net/scribe/Makefile index f1c876f877ca..e6da415b4564 100644 --- a/net/scribe/Makefile +++ b/net/scribe/Makefile @@ -36,6 +36,8 @@ CONFIGURE_ARGS= --with-boost-filesystem=boost_filesystem \ PY_PREFIX="${PREFIX}" USE_RC_SUBR= ${PORTNAME} +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's/^AM_INIT_AUTOMAKE/#/' ${WRKSRC}/configure.ac @${REINPLACE_CMD} -e '/boost/! s/shared_ptr/boost::&/g' \ diff --git a/net/sflowtool/Makefile b/net/sflowtool/Makefile index 0929db2ac670..1407087af4b7 100644 --- a/net/sflowtool/Makefile +++ b/net/sflowtool/Makefile @@ -21,7 +21,7 @@ PORTDOCS= README PORTEXAMPLES= README ipTopTalkers ipTrafficMatrix sflowRRDChart.cgi \ sflowRRDLoad sflowenable -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.options.mk> diff --git a/news/inn/Makefile b/news/inn/Makefile index cf0a32a84e37..6dece965bedb 100644 --- a/news/inn/Makefile +++ b/news/inn/Makefile @@ -24,7 +24,7 @@ CONFLICTS?= inn-stable-[0-9]* inn-current-[0-9]* OPTIONS_DEFINE= BERKELEYDB GNUPG KERBEROS SASL KEYWORDS \ LARGE_FILES OPENSSL SETGID_INEWS TAGGED_HASH \ - UUCP_RNEWS DOCS + UUCP_RNEWS DOCS EXAMPLES OPTIONS_DEFAULT= BERKELEYDB GNUPG KEYWORDS OPENSSL LARGE_FILES \ SETGID_INEW UUCP_RNEWS OPTIONS_SUB= yes diff --git a/science/cdcl/Makefile b/science/cdcl/Makefile index 18d8a584b49c..fdf859bc538f 100644 --- a/science/cdcl/Makefile +++ b/science/cdcl/Makefile @@ -16,7 +16,7 @@ COMMENT= Scientific graphic library for geoscience BROKEN_armv6= fails to link: final link failed: Nonrepresentable section on output BROKEN_armv7= fails to link: final link failed: Nonrepresentable section on output -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES USES= desthack pkgconfig USE_XORG= x11 xext USE_GNOME= gtk20 gdkpixbuf2 diff --git a/security/hashcat-legacy/Makefile b/security/hashcat-legacy/Makefile index bc53afb01550..f62a74d2be97 100644 --- a/security/hashcat-legacy/Makefile +++ b/security/hashcat-legacy/Makefile @@ -26,7 +26,7 @@ ONLY_FOR_ARCHS_REASON= uses amd64 instructions ALL_TARGET= posix64 posixXOP -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -r 's|^(CC_.*[[:blank:]]*=[[:blank:]]*)gcc[[:blank:]]*$$|\1${CC}|' ${WRKSRC}/src/Makefile diff --git a/security/logcheck/Makefile b/security/logcheck/Makefile index 6fc647d4c91f..eae2e5374242 100644 --- a/security/logcheck/Makefile +++ b/security/logcheck/Makefile @@ -27,7 +27,7 @@ BASEDIR?= # None. portlint compliance DBDIR= ${BASEDIR}/var/db/${PORTNAME} RUNDIR= ${BASEDIR}/var/run/${PORTNAME} -OPTIONS_DEFINE= CRON DOCS +OPTIONS_DEFINE= CRON DOCS EXAMPLES CRON_DESC= Install cron script automatically .if !defined(BATCH) OPTIONS_DEFAULT=CRON diff --git a/security/openct/Makefile b/security/openct/Makefile index fef293e46d0c..021b3273faee 100644 --- a/security/openct/Makefile +++ b/security/openct/Makefile @@ -14,7 +14,7 @@ LICENSE= LGPL21 LIB_DEPENDS= libltdl.so:devel/libltdl -OPTIONS_DEFINE= PCSC DOCS +OPTIONS_DEFINE= PCSC DOCS EXAMPLES PCSC_DESC= Enable PC/SC support GNU_CONFIGURE= yes diff --git a/security/p5-Digest-SHA-PurePerl/Makefile b/security/p5-Digest-SHA-PurePerl/Makefile index 1f0f50eeeb75..b4766f2eb37e 100644 --- a/security/p5-Digest-SHA-PurePerl/Makefile +++ b/security/p5-Digest-SHA-PurePerl/Makefile @@ -20,6 +20,8 @@ NO_ARCH= true PORTEXAMPLES= dups +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL diff --git a/security/signing-party/Makefile b/security/signing-party/Makefile index 73983ad482ad..725b2f374956 100644 --- a/security/signing-party/Makefile +++ b/security/signing-party/Makefile @@ -44,7 +44,7 @@ PORTEXAMPLES= ${EXAMPLES:T} PORTDOCS= * -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e 's|/usr/share/doc/signing-party/caff/caffrc\.sample|${EXAMPLESDIR}/caffrc.sample|' \ diff --git a/shells/osh/Makefile b/shells/osh/Makefile index 0743a8fa3f9b..9aa4526a4cdf 100644 --- a/shells/osh/Makefile +++ b/shells/osh/Makefile @@ -18,7 +18,7 @@ PORTEXAMPLES= * INSTALL_TARGET= install install-doc install-exp PLIST_SUB+= VER=${DISTVERSION} -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -E -e 's|(DESTEXPDIR)=|\1?=|' \ diff --git a/sysutils/cfengine22/Makefile b/sysutils/cfengine22/Makefile index 3fa1b966d4db..9ab7839e62b3 100644 --- a/sysutils/cfengine22/Makefile +++ b/sysutils/cfengine22/Makefile @@ -36,7 +36,7 @@ CONFIGURE_ENV+= BERKELEY_DB_CFLAGS=-I${BDB_INCLUDE_DIR} \ INFO= cfengine-Tutorial cfengine-Reference -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e '/^docdir/s!=.*!= @docdir@!'\ diff --git a/sysutils/ck4up/Makefile b/sysutils/ck4up/Makefile index c858f4576d09..2c86f224be9a 100644 --- a/sysutils/ck4up/Makefile +++ b/sysutils/ck4up/Makefile @@ -21,6 +21,8 @@ PORTEXAMPLES= ck4up.conf PLIST_FILES= bin/ck4up \ man/man1/ck4up.1.gz +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e 's|/usr|${LOCALBASE}|g' \ ${WRKSRC}/Makefile diff --git a/sysutils/hfm/Makefile b/sysutils/hfm/Makefile index 012c281066e5..553efe25d80a 100644 --- a/sysutils/hfm/Makefile +++ b/sysutils/hfm/Makefile @@ -33,7 +33,7 @@ MAKE_ARGS+= ETCDIR=${ETCDIR} TAG=${DISTVERSIONPREFIX}${PORTVERSION} ALL_TARGET= test build -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES do-patch: (cd ${WRKSRC}; ${PATCH} vendor/src/github.com/mitchellh/go-libucl/libucl.go < vendor/patches/github.com/mitchellh/go-libucl/libucl.go.patch ) diff --git a/sysutils/immortal/Makefile b/sysutils/immortal/Makefile index 27c84bb65f8d..ec1cebe52389 100644 --- a/sysutils/immortal/Makefile +++ b/sysutils/immortal/Makefile @@ -21,6 +21,8 @@ GH_TUPLE= immortal:logrotate:6f52ae7:logrotate/src/github.com/immortal/logrotate go-yaml:yaml:5420a8b:yaml/src/github.com/go-yaml/yaml GH_SUBDIR= src/github.com/${PORTNAME}/${PORTNAME} +OPTIONS_DEFINE= EXAMPLES + do-build: @cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; \ ${SETENV} ${MAKE_ENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -ldflags \ diff --git a/sysutils/racktables/Makefile b/sysutils/racktables/Makefile index cf4dda210f43..c0eba2140ae0 100644 --- a/sysutils/racktables/Makefile +++ b/sysutils/racktables/Makefile @@ -28,7 +28,7 @@ PLIST_SUB= WWWDIR_REL=${WWWDIR_REL} WWWDIR=${WWWDIR} WWWUSER?= www WWWGRP?= www -OPTIONS_DEFINE= LDAP SNMP CURL PCNTL PCRE +OPTIONS_DEFINE= LDAP SNMP CURL PCNTL PCRE EXAMPLES PCRE_DESC= Regular Expression Support PCNTL_DESC= pcntl Support LDAP_USE= PHP=ldap diff --git a/sysutils/zfsnap2/Makefile b/sysutils/zfsnap2/Makefile index f17ba3d31bdf..63094d0b464a 100644 --- a/sysutils/zfsnap2/Makefile +++ b/sysutils/zfsnap2/Makefile @@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE NO_BUILD= yes USE_GITHUB= yes -OPTIONS_DEFINE= BASH ZSH DOCS +OPTIONS_DEFINE= BASH ZSH DOCS EXAMPLES OPTIONS_DEFAULT= BASH ZSH OPTIONS_SUB= yes diff --git a/textproc/apache-solr3/Makefile b/textproc/apache-solr3/Makefile index 671a9ac0289a..f2f4d4c1fa2e 100644 --- a/textproc/apache-solr3/Makefile +++ b/textproc/apache-solr3/Makefile @@ -24,6 +24,8 @@ CPE_PRODUCT= solr CPE_VENDOR= apache NO_ARCH= yes +OPTIONS_DEFINE= EXAMPLES + do-install: cd ${WRKSRC}/dist && ${COPYTREE_SHARE} . ${STAGEDIR}${JAVAJARDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} diff --git a/textproc/metauml/Makefile b/textproc/metauml/Makefile index 0037645a2af5..4ab469808690 100644 --- a/textproc/metauml/Makefile +++ b/textproc/metauml/Makefile @@ -32,7 +32,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}_lib PORTDOCS= ${PORTNAME}_manual_${PORTVERSION}.pdf PORTEXAMPLES= *.1 *.jpg *.mp lop lop.html lop.pdf lop.tex -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/${MPDIR} diff --git a/textproc/py-xlwriter/Makefile b/textproc/py-xlwriter/Makefile index ef0f71606cec..69f028a38eab 100644 --- a/textproc/py-xlwriter/Makefile +++ b/textproc/py-xlwriter/Makefile @@ -16,6 +16,8 @@ USE_PYTHON= distutils autoplist PORTEXAMPLES= * +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${FIND} ${WRKSRC}/examples -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${EXAMPLESDIR} \; diff --git a/textproc/ruby-rdtool/Makefile b/textproc/ruby-rdtool/Makefile index cde135906286..b405ca77923e 100644 --- a/textproc/ruby-rdtool/Makefile +++ b/textproc/ruby-rdtool/Makefile @@ -24,7 +24,7 @@ RUBY_MODNAME= rd DOCS_EN= README.rd doc/rd-draft.rd DOCS_JA= README.rd.ja doc/rd-draft.rd.ja -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-install: ${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/rd diff --git a/textproc/tex2im/Makefile b/textproc/tex2im/Makefile index 9df1be9be6c2..9815828cdac0 100644 --- a/textproc/tex2im/Makefile +++ b/textproc/tex2im/Makefile @@ -20,6 +20,8 @@ PORTEXAMPLES= example1.png example1.tex example2.png example2.tex \ example3.png example3.tex example4.png example4.tex \ fig_1.eps +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e "s,^#!/bin/bash,#!${LOCALBASE}/bin/bash,g" ${WRKSRC}/tex2im diff --git a/textproc/xerces-j/Makefile b/textproc/xerces-j/Makefile index 4cce8e4bff5d..b9ea2465fb23 100644 --- a/textproc/xerces-j/Makefile +++ b/textproc/xerces-j/Makefile @@ -26,7 +26,7 @@ JARFILES= xercesImpl.jar xml-apis.jar PLIST_FILES= ${JARFILES:S,^,%%JAVAJARDIR%%/,} -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES do-install: @${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..." diff --git a/textproc/xom/Makefile b/textproc/xom/Makefile index c8fe407a4499..8c2eb38088c5 100644 --- a/textproc/xom/Makefile +++ b/textproc/xom/Makefile @@ -18,7 +18,7 @@ JAVA_VERSION= 1.6+ NO_BUILD= yes WRKSRC= ${WRKDIR}/XOM -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar PORTDOCS= overview.html apidocs diff --git a/www/axis/Makefile b/www/axis/Makefile index 928dd48fc5aa..6eaa826c2ddd 100644 --- a/www/axis/Makefile +++ b/www/axis/Makefile @@ -13,7 +13,7 @@ COMMENT= Java SOAP implementation by Apache LICENSE= APACHE20 -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_SINGLE= AS OPTIONS_SINGLE_AS= TOMCAT6 TOMCAT7 OPTIONS_DEFAULT= TOMCAT6 diff --git a/www/erlang-cowboy/Makefile b/www/erlang-cowboy/Makefile index 28897f766f80..0136a22964e7 100644 --- a/www/erlang-cowboy/Makefile +++ b/www/erlang-cowboy/Makefile @@ -18,9 +18,9 @@ ERL_BUILD_DEPS= www/erlang-cowlib ERL_RUN_DEPS= www/erlang-cowlib \ net/erlang-ranch -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES -post-install: +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} diff --git a/www/erlang-mochiweb-basho/Makefile b/www/erlang-mochiweb-basho/Makefile index 1530f83299fc..4e3870275aab 100644 --- a/www/erlang-mochiweb-basho/Makefile +++ b/www/erlang-mochiweb-basho/Makefile @@ -18,9 +18,9 @@ USE_GITHUB= yes GH_ACCOUNT= basho GH_TAGNAME= 4d38821 # required -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES -post-install: +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} diff --git a/www/erlang-mochiweb/Makefile b/www/erlang-mochiweb/Makefile index 553397cba147..d6966373d2c0 100644 --- a/www/erlang-mochiweb/Makefile +++ b/www/erlang-mochiweb/Makefile @@ -18,9 +18,9 @@ CPE_VENDOR= mochiweb_project USE_GITHUB= yes GH_ACCOUNT= mochi -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES -post-install: +post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} diff --git a/www/mod_auth_pam2/Makefile b/www/mod_auth_pam2/Makefile index 1e51a61bbade..70b03a057d8e 100644 --- a/www/mod_auth_pam2/Makefile +++ b/www/mod_auth_pam2/Makefile @@ -24,7 +24,7 @@ AP_GENPLIST= yes AP_EXTRAS+= -lpam -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-install: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} diff --git a/www/mod_gzip2/Makefile b/www/mod_gzip2/Makefile index ddded470a5f8..0b80b30e7185 100644 --- a/www/mod_gzip2/Makefile +++ b/www/mod_gzip2/Makefile @@ -21,7 +21,7 @@ USES= apache:2.2+ gmake PORTDOCS= commands.txt samples.txt PORTEXAMPLES= mod_gzip2.conf.sample -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${MV} ${WRKSRC}/mod_gzip.c ${WRKSRC}/${PORTNAME}.c diff --git a/www/mod_tsa/Makefile b/www/mod_tsa/Makefile index fd0dc6a0f280..173386a5288f 100644 --- a/www/mod_tsa/Makefile +++ b/www/mod_tsa/Makefile @@ -11,7 +11,7 @@ MASTER_SITES= http://am.nesiac.org/static/ \ MAINTAINER= joneum@FreeBSD.org COMMENT= Time stamping authority (RFC 3161) module for apache -OPTIONS_DEFINE= MYSQL PGSQL FIREBIRD DEBUG DEBUG_MEMORY +OPTIONS_DEFINE= MYSQL PGSQL FIREBIRD DEBUG DEBUG_MEMORY EXAMPLES DEBUG_MEMORY_DESC= Memory debug GNU_CONFIGURE= yes diff --git a/www/p5-CGI.pm/Makefile b/www/p5-CGI.pm/Makefile index 7e49f74ef47f..08465843c362 100644 --- a/www/p5-CGI.pm/Makefile +++ b/www/p5-CGI.pm/Makefile @@ -32,6 +32,8 @@ EXAMPLES= examples/caution.xbm examples/clickable_image.cgi \ examples/popup.cgi examples/save_state.cgi \ examples/tryit.cgi examples/wilogo.gif +OPTIONS_DEFINE= EXAMPLES + post-patch: @${REINPLACE_CMD} -e '/require 5\.6/d; /INSTALLDIRS/d' ${WRKSRC}/Makefile.PL diff --git a/www/py-pyweblib/Makefile b/www/py-pyweblib/Makefile index 1d5bf9420d57..ed297c10a0e0 100644 --- a/www/py-pyweblib/Makefile +++ b/www/py-pyweblib/Makefile @@ -20,7 +20,7 @@ PORTDOCS= pyweblib.forms.html pyweblib.helper.html \ pyweblib.session.html pyweblib.sslenv.html EXAMPLES= *.py -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES PORTEXAMPLES= * diff --git a/www/pycarddav/Makefile b/www/pycarddav/Makefile index e911b616e97f..79cf4e568379 100644 --- a/www/pycarddav/Makefile +++ b/www/pycarddav/Makefile @@ -32,6 +32,8 @@ PORTEXAMPLES= pycard.conf.sample SUB_FILES= pkg-message +OPTIONS_DEFINE= EXAMPLES + post-install: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/pycard.conf.sample ${STAGEDIR}${EXAMPLESDIR}/pycard.conf.sample diff --git a/www/qdecoder/Makefile b/www/qdecoder/Makefile index 7aef602c1226..344ab42fa155 100644 --- a/www/qdecoder/Makefile +++ b/www/qdecoder/Makefile @@ -20,7 +20,7 @@ PORTEXAMPLES= * PLIST_FILES= include/qdecoder.h lib/libqdecoder.a \ lib/libqdecoder.so lib/libqdecoder.so.12 -OPTIONS_DEFINE= DEBUG +OPTIONS_DEFINE= DEBUG EXAMPLES DEBUG_CONFIGURE_ENABLE= debug post-patch: diff --git a/www/trac-tweakui/Makefile b/www/trac-tweakui/Makefile index e1bb78c851ea..79eea59f0374 100644 --- a/www/trac-tweakui/Makefile +++ b/www/trac-tweakui/Makefile @@ -27,6 +27,8 @@ SUB_FILES= pkg-message WRKSRC= ${WRKDIR}/trac${PORTNAME}plugin/0.11 +OPTIONS_DEFINE= EXAMPLES + post-install: cd ${WRKSRC}/tractweakui/htdocs && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} diff --git a/www/ufdbguard/Makefile b/www/ufdbguard/Makefile index f4e033d76cae..556f2377217a 100644 --- a/www/ufdbguard/Makefile +++ b/www/ufdbguard/Makefile @@ -57,7 +57,7 @@ CONFIGURE_ARGS= --with-ssl=${OPENSSLBASE} \ MAKE_JOBS_UNSAFE= yes -OPTIONS_DEFINE= UNIXSOCKETS +OPTIONS_DEFINE= UNIXSOCKETS EXAMPLES UNIXSOCKETS_CONFIGURE_WITH= unix-sockets diff --git a/www/websh/Makefile b/www/websh/Makefile index f78f6b45af03..f5d2a4460533 100644 --- a/www/websh/Makefile +++ b/www/websh/Makefile @@ -29,7 +29,7 @@ PORTEXAMPLES= * CONFIGURE_ARGS+=--with-httpdinclude=`apxs -q includedir` -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES CPPFLAGS+= -I ${LOCALBASE}/include/apr-1 .if !defined(NO_WERROR) && ${CC} == "cc" || ${CC:T:Mgcc*} != "" diff --git a/www/xombrero/Makefile b/www/xombrero/Makefile index c2ccca11b85b..ceac388f5eac 100644 --- a/www/xombrero/Makefile +++ b/www/xombrero/Makefile @@ -36,6 +36,8 @@ GTK3_MAKE_ENV= GTK_VERSION="gtk3" SUB_FILES= xombrero PORTEXAMPLES= * +OPTIONS_DEFINE= EXAMPLES + post-patch: @cd ${WRKSRC}; ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ -e 's|# ssl_ca_file|ssl_ca_file|' \ diff --git a/x11-toolkits/py-fltk/Makefile b/x11-toolkits/py-fltk/Makefile index b012bcf1c37e..3151ca46e934 100644 --- a/x11-toolkits/py-fltk/Makefile +++ b/x11-toolkits/py-fltk/Makefile @@ -30,7 +30,7 @@ PORTDOCS= * PORTEXAMPLES= * WRKSRC= ${WRKDIR}/pyFltk-${PORTVERSION} -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES post-patch: @${REINPLACE_CMD} -e "s|/usr/X11R6|${LOCALBASE}|g;s|package_data.*},||g;s|sunos5|dragonfly4', 'freebsd8', 'freebsd9', 'freebsd10', 'freebsd11', 'freebsd12|g" ${WRKSRC}/setup.py diff --git a/x11-wm/ctwm/Makefile b/x11-wm/ctwm/Makefile index 98d0cd8baa68..cd541e7ca6e1 100644 --- a/x11-wm/ctwm/Makefile +++ b/x11-wm/ctwm/Makefile @@ -16,6 +16,6 @@ LICENSE= MIT USES= cmake:outsource jpeg tar:xz USE_XORG= x11 xext xt ice sm xpm xmu -OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE= DOCS EXAMPLES .include <bsd.port.mk> diff --git a/x11/mrxvt-devel/Makefile b/x11/mrxvt-devel/Makefile index 7aa877434578..8f9baa94db3f 100644 --- a/x11/mrxvt-devel/Makefile +++ b/x11/mrxvt-devel/Makefile @@ -28,7 +28,7 @@ DESKTOP_ENTRIES= "mrxvt" "mrxvt terminal emulator" \ false OPTIONS_DEFINE= XFT BACKGROUND JPEG PNG TRANSPARENCY SWAPSCREEN JAPANESE 24BITS \ - MENUBAR TEXTSHADOW FRILLS DOCS + MENUBAR TEXTSHADOW FRILLS DOCS EXAMPLES OPTIONS_DEFAULT= BACKGROUND JPEG PNG TRANSPARENCY SWAPSCREEN 24BITS \ MENUBAR XFT JAPANESE FRILLS TEXTSHADOW BACKGROUND_DESC= Background images |