aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-ack
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/p5-ack')
-rw-r--r--textproc/p5-ack/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/textproc/p5-ack/Makefile b/textproc/p5-ack/Makefile
index 17864b98a6a2..1a0f4c3c937c 100644
--- a/textproc/p5-ack/Makefile
+++ b/textproc/p5-ack/Makefile
@@ -23,10 +23,12 @@ PERL_CONFIGURE= yes
MAN1= ack.1
+OPTIONS= BASH_COMPLETE "use bash completion" off
+
.include <bsd.port.pre.mk>
COMPLETION_DIR= ${PREFIX}/etc/bash_completion.d
-.if exists(${COMPLETION_DIR})
+.if defined(WITH_BASH_COMPLETE)
RUN_DEPENDS+= ${COMPLETION_DIR}:${PORTSDIR}/shells/bash-completion
PLIST_SUB+= BASH=""
post-install: