diff options
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/yafc/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/ftp/yafc/Makefile b/ftp/yafc/Makefile index 63d82861d054..3ad8edb52bbb 100644 --- a/ftp/yafc/Makefile +++ b/ftp/yafc/Makefile @@ -11,8 +11,8 @@ COMMENT= Yet another ftp client. Similar to ftp(1) LICENSE= GPLv2 # (or later) -OPTIONS_DEFINE= NLS SSH EXAMPLES -OPTIONS_DEFAULT=NLS SSH +OPTIONS_DEFINE= BASH EXAMPLES NLS SSH +OPTIONS_DEFAULT=BASH NLS SSH USE_XZ= yes USE_OPENSSL= yes @@ -29,9 +29,7 @@ LDFLAGS+= -L${LOCALBASE}/lib MAN1= yafc.1 INFO= yafc PORTEXAMPLES= inputrc yafcrc -PLIST_FILES= bin/yafc \ - etc/bash_completion.d/yafc -PLIST_DIRSTRY= etc/bash_completion.d +PLIST_FILES= bin/yafc .include <bsd.port.options.mk> @@ -57,6 +55,14 @@ LIB_DEPENDS+= ssh:${PORTSDIR}/security/libssh CONFIGURE_ARGS+= --without-ssh .endif +.if ${PORT_OPTIONS:MBASH} +CONFIGURE_ARGS+= --with-bash-completion=yes +PLIST_FILES+= etc/bash_completion.d/yafc +PLIST_DIRSTRY= etc/bash_completion.d +.else +CONFIGURE_ARGS+= --with-bash-completion=no +.endif + post-install: .if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} |