source: trunk/dports/net/curl/Portfile @ 55500

Last change on this file since 55500 was 55500, checked in by ryandesign@…, 8 years ago

curl, curl-ca-bundle: update to 7.19.6

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.2 KB
Line 
1# $Id: Portfile 55500 2009-08-12 09:30:44Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               muniversal 1.0
5
6name                    curl
7# keep the version in sync with the curl-ca-bundle port
8version                 7.19.6
9categories              net www
10maintainers             ryandesign
11homepage                http://curl.haxx.se/
12platforms               darwin freebsd
13use_bzip2               yes
14use_parallel_build      yes
15
16description \
17    Tool for transferring files with URL syntax
18
19long_description \
20    curl is a client to get documents/files from servers, using any of \
21    the supported protocols. The command is designed to work without \
22    user interaction or any kind of interactivity.
23
24# keep the master_sites in sync with the curl-ca-bundle port
25master_sites \
26    http://curl.haxx.se/download/ \
27    ftp://ftp.sunet.se/pub/www/utilities/curl/ \
28    http://curl.sourceforge.net/download/ \
29    http://cool.haxx.se/curl/ \
30    http://www.execve.net/curl/
31
32checksums \
33    md5     8402c1f654c51ad7287aad57c3aa79be \
34    sha1    b7cb98c7a6577de7073d0b0c23eecdb8ed993e8e \
35    rmd160  7627d78ec681a513972be0cb5473b26805f44d83 \
36
37configure.args \
38    --disable-ipv6 \
39    --without-libidn \
40    --without-libssh2 \
41    --without-ssl \
42    --disable-ldap \
43    --with-zlib=${prefix}
44
45configure.env \
46    PKG_CONFIG_PATH=${prefix}
47
48depends_build \
49    port:pkgconfig
50
51depends_lib \
52    port:zlib
53
54test.run                yes
55test.target             test-full
56
57post-build {
58    if {[variant_isset universal]} {
59        foreach arch ${universal_archs} {
60            reinplace "s|[muniversal_get_arch_flag ${arch}]||" \
61                ${worksrcpath}-${arch}/curl-config \
62                ${worksrcpath}-${arch}/libcurl.pc
63        }
64    }
65}
66
67set docdir ${prefix}/share/doc/${name}-${version}
68
69post-destroot {
70    xinstall -d ${destroot}${docdir}
71    xinstall -m 0644 -W ${worksrcpath} \
72        CHANGES \
73        COPYING \
74        README \
75        RELEASE-NOTES \
76        ${destroot}${docdir}
77    xinstall -m 0644 -W ${worksrcpath}/docs \
78        BUGS \
79        CONTRIBUTE \
80        FAQ \
81        FEATURES \
82        HISTORY \
83        INTERNALS \
84        KNOWN_BUGS \
85        MANUAL \
86        RESOURCES \
87        THANKS \
88        TODO \
89        VERSIONS \
90        ${destroot}${docdir}
91}
92
93variant ssl {
94    depends_lib-append      port:openssl \
95                            port:curl-ca-bundle
96    configure.args-append   --with-ca-bundle=${prefix}/share/curl/curl-ca-bundle.crt
97    configure.args-delete   --without-ssl
98}
99
100variant ipv6 {
101    configure.args-delete   --disable-ipv6
102    configure.args-append   --enable-ipv6
103}
104
105variant ares description {Add support for resolving names asynchronously} {
106    depends_lib-append      lib:libcares:c-ares
107    configure.args-append   --enable-ares=${prefix}
108}
109
110variant idn description {Add support for internationalized domain names} {
111    depends_lib-append      port:libidn
112    configure.args-delete   --without-libidn
113}
114
115variant spnego description {Enable SPNEGO authentication support} {
116    # kind of broken?
117    depends_lib-append      port:fbopenssl
118    configure.args-append   --with-spnego=${prefix}
119}
120
121variant gnutls conflicts ssl {
122    depends_lib-append      port:gnutls
123    configure.args-append   --with-gnutls
124}
125
126variant gss {
127    configure.args-append   --with-gssapi
128}
129
130variant openldap {
131    depends_lib-append      port:openldap
132    configure.args-delete   --disable-ldap
133}
134
135variant sftp_scp description {Add SFTP/SCP support via libssh2} {
136    depends_lib-append      port:libssh2
137    configure.args-delete   --without-libssh2
138}
139
140variant doc {
141    post-destroot {
142        xinstall -d ${destroot}${docdir}/html/libcurl
143        xinstall -m 0644 -W ${worksrcpath}/docs TheArtOfHttpScripting ${destroot}${docdir}/html
144        eval xinstall -m 0644 [glob ${worksrcpath}/docs/*.html] ${destroot}${docdir}/html
145        eval xinstall -m 0644 [glob ${worksrcpath}/docs/libcurl/*.html] \
146            ${destroot}${docdir}/html/libcurl
147
148        xinstall -d ${destroot}${docdir}/pdf/libcurl
149        xinstall -m 0644 -W ${worksrcpath}/docs curl-config.pdf curl.pdf ${destroot}${docdir}/pdf
150        eval xinstall -m 0644 [glob ${worksrcpath}/docs/libcurl/*.pdf] ${destroot}${docdir}/pdf/libcurl
151    }
152}
153
154livecheck.check             freshmeat
155livecheck.regex             (?i)<title>curl and libcurl (.*)</title>
Note: See TracBrowser for help on using the repository browser.