# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup muniversal 1.0 name lftp version 4.9.2 revision 5 categories net maintainers {mps @Schamschula} openmaintainer license GPL-3+ description Sophisticated file transfer program long_description Lftp is a shell-like command line ftp client. It is \ reliable, can retry operations and does reget \ automatically. It can do several transfers \ simultaneously in background. You can start a transfer \ in background and continue browsing the ftp site or \ another one. This all is done in one process. Background \ jobs will be completed in nohup mode if you exit or \ close modem connection. Lftp has reput, mirror, reverse \ mirror among its features. homepage http://lftp.yar.ru/ master_sites ${homepage}ftp/ use_xz yes checksums rmd160 48ec8b568af0023ab41baaf2f4363a0400667c77 \ sha256 c517c4f4f9c39bd415d7313088a2b1e313b2d386867fe40b7692b83a20f0670d \ size 1654960 depends_build port:autoconf \ port:automake \ port:bison \ port:gettext depends_lib port:expat \ port:gettext-runtime \ port:libiconv \ port:libidn2 \ port:ncurses \ path:lib/libssl.dylib:openssl \ port:pkgconfig \ port:readline \ port:zlib # look for ncurses first, fix 4.7.x build issues patchfiles patch-m4-needtrio.m4.diff \ patch-src.diff # see https://trac.macports.org/ticket/61005 patchfiles-append patch-src-lftp.ssl.cc.diff compiler.blacklist-append \ *gcc-4.0 *gcc-4.2 use_autoconf yes use_automake yes configure.args --with-openssl \ --without-gnutls \ --with-readline=${prefix} \ --enable-nls configure.checks.implicit_function_declaration.whitelist-append \ MIN \ posix_fallocate \ re_compile_pattern \ re_search \ re_set_syntax \ strchr pre-patch { # needed for 4.7.x build issues move ${worksrcpath}/src/lftp_rl.c ${worksrcpath}/src/lftp_rl.cc } pre-configure { system -W ${worksrcpath} aclocal } post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS ChangeLog COPYING FAQ FEATURES \ NEWS README README.debug-levels README.modules MIRRORS THANKS TODO \ ${docdir} file delete -force "${destroot}${prefix}/lib/charset.alias" } variant tls description {Use GnuTLS instead of OpenSSL} { depends_build-append port:pkgconfig depends_lib-replace path:lib/libssl.dylib:openssl path:lib/pkgconfig/gnutls.pc:gnutls configure.args-replace --with-openssl --without-openssl configure.args-replace --without-gnutls --with-gnutls } livecheck.type regex livecheck.url ${homepage} livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) released