aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-10-04 00:49:12 +0800
committerbapt <bapt@FreeBSD.org>2013-10-04 00:49:12 +0800
commit4edd17883c54a36d0b3749bb87cb8bc444b3963b (patch)
tree1499bdce52be0753758590af58c6add4a33e64cf /net-p2p
parent58defbde89a2f7d54424c15d7589f1c60839ef01 (diff)
downloadfreebsd-ports-gnome-4edd17883c54a36d0b3749bb87cb8bc444b3963b.tar.gz
freebsd-ports-gnome-4edd17883c54a36d0b3749bb87cb8bc444b3963b.tar.zst
freebsd-ports-gnome-4edd17883c54a36d0b3749bb87cb8bc444b3963b.zip
Add a DOCS option
Always install docs in post-install to avoid reading twice bsd.port.mk Remove the bsd.port.options.mk/bsd.port.mk dancing Define all plist related things into pkg-plist
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/btpd/Makefile10
-rw-r--r--net-p2p/btpd/pkg-plist2
2 files changed, 5 insertions, 7 deletions
diff --git a/net-p2p/btpd/Makefile b/net-p2p/btpd/Makefile
index 12bb7d688ab4..44f52a0d1c5f 100644
--- a/net-p2p/btpd/Makefile
+++ b/net-p2p/btpd/Makefile
@@ -11,18 +11,14 @@ COMMENT= Bittorrent client consisting of a daemon and client commands
LICENSE= BSD
+OPTIONS_DEFINE= DOCS
+
USE_AUTOTOOLS= autoconf aclocal
GNU_CONFIGURE= yes
USE_OPENSSL= yes
-PORTDOCS= README
-
-.include <bsd.port.options.mk>
-
post-install:
-.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
diff --git a/net-p2p/btpd/pkg-plist b/net-p2p/btpd/pkg-plist
index 6bce95981274..8c5f4f1adb63 100644
--- a/net-p2p/btpd/pkg-plist
+++ b/net-p2p/btpd/pkg-plist
@@ -4,3 +4,5 @@ bin/btpd
man/man1/btcli.1.gz
man/man1/btinfo.1.gz
man/man1/btpd.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%