PORTNAME=	bbftp-client
PORTVERSION=	3.2.1
PORTREVISION=	1
CATEGORIES=	ftp
MASTER_SITES=	http://software.in2p3.fr/bbftp/dist/ \
		ftp://ftp.in2p3.fr/pub/bbftp/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Secure file transfer suite optimized for large files (client)
WWW=		http://software.in2p3.fr/bbftp/

LICENSE=	GPLv2+

USES=		gmake ssl
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-ssl=${OPENSSLBASE}
WRKSRC_SUBDIR=	bbftpc

OPTIONS_DEFINE=	DOCS

post-patch:
	@${REINPLACE_CMD} -e '/with_ssl\/lib\/libcrypto/s,\.a,.so,' \
		${WRKSRC}/${CONFIGURE_SCRIPT}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bbftp ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/../doc/bbftp.1 \
		${STAGEDIR}${PREFIX}/share/man/man1

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/../doc/ports ${WRKSRC}/../ChangeLog \
		${WRKSRC}/../README ${WRKSRC}/../TODO ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
