aboutsummaryrefslogtreecommitdiff
path: root/sysutils/autojump
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-03-14 11:20:54 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-03-14 11:20:54 +0000
commit5f7fb24f401e3ed3fbe6bac932faf28d80b3dc36 (patch)
treea9204b90cc101be547e527fde78de45217b69fc4 /sysutils/autojump
parenta01f6eaec9ff2a3b4ec649be375cba93c43e1646 (diff)
Notes
Diffstat (limited to 'sysutils/autojump')
-rw-r--r--sysutils/autojump/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysutils/autojump/Makefile b/sysutils/autojump/Makefile
index 6989ccb7e51a..e045c8f1f226 100644
--- a/sysutils/autojump/Makefile
+++ b/sysutils/autojump/Makefile
@@ -31,11 +31,12 @@ PLIST_FILES= bin/autojump \
share/autojump/icon.png
MAN1= autojump.1
-OPTIONS= ZSH "Install zsh version as well." On
+OPTIONS_DEFINE= ZSH
+OPTIONS_DEFAULT= ZSH
.include <bsd.port.options.mk>
-.if defined(WITH_ZSH)
+.if ${PORT_OPTIONS:MZSH}
RUN_DEPENDS+= ${LOCALBASE}/bin/zsh:${PORTSDIR}/shells/zsh
PLIST_FILES+= share/zsh/site-functions/_j
.endif
@@ -48,7 +49,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|/usr$$|${PREFIX}|' -e 's|/usr/local|${PREFIX}|' -e 's|/bin/zsh|${PREFIX}/bin/zsh|' ${WRKSRC}/install.zsh
do-install:
-.if defined(WITH_ZSH)
+.if ${PORT_OPTIONS:MZSH}
@(cd ${INSTALL_WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./install.zsh )
.else
@(cd ${INSTALL_WRKSRC} && ${SETENV} PREFIX=${PREFIX} ./install.sh )