diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-03 18:18:02 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-03 18:18:02 +0000 |
commit | 660fc56a8271307f10301a4a1f1978186d01f4c5 (patch) | |
tree | b536625912e0dbf4d80e3e4ce6844a97d066e3da /ftp/yafc/Makefile | |
parent | Add sanity check to match LIB_DEPENDS C++ library against ours. (diff) |
Resolve unnecessary bsd.port.options.mk inclusion by using OPTIONS helpers.
Approved by: portmgr (blanket)
Notes
Notes:
svn path=/head/; revision=360440
Diffstat (limited to 'ftp/yafc/Makefile')
-rw-r--r-- | ftp/yafc/Makefile | 43 |
1 files changed, 13 insertions, 30 deletions
diff --git a/ftp/yafc/Makefile b/ftp/yafc/Makefile index 14c3ea25b6aa..3b8085de026e 100644 --- a/ftp/yafc/Makefile +++ b/ftp/yafc/Makefile @@ -29,42 +29,25 @@ PLIST_FILES= bin/yafc \ info/yafc.info \ man/man1/yafc.1.gz -.include <bsd.port.options.mk> +NLS_USES= gettext +NLS_USE= GNOME=intltool +NLS_CONFIGURE_WITH= gettext=${LOCALBASE} +NLS_PLIST_FILES= share/locale/de/LC_MESSAGES/yafc.mo \ + share/locale/sv/LC_MESSAGES/yafc.mo -.if ${PORT_OPTIONS:MNLS} -USE_GNOME+= intltool -USES+= gettext -CONFIGURE_ARGS+= --with-gettext=${LOCALBASE} -PLIST_FILES+= share/locale/de/LC_MESSAGES/yafc.mo \ - share/locale/sv/LC_MESSAGES/yafc.mo -.else -CONFIGURE_ARGS+= --without-gettext -.endif +READLINE_USES= readline +READLINE_CONFIGURE_WITH=readline -.if ${PORT_OPTIONS:MREADLINE} -USES+= readline -.else -CONFIGURE_ARGS+= --without-readline -.endif +SSH_LIB_DEPENDS= libssh.so:${PORTSDIR}/security/libssh +SSH_CONFIGURE_OFF= --without-ssh -.if ${PORT_OPTIONS:MSSH} -LIB_DEPENDS+= libssh.so:${PORTSDIR}/security/libssh -.else -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 +BASH_CONFIGURE_ON= --with-bash-completion=yes +BASH_PLIST_FILES= etc/bash_completion.d/yafc +BASH_PLIST_DIRSTRY= etc/bash_completion.d +BASH_CONFIGURE_OFF= --with-bash-completion=no post-install: -.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR} -.endif .include <bsd.port.mk> |