summaryrefslogtreecommitdiff
path: root/net-p2p/rtorrent
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-08-06 04:34:23 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-08-06 04:34:23 +0000
commitcb7d5cc607bbcd6285b960eecd3a1daf1d7e9e1e (patch)
treed206a205dd3870d245c26875f1da2aaa627aad64 /net-p2p/rtorrent
parentFix build without gcc. (diff)
In some straightforward situations, protect examples behind PORTEXAMPLES,
adding EXAMPLES to OPTIONS_DEFINE where necessary. In a couple instances, correct examples being controlled by the DOCS option.
Notes
Notes: svn path=/head/; revision=364152
Diffstat (limited to 'net-p2p/rtorrent')
-rw-r--r--net-p2p/rtorrent/Makefile8
-rw-r--r--net-p2p/rtorrent/pkg-plist4
2 files changed, 6 insertions, 6 deletions
diff --git a/net-p2p/rtorrent/Makefile b/net-p2p/rtorrent/Makefile
index cf4d35e705d0..0e680327b103 100644
--- a/net-p2p/rtorrent/Makefile
+++ b/net-p2p/rtorrent/Makefile
@@ -22,8 +22,8 @@ SUB_FILES= pkg-message
PORTDOCS= README
-OPTIONS_DEFINE= XMLRPC IPV6 DOCS
-OPTIONS_DEFAULT= XMLRPC
+OPTIONS_DEFINE= XMLRPC IPV6 DOCS EXAMPLES
+OPTIONS_DEFAULT=XMLRPC
XMLRPC_DESC= Compile with xmlrpc-c support
.include <bsd.port.options.mk>
@@ -60,9 +60,9 @@ post-patch:
.endif
post-install:
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc ${STAGEDIR}${EXAMPLESDIR}
- ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/net-p2p/rtorrent/pkg-plist b/net-p2p/rtorrent/pkg-plist
index f1b481743355..84240a93e464 100644
--- a/net-p2p/rtorrent/pkg-plist
+++ b/net-p2p/rtorrent/pkg-plist
@@ -1,3 +1,3 @@
bin/rtorrent
-%%EXAMPLESDIR%%/rtorrent.rc
-@dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/rtorrent.rc
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%