Ticket #11616: Portfile

File Portfile, 2.6 KB (added by yunzheng.hu@…, 17 years ago)

Portfile for 3.5.9 (the complete file)

Line 
1# $Id: Portfile 20872 2006-12-06 15:25:12Z yeled@macports.org $
2
3PortSystem 1.0
4name                lftp
5version             3.5.9
6categories          net
7maintainers         yeled@macports.org
8description         Sophisticated file transfer program
9long_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.
17homepage            http://lftp.yar.ru/
18platforms           darwin
19
20depends_lib         port:expat port:libiconv port:ncurses
21
22master_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}/
28use_bzip2           yes
29checksums           md5 242aa0b01be79942bb9bcdd2a4b079ba \
30                    sha1 ce4f7abb5a74e90218bb2ee94170ace747025298
31
32default_variants    +ssl
33
34configure.env   CPPFLAGS="-I${prefix}/include" \
35                LDFLAGS="-L${prefix}/lib"
36
37configure.args  --without-openssl --without-gnutls --disable-nls
38
39pre-configure {
40        # look for ncurses first
41        reinplace "s|curses ncurses|ncurses curses|g" ${worksrcpath}/configure
42}
43
44post-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
52variant 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
58variant 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
64variant 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}