1 | # $Id: Portfile 20872 2006-12-06 15:25:12Z yeled@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name lftp |
---|
5 | version 3.5.9 |
---|
6 | categories net |
---|
7 | maintainers yeled@macports.org |
---|
8 | description Sophisticated file transfer program |
---|
9 | long_description LFTP is a shell-like command line ftp client. \ |
---|
10 | It is reliable: can retry operations and does reget \ |
---|
11 | automatically. It can do several transfers simultaneously \ |
---|
12 | in background. You can start a transfer in background and \ |
---|
13 | continue browsing the ftp site or another one. This all is \ |
---|
14 | done in one process. Background jobs will be completed in \ |
---|
15 | nohup mode if you exit or close modem connection. Lftp has \ |
---|
16 | reput, mirror, reverse mirror among its features. |
---|
17 | homepage http://lftp.yar.ru/ |
---|
18 | platforms darwin |
---|
19 | |
---|
20 | depends_lib port:expat port:libiconv port:ncurses |
---|
21 | |
---|
22 | master_sites ftp://lftp.yar.ru/lftp/ \ |
---|
23 | ftp://lftp.yar.ru/lftp/old/ \ |
---|
24 | ftp://ftp.wiretapped.net/pub/mirrors/${name}/ \ |
---|
25 | ftp://ftp.wiretapped.net/pub/mirrors/${name}/old/ \ |
---|
26 | ftp://ftp.cs.tu-berlin.de/pub/net/ftp/${name}/ \ |
---|
27 | http://ftp.yars.free.net/pub/source/${name}/ |
---|
28 | use_bzip2 yes |
---|
29 | checksums md5 242aa0b01be79942bb9bcdd2a4b079ba \ |
---|
30 | sha1 ce4f7abb5a74e90218bb2ee94170ace747025298 |
---|
31 | |
---|
32 | default_variants +ssl |
---|
33 | |
---|
34 | configure.env CPPFLAGS="-I${prefix}/include" \ |
---|
35 | LDFLAGS="-L${prefix}/lib" |
---|
36 | |
---|
37 | configure.args --without-openssl --without-gnutls --disable-nls |
---|
38 | |
---|
39 | pre-configure { |
---|
40 | # look for ncurses first |
---|
41 | reinplace "s|curses ncurses|ncurses curses|g" ${worksrcpath}/configure |
---|
42 | } |
---|
43 | |
---|
44 | post-destroot { xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
45 | xinstall -m 644 -v -W ${worksrcpath} \ |
---|
46 | BUGS ChangeLog COPYING FAQ FEATURES NEWS \ |
---|
47 | README README.debug-levels README.modules \ |
---|
48 | MIRRORS THANKS TODO \ |
---|
49 | ${destroot}${prefix}/share/doc/${name} |
---|
50 | } |
---|
51 | |
---|
52 | variant ssl conflicts tls { |
---|
53 | configure.args-append --with-openssl --without-gnutls |
---|
54 | configure.args-delete --without-openssl --with-gnutls |
---|
55 | depends_lib-append port:openssl |
---|
56 | } |
---|
57 | |
---|
58 | variant tls conflicts ssl { |
---|
59 | configure.args-append --without-openssl --with-gnutls |
---|
60 | configure.args-delete --with-openssl --without-gnutls |
---|
61 | depends_lib-append port:gnutls |
---|
62 | } |
---|
63 | |
---|
64 | variant nls { |
---|
65 | patchfiles patch-po-Makefile.in.in |
---|
66 | configure.args-append --enable-nls |
---|
67 | configure.args-delete --disable-nls |
---|
68 | depends_lib-append port:gettext |
---|
69 | } |
---|