freebsd-ports/ftp/lftp/Makefile

83 lines
2 KiB
Makefile
Raw Normal View History

2013-02-01 13:29:11 +01:00
# Created by: Andrey Zakhvatov
1999-08-25 07:57:29 +02:00
# $FreeBSD$
2000-04-12 07:31:29 +02:00
PORTNAME= lftp
2013-03-18 09:16:22 +01:00
PORTVERSION= 4.4.5
2000-01-18 13:54:55 +01:00
CATEGORIES= ftp ipv6
MASTER_SITES= http://ftp.yars.free.net/pub/source/lftp/ \
http://ftp.yars.free.net/pub/source/lftp/old/ \
http://lftp.cybermirror.org/ \
http://lftp.cybermirror.org/old/ \
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/
MAINTAINER= martymac@FreeBSD.org
2003-02-21 13:06:51 +01:00
COMMENT= Shell-like command line ftp client
LICENSE= GPLv3
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
USES= iconv
CPPFLAGS+= -I${LOCALBASE}/include
GNU_CONFIGURE= yes
# XXX FreeBSD 9.x has posix_fallocate() for OSVERSION > 900035,
# but is missing the required POSIX_FADV_* macros
CONFIGURE_ENV= i_cv_posix_fallocate_works=no \
LIBS="-L${LOCALBASE}/lib"
MAKE_JOBS_SAFE= yes
PORTDOCS= AUTHORS BUGS ChangeLog FAQ FEATURES INSTALL \
MIRRORS NEWS README README.debug-levels README.modules \
THANKS TODO
OPTIONS_DEFINE= NLS
OPTIONS_RADIO= SSL
OPTIONS_RADIO_SSL= OPENSSL GNUTLS
OPTIONS_DEFAULT= SSL OPENSSL NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENSSL}
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl
.else
CONFIGURE_ARGS+= --without-openssl
.endif
.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
CONFIGURE_ARGS+= --with-gnutls
.else
CONFIGURE_ARGS+= --without-gnutls
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
MAN1= lftp.1 lftpget.1
MAN5= lftp.conf.5
1997-11-30 01:24:02 +01:00
post-install:
@${INSTALL_DATA} ${WRKSRC}/lftp.conf ${PREFIX}/etc/lftp.conf.sample
.if !exists(${PREFIX}/etc/lftp.conf)
${CP} -p ${PREFIX}/etc/lftp.conf.sample ${PREFIX}/etc/lftp.conf
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>