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

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

gnutls: maintainer update to version 3.3.4, addresses build issues in #42728.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 120701 2014-06-05 22:48:20Z devans@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            gnutls
8version         3.3.4
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       rmd160  9e61797428035cdaf6e3ac86103ead5cf7f02de7 \
27                sha256  04a53b2bbb936b02cdc62f68144f9706e256cc85cc530b81266a24d80b824357
28
29use_xz          yes
30
31depends_build   port:pkgconfig \
32                port:gettext
33
34depends_lib     port:gmp \
35                port:libidn \
36                port:libtasn1 \
37                port:p11-kit \
38                port:nettle \
39                port:curl-ca-bundle
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
46# use autoreconf to update glibtool to correctly handle -std
47use_autoreconf  yes
48autoreconf.args -fvi
49
50configure.args  --disable-guile \
51                --disable-silent-rules \
52                --disable-libdane \
53                --enable-local-libopts \
54                --with-p11-kit \
55                --with-system-priority-file="${prefix}/etc/gnutls/default-priorities" \
56                --with-default-trust-store-file="${prefix}/share/curl/curl-ca-bundle.crt"
57
58variant dane description {Build libdane using unbound libraries} {
59    depends_lib-append      port:unbound
60    configure.args-append   --with-unbound-root-key-file="${prefix}/var/run/unbound/root.key"
61    configure.args-delete   --disable-libdane
62}
63
64# as of r120660 (#43881) unbound installs its root key file at ${prefix}/var/run/unbound/root.key
65# the following may be superfluous
66
67if {[variant_isset dane] && ![file exists ${prefix}/var/run/unbound/root.key]} {
68    notes "
69***
70*** WARNING:
71***
72*** The DNSSEC root key file in ${prefix}/etc/unbound/root.key was not found.
73*** This file is needed for the verification of DNSSEC responses.
74*** Use the command: sudo unbound-anchor -a \"${prefix}/var/run/unbound/root.key\"
75*** to generate or update it.
76***
77"
78}
79
80if {[variant_isset universal]} {
81    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
82    set merger_host(i386) i686-apple-${os.platform}${os.major}
83    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}
84    set merger_configure_args(i386) --build=i686-apple-${os.platform}${os.major}
85} elseif {${build_arch} eq "i386"} {
86    configure.args-append \
87        --host=i686-apple-${os.platform}${os.major} \
88        --build=i686-apple-${os.platform}${os.major}
89} elseif {${build_arch} eq "x86_64"} {
90    configure.args-append \
91        --host=${build_arch}-apple-${os.platform}${os.major} \
92        --build=${build_arch}-apple-${os.platform}${os.major}
93}
94
95test.run        yes
96test.target     check
97
98post-destroot {
99    move ${destroot}${prefix}/bin/certtool ${destroot}${prefix}/bin/gnutls-certtool
100}
101
102platform darwin 8 {
103    depends_build-append   port:texinfo
104}
105
106livecheck.type  regex
107livecheck.url   ${master_sites}
108livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.