aboutsummaryrefslogtreecommitdiff
path: root/security/autossh
diff options
context:
space:
mode:
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