summaryrefslogtreecommitdiff
path: root/ftp/yafc/Makefile
diff options
context:
space:
mode:
authorArmin Pirkovitsch <sperber@FreeBSD.org>2012-07-19 17:28:40 +0000
committerArmin Pirkovitsch <sperber@FreeBSD.org>2012-07-19 17:28:40 +0000
commitc250efb40f6dfb719b66ad11ac47f79dd3104363 (patch)
tree08b61cd829c10c4dd35f3928b05b311873b8665e /ftp/yafc/Makefile
parent- Update to version 0.31 (diff)
- Add LICENSE
- Add MAKE_JOBS_SAFE - Support USE_OPENSSL - Support PORTEXAMPLES - Add optional dependencies - PORTVERSION bumped - Add category ipv6 PR: ports/169413 Submitted by: KATO Tsuguru <tkato432 _at_ yahoo.com> Approved by: beat (mentor)
Notes
Notes: svn path=/head/; revision=301168
Diffstat (limited to 'ftp/yafc/Makefile')
-rw-r--r--ftp/yafc/Makefile42
1 files changed, 35 insertions, 7 deletions
diff --git a/ftp/yafc/Makefile b/ftp/yafc/Makefile
index 009b33050406..56ee90e2743c 100644
--- a/ftp/yafc/Makefile
+++ b/ftp/yafc/Makefile
@@ -7,38 +7,66 @@
PORTNAME= yafc
PORTVERSION= 1.2.0
-CATEGORIES= ftp
+PORTREVISION= 1
+CATEGORIES= ftp ipv6
MASTER_SITES= https://github.com/downloads/sebastinas/yafc/
MAINTAINER= ports@FreeBSD.org
COMMENT= Yet another ftp client. Similar to ftp(1)
+LICENSE= GPLv2 # (or later)
+
+OPTIONS_DEFINE= NLS SSH EXAMPLES
+OPTIONS_DEFAULT=NLS SSH
+
USE_XZ= yes
+USE_OPENSSL= yes
+USE_GMAKE= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV= ac_cv_ipv6=yes
CONFIGURE_ARGS= --with-socks=no --with-socks5=no --with-krb4=no \
- --with-krb5=no --disable-nls
+ --with-krb5=no --with-openssl=${OPENSSLBASE}
+MAKE_JOBS_SAFE= yes
+
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
FETCH_ARGS= -Fpr
MAN1= yafc.1
INFO= yafc
+PORTEXAMPLES= inputrc yafcrc
PLIST_FILES= bin/yafc \
etc/bash_completion.d/yafc
PLIST_DIRSTRY= etc/bash_completion.d
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GNOME+= intltool
+USE_GETTEXT= yes
+LDFLAGS+= -lintl
+PLIST_FILES+= share/locale/sv/LC_MESSAGES/yafc.mo
+.else
+CONFIGURE_ARGS+= --disable-nls
+.endif
+
+.if ${PORT_OPTIONS:MSSH}
+LIB_DEPENDS+= ssh:${PORTSDIR}/security/libssh
+.else
+CONFIGURE_ARGS+= --without-ssh
+.endif
+
.include <bsd.port.pre.mk>
-.if exists(${LOCALBASE}/lib/libreadline.so.6)
-LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline
+.if exists(${LOCALBASE}/lib/libreadline.so)
+LIB_DEPENDS+= readline:${PORTSDIR}/devel/readline
.endif
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
-PLIST_FILES+= %%EXAMPLESDIR%%/inputrc \
- %%EXAMPLESDIR%%/yafcrc
-PLIST_DIRS+= %%EXAMPLESDIR%%
.endif
.include <bsd.port.post.mk>