Ticket #42728: patch-gnutls-3.3.3-rev1.diff

File patch-gnutls-3.3.3-rev1.diff, 1.9 KB (added by dbevans (David B. Evans), 10 years ago)

Revised Portfile based on comments plus a few more fixes

  • Portfile

     
    66
    77name            gnutls
    88version         3.3.3
     9revision        1
    910set branch      [join [lrange [split ${version} .] 0 1] .]
    1011categories      devel security
    1112# yes, some of the libs are GPL only
     
    4344    eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s]
    4445}
    4546
     47# use autoreconf to update glibtool to correctly handle -std
     48
    4649use_autoreconf  yes
    4750autoreconf.args -fvi
    4851
    4952configure.args  --disable-guile \
    5053                --disable-silent-rules \
    51                 --with-p11-kit           
     54                --disable-libdane \
     55                --enable-local-libopts \
     56                --with-p11-kit \
     57                --with-system-priority-file="${prefix}/etc/gnutls/default-priorities" \
     58                --with-unbound-root-key-file="${prefix}/etc/unbound/root.key"
    5259
    53 if {[variant_isset universal]} {
     60variant dane description {Build libdane using unbound libraries} {
     61    depends_lib-append      port:unbound
     62    configure.args-delete   --disable-libdane
     63}
     64
     65# unbound does not currently install/update ${prefix}/etc/unbound/root.key
     66# so user may have to do it manually for DANE support (#43881)
     67
     68if {[variant_isset dane] && ![file exists ${prefix}/etc/unbound/root.key]} {
     69    notes "
     70***
     71*** WARNING:
     72***
     73*** The DNSSEC root key file in ${prefix}/etc/unbound/root.key was not found.
     74*** This file is needed for the verification of DNSSEC responses.
     75*** Use the command: sudo unbound-anchor -a \"${prefix}/etc/unbound/root.key\"
     76*** to generate or update it.
     77***
     78"
     79}
     80
     81if {[variant_isset universal]} {
    5482    set merger_host(x86_64) x86_64-apple-${os.platform}${os.major}
    5583    set merger_host(i386) i686-apple-${os.platform}${os.major}
    5684    set merger_configure_args(x86_64) --build=x86_64-apple-${os.platform}${os.major}