1997-11-17 14:18:37 +01:00
|
|
|
# New ports collection makefile for: lftp
|
|
|
|
# Date created: 11 September 1997
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1997-11-17 14:18:37 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 07:31:29 +02:00
|
|
|
PORTNAME= lftp
|
2011-01-04 10:11:17 +01:00
|
|
|
PORTVERSION= 4.1.2
|
2000-01-18 13:54:55 +01:00
|
|
|
CATEGORIES= ftp ipv6
|
2010-10-15 13:30:05 +02:00
|
|
|
MASTER_SITES= http://ftp.yars.free.net/pub/source/lftp/ \
|
|
|
|
http://ftp.yars.free.net/pub/source/lftp/old/ \
|
2008-02-21 10:27:16 +01:00
|
|
|
http://lftp.cybermirror.org/ \
|
2009-02-01 03:20:22 +01:00
|
|
|
http://lftp.cybermirror.org/old/ \
|
2010-10-15 13:30:05 +02:00
|
|
|
http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/ \
|
|
|
|
http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/old/ \
|
|
|
|
http://ftp.tuwien.ac.at/infosys/browsers/ftp/lftp/ \
|
|
|
|
ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/
|
1997-11-17 14:18:37 +01:00
|
|
|
|
2010-09-27 14:08:23 +02:00
|
|
|
MAINTAINER= martymac@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= Shell-like command line ftp client
|
1997-11-17 14:18:37 +01:00
|
|
|
|
2006-09-13 22:07:40 +02:00
|
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
2005-09-18 19:53:32 +02:00
|
|
|
|
2010-10-15 13:30:05 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2006-01-25 12:09:14 +01:00
|
|
|
USE_ICONV= yes
|
2010-09-11 13:56:51 +02:00
|
|
|
USE_GZIP= yes
|
2002-07-02 19:30:31 +02:00
|
|
|
|
2005-09-18 19:53:32 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2009-03-25 16:07:17 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-09-18 19:53:32 +02:00
|
|
|
|
2008-02-21 10:27:16 +01:00
|
|
|
PORTDOCS= AUTHORS BUGS ChangeLog FAQ FEATURES INSTALL \
|
|
|
|
MIRRORS NEWS README README.debug-levels README.modules \
|
|
|
|
THANKS TODO
|
|
|
|
|
2009-09-19 14:50:42 +02:00
|
|
|
OPTIONS= OPENSSL "With OpenSSL support" on \
|
|
|
|
GNUTLS "With GnutTLS support" off \
|
2005-09-18 19:53:32 +02:00
|
|
|
NLS "With i18n support" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-05-27 16:35:44 +02:00
|
|
|
.if ${OSVERSION} < 602109 || (${OSVERSION} > 700000 && ${OSVERSION} < 700029)
|
2009-05-29 22:36:42 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libreadline.so.6:${PORTSDIR}/devel/readline
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libreadline.so.6:${PORTSDIR}/devel/readline
|
2007-05-27 16:35:44 +02:00
|
|
|
.endif
|
|
|
|
|
2005-09-18 20:47:28 +02:00
|
|
|
.if !defined(WITHOUT_OPENSSL)
|
2005-09-18 19:53:32 +02:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
2005-05-30 22:32:06 +02:00
|
|
|
CONFIGURE_ARGS+= --with-openssl
|
2008-06-05 16:44:11 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
2002-07-02 19:30:31 +02:00
|
|
|
.endif
|
|
|
|
|
2009-09-19 14:50:42 +02:00
|
|
|
.if defined(WITH_GNUTLS)
|
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
|
|
|
CONFIGURE_ARGS+= --with-gnutls
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
|
|
|
.endif
|
|
|
|
|
2004-05-28 16:18:38 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
2008-06-05 16:44:11 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
2004-05-28 16:18:38 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
2008-06-05 16:44:11 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
2004-05-28 16:18:38 +02:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-01-09 14:06:13 +01:00
|
|
|
MAN1= lftp.1 lftpget.1
|
2010-06-20 06:44:23 +02:00
|
|
|
MAN5= lftp.conf.5
|
1997-11-30 01:24:02 +01:00
|
|
|
|
2009-09-19 14:50:42 +02:00
|
|
|
pre-configure:
|
|
|
|
.if !defined(WITHOUT_OPENSSL) && defined(WITH_GNUTLS)
|
|
|
|
@${ECHO_MSG} "========"
|
|
|
|
@${ECHO_MSG} "WARNING: both OPENSSL and GNUTLS have been selected, OPENSSL will be used"
|
|
|
|
@${ECHO_MSG} "========"
|
|
|
|
.endif
|
|
|
|
|
1998-05-10 18:45:52 +02:00
|
|
|
post-install:
|
2001-11-22 01:30:26 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lftp.conf ${PREFIX}/etc/lftp.conf.sample
|
2008-02-21 10:27:16 +01:00
|
|
|
@if [ ! -f ${PREFIX}/etc/lftp.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/lftp.conf.sample ${PREFIX}/etc/lftp.conf ; \
|
|
|
|
fi
|
|
|
|
|
1998-05-10 18:45:52 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2008-02-21 10:27:16 +01:00
|
|
|
@${INSTALL} -d ${DOCSDIR}
|
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
1998-05-10 18:45:52 +02:00
|
|
|
.endif
|
1997-11-17 14:18:37 +01:00
|
|
|
|
2005-09-18 19:53:32 +02:00
|
|
|
.include <bsd.port.post.mk>
|