1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Respect NOPORTEXAMPLES knob

Requested by:	Earl Lapus <earl.lapus AT gmail.com>
This commit is contained in:
Beat Gaetzi 2010-04-10 09:34:02 +00:00
parent e69b24ae25
commit 448f9afa68
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252519
2 changed files with 14 additions and 10 deletions

View File

@ -90,9 +90,13 @@ post-extract:
-e 's/^ cd .* rrdtool.html index.html/ #/' \
${WRKSRC}/doc/Makefile.in
.endif
.if defined(NOPORTEXAMPLES)
${REINPLACE_CMD} -e '/^SUBDIRS = /s| examples | |' \
${WRKSRC}/Makefile.in
.endif
post-install:
.if !defined(BATCH)
.if !defined(BATCH) && !defined(NOPORTEXAMPLES)
@${ECHO_MSG} ""
@${ECHO_MSG} "############################################################################"
@${ECHO_MSG} "# See ${PREFIX}/share/examples/rrdtool for some demonstration code #"

View File

@ -10,14 +10,14 @@ lib/librrd_th.la
lib/librrd_th.so
lib/librrd_th.so.2
include/rrd.h
%%EXAMPLESDIR%%/4charts.pl
%%EXAMPLESDIR%%/bigtops.pl
%%EXAMPLESDIR%%/cgi-demo.cgi
%%EXAMPLESDIR%%/minmax.pl
%%EXAMPLESDIR%%/piped-demo.pl
%%EXAMPLESDIR%%/perftest.pl
%%EXAMPLESDIR%%/shared-demo.pl
%%EXAMPLESDIR%%/stripes.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/4charts.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bigtops.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cgi-demo.cgi
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/minmax.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/piped-demo.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/perftest.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/shared-demo.pl
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stripes.pl
%%PORTDOCS%%%%DOCSDIR%%/html/RRDp.html
%%PORTDOCS%%%%DOCSDIR%%/html/RRDs.html
%%PORTDOCS%%%%DOCSDIR%%/html/bin_dec_hex.html
@ -109,7 +109,7 @@ include/rrd.h
%%WITH_PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/RRDs/.packlist
%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/rrdtoolmodule.so
%%WITH_RUBY%%%%RUBY_SITEARCHLIBDIR%%/RRD.so
@dirrm %%EXAMPLESDIR%%
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%/txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
%%PORTDOCS%%@dirrm %%DOCSDIR%%