aboutsummaryrefslogtreecommitdiff
path: root/security/autossh
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-04 22:17:11 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-04 22:17:11 +0000
commit849ee6c94fe3272b7f7db3232a30f6801ef8bfec (patch)
tree35f426fe810706739865778e4d89e485ae175a34 /security/autossh
parentd7964bc2699613e5b855a60b33978c6926fed4ac (diff)
downloadports-849ee6c94fe3272b7f7db3232a30f6801ef8bfec.tar.gz
ports-849ee6c94fe3272b7f7db3232a30f6801ef8bfec.zip
Remove NOPORTDOCS and NOPORTEXAMPLES.
Notes
Notes: svn path=/head/; revision=360671
Diffstat (limited to 'security/autossh')
-rw-r--r--security/autossh/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/security/autossh/Makefile b/security/autossh/Makefile
index f0db40abaa87..0968963b0864 100644
--- a/security/autossh/Makefile
+++ b/security/autossh/Makefile
@@ -14,11 +14,15 @@ GNU_CONFIGURE= yes
PORTDOCS= CHANGES README
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's,cp autossh.1 ,$$\{BSD_INSTALL_MAN\} autossh.1 ,g' ${WRKSRC}/${MAKEFILE}.in
@${REINPLACE_CMD} -e 's,cp autossh ,$$\{BSD_INSTALL_PROGRAM\} autossh ,g' ${WRKSRC}/${MAKEFILE}.in
@${REINPLACE_CMD} -e 's,cp ,$$\{BSD_INSTALL_DATA\} ,g' ${WRKSRC}/${MAKEFILE}.in
-.if defined(NOPORTDOCS)
+.if empty(PORT_OPTIONS:MDOCS)
@${REINPLACE_CMD} -Ee '/doc/d' ${WRKSRC}/${MAKEFILE}.in
.endif