source: trunk/dports/net/lftp/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- 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
2# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem          1.0
5PortGroup           muniversal 1.0
6
7name                lftp
8version             4.6.2
9categories          net
10platforms           darwin
11maintainers         gmail.com:mschamschula openmaintainer
12license             GPL-3+
13
14description         Sophisticated file transfer program
15long_description    Lftp is a shell-like command line ftp client. It is \
16                    reliable, can retry operations and does reget \
17                    automatically. It can do several transfers \
18                    simultaneously in background. You can start a transfer \
19                    in background and continue browsing the ftp site or \
20                    another one. This all is done in one process. Background \
21                    jobs will be completed in nohup mode if you exit or \
22                    close modem connection. Lftp has reput, mirror, reverse \
23                    mirror among its features.
24
25homepage            http://lftp.yar.ru/
26master_sites        ${homepage}ftp/
27use_xz              yes
28
29checksums           rmd160  b8424628d42359f102f0d3d2d02b3650c2126e5f \
30                    sha256  1e61d5c94b06c333309185e86cfce0729e45e3f69f7496c58d61093b135c8bb9
31
32depends_lib         port:expat \
33                    port:gettext \
34                    port:libiconv \
35                    port:ncurses \
36                    path:lib/libssl.dylib:openssl \
37                    port:readline \
38                    port:zlib
39
40# look for ncurses first
41patchfiles          patch-configure.diff
42
43configure.args      --with-openssl \
44                    --without-gnutls \
45                    --enable-nls
46
47post-destroot {
48    set docdir ${destroot}${prefix}/share/doc/${name}
49    xinstall -d ${docdir}
50    xinstall -m 644 -W ${worksrcpath} AUTHORS BUGS ChangeLog COPYING FAQ FEATURES \
51        NEWS README README.debug-levels README.modules MIRRORS THANKS TODO \
52        ${docdir}
53    file delete -force "${destroot}${prefix}/lib/charset.alias"
54}
55
56variant tls description {Use GnuTLS instead of OpenSSL} {
57    depends_build-append    port:pkgconfig
58    depends_lib-replace     path:lib/libssl.dylib:openssl port:gnutls
59
60    configure.args-replace  --with-openssl --without-openssl
61    configure.args-replace  --without-gnutls --with-gnutls
62}
63
64livecheck.type      regex
65livecheck.url       ${homepage}
66livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*) released
Note: See TracBrowser for help on using the repository browser.