source: trunk/dports/devel/gnutls/Portfile @ 120566

Last change on this file since 120566 was 120566, checked in by cal@…, 5 years ago

gnutls: add new maintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
2# $Id: Portfile 120566 2014-06-01 16:54:36Z cal@macports.org $
3
4PortSystem 1.0
5PortGroup  muniversal 1.0
6
7name            gnutls
8version         3.3.3
9set branch      [join [lrange [split ${version} .] 0 1] .]
10categories      devel security
11# yes, some of the libs are GPL only
12license         LGPL-2.1+ GPL-3+
13maintainers     gmail.com:mschamschula openmaintainer
14description     GNU Transport Layer Security Library
15homepage        http://www.gnutls.org/
16platforms       darwin
17
18long_description \
19    GnuTLS is a portable ANSI C based library which implements the TLS 1.2, \
20    TLS 1.1, TLS 1.0, SSL 3.0, and Datagram TLS protocols. The library does \
21    not include any patented algorithms \
22    and is available under the GNU Lesser General Public License (LGPL).
23
24master_sites    ftp://ftp.gnutls.org/gcrypt/gnutls/v${branch}/
25
26checksums       md5     e225247ec82513354a6bdc3be6246377 \
27                rmd160  cebd6a17fe9b7ebc8f0f9abb6218c195456ee468 \
28                sha256  8cd8cc7d4dcd4f73e85a6ebfa9463860b671d65f23d57354a6dfe86b7e83a036
29
30use_xz          yes
31
32depends_build   port:pkgconfig \
33                port:gettext
34
35depends_lib     port:gmp \
36                port:libidn \
37                port:libtasn1 \
38                port:p11-kit \
39                port:nettle
40
41post-patch {
42    # Remove comments which confuse at least Leopard's assembler.
43    eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s]
44}
45
46use_autoreconf  yes
47autoreconf.args -fvi
48
49configure.args  --disable-guile \
50                --disable-silent-rules \
51                --with-p11-kit           
52
53if {[variant_isset universal]} {
54    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
55    set merger_host(i386) i686-apple-${os.platform}${os.major}
56    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
57    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
58} elseif {${build_arch} eq "i386"} {
59    configure.args-append \
60        --host=i686-apple-${os.platform}${os.major} \
61        --build=i686-apple-${os.platform}${os.major}
62} elseif {${build_arch} eq "x86_64"} {
63    configure.args-append \
64        --host=${build_arch}-apple-${os.platform}${os.major} \
65        --build=${build_arch}-apple-${os.platform}${os.major}
66}
67
68test.run        yes
69test.target     check
70
71post-destroot {
72    move ${destroot}${prefix}/bin/certtool ${destroot}${prefix}/bin/gnutls-certtool
73}
74
75platform darwin 8 {
76    depends_build-append   port:texinfo
77}
78
79livecheck.type  regex
80livecheck.url   ${master_sites}
81livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.