aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2009-05-11 02:18:33 +0800
committerbeat <beat@FreeBSD.org>2009-05-11 02:18:33 +0800
commitcd07d04d3b4440d52c0d3391b207d324f9661c3c (patch)
tree278045c7fe5daefa42e7ef2b2fb11d60e785afba /devel
parent1f2931d55e78c913e269aca1b7788e55ab9c5e61 (diff)
downloadfreebsd-ports-gnome-cd07d04d3b4440d52c0d3391b207d324f9661c3c.tar.gz
freebsd-ports-gnome-cd07d04d3b4440d52c0d3391b207d324f9661c3c.tar.zst
freebsd-ports-gnome-cd07d04d3b4440d52c0d3391b207d324f9661c3c.zip
- Respect NOPORTDOCS
Approved by: miwi (mentor)
Diffstat (limited to 'devel')
-rw-r--r--devel/callgrind/Makefile6
-rw-r--r--devel/callgrind/pkg-plist4
2 files changed, 8 insertions, 2 deletions
diff --git a/devel/callgrind/Makefile b/devel/callgrind/Makefile
index 952888639849..ca1f016a7a01 100644
--- a/devel/callgrind/Makefile
+++ b/devel/callgrind/Makefile
@@ -31,4 +31,10 @@ RUN_DEPENDS= valgrind:${PORTSDIR}/devel/valgrind
BUILD_DEPENDS= valgrind:${PORTSDIR}/devel/valgrind
.endif
+pre-patch:
+.ifdef(NOPORTDOCS)
+ ${FIND} ${WRKSRC} -name "Makefile.in" -exec \
+ ${REINPLACE_CMD} -e "s/docs//g" {} \;
+.endif
+
.include <bsd.port.post.mk>
diff --git a/devel/callgrind/pkg-plist b/devel/callgrind/pkg-plist
index 77f7224a7c98..665c73cf7a4a 100644
--- a/devel/callgrind/pkg-plist
+++ b/devel/callgrind/pkg-plist
@@ -3,5 +3,5 @@ bin/callgrind_annotate
bin/callgrind_control
include/valgrind/callgrind.h
lib/valgrind/vgskin_callgrind.so
-share/doc/valgrind/ct_main.html
-share/doc/valgrind/ct_techdocs.html
+%%PORTDOCS%%share/doc/valgrind/ct_main.html
+%%PORTDOCS%%share/doc/valgrind/ct_techdocs.html