summaryrefslogtreecommitdiff
path: root/ftp/yafc/Makefile
blob: 6fd832c306350ccf5a16226d1ebd097d010134fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Created by: Chris Piazza <cpiazza@FreeBSD.org>
# $FreeBSD$

PORTNAME=	yafc
PORTVERSION=	1.2.5
PORTREVISION=	1
CATEGORIES=	ftp ipv6
MASTER_SITES=	http://www.yafc-ftp.com/downloads/

MAINTAINER=	wg@FreeBSD.org
COMMENT=	Yet another ftp client. Similar to ftp(1)

LICENSE=	GPLv2+

OPTIONS_DEFINE=	BASH EXAMPLES NLS SSH READLINE
OPTIONS_DEFAULT=BASH NLS SSH

USES=		gmake tar:xz
USE_OPENSSL=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	ac_cv_ipv6=yes
CONFIGURE_ARGS=	--with-socks=no --with-socks5=no --with-krb4=no \
		--with-krb5=no --with-openssl=${OPENSSLBASE}

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

PORTEXAMPLES=	inputrc yafcrc
PLIST_FILES=	bin/yafc \
		man/man1/yafc.1.gz
INFO=		yafc

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

READLINE_USES=		readline
READLINE_CONFIGURE_WITH=readline

SSH_LIB_DEPENDS=	libssh.so:security/libssh
SSH_CONFIGURE_OFF=	--without-ssh

BASH_CONFIGURE_ON=	--with-bash-completion=yes
BASH_PLIST_FILES=	etc/bash_completion.d/yafc
BASH_CONFIGURE_OFF=	--with-bash-completion=no

post-install:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>