1 # Created by: Andrey Zakhvatov
7 MASTER_SITES= http://lftp.yar.ru/ftp/ \
8 http://lftp.yar.ru/ftp/old/ \
9 http://lftp.cybermirror.org/ \
10 http://lftp.cybermirror.org/old/ \
11 http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/ \
12 http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/old/ \
13 http://ftp.tuwien.ac.at/infosys/browsers/ftp/lftp/ \
14 ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/
16 MAINTAINER= martymac@FreeBSD.org
17 COMMENT= Shell-like command line ftp client
21 LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2
23 USES= charsetfix iconv libtool readline shebangfix
25 CPPFLAGS+= -I${LOCALBASE}/include
26 LIBS+= -L${LOCALBASE}/lib
28 # XXX FreeBSD 9.x has posix_fallocate() for OSVERSION > 900035,
29 # but is missing the required POSIX_FADV_* macros
30 CONFIGURE_ENV= i_cv_posix_fallocate_works=no
32 PORTDOCS= AUTHORS BUGS ChangeLog FAQ FEATURES INSTALL \
33 MIRRORS NEWS README README.debug-levels README.modules \
36 SHEBANG_FILES= src/verify-file \
37 src/convert-mozilla-cookies \
42 OPTIONS_RADIO_SSL= OPENSSL GNUTLS
43 OPTIONS_DEFAULT= SSL OPENSSL NLS
46 NLS_CONFIGURE_ENABLE= nls
47 OPENSSL_CONFIGURE_WITH= openssl
48 OPENSSL_USE= OPENSSL=yes
49 GNUTLS_CONFIGURE_WITH= gnutls
50 GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
51 GNUTLS_USES= pkgconfig
53 .include <bsd.port.options.mk>
55 .if ${PORT_OPTIONS:MOPENSSL}
56 . if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000015
57 WITH_OPENSSL_PORT= yes
58 CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}
63 ${MV} ${STAGEDIR}${PREFIX}/etc/lftp.conf \
64 ${STAGEDIR}${PREFIX}/etc/lftp.conf.sample
65 ${MKDIR} ${STAGEDIR}${DOCSDIR}
66 ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
68 .include <bsd.port.mk>