Ignore:
Timestamp:
Jul 14, 2014, 10:36:21 AM (5 years ago)
Author:
ryandesign@…
Message:

gnutls: install header files that work with c89 too (#44323)

Location:
trunk/dports/devel/gnutls
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/gnutls/Portfile

    r122069 r122082  
    77name            gnutls
    88version         3.3.5
     9revision        1
    910set branch      [join [lrange [split ${version} .] 0 1] .]
    1011categories      devel security
     
    4041                path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
    4142
     43pre-patch {
     44    # Save old mtimes.
     45    global mtime_abstract mtime_gnutls mtime_ocsp mtime_pkcs11 mtime_x509
     46    set mtime_abstract [file mtime ${worksrcpath}/lib/includes/gnutls/abstract.h]
     47    set mtime_gnutls [file mtime ${worksrcpath}/lib/includes/gnutls/gnutls.h.in]
     48    set mtime_ocsp [file mtime ${worksrcpath}/lib/includes/gnutls/ocsp.h]
     49    set mtime_pkcs11 [file mtime ${worksrcpath}/lib/includes/gnutls/pkcs11.h]
     50    set mtime_x509 [file mtime ${worksrcpath}/lib/includes/gnutls/x509.h]
     51}
     52
     53patchfiles      patch-c89.diff
     54
    4255post-patch {
     56    # Restore old mtimes so that it doesn't try to regenerate documentation, which fails on OS X.
     57    global mtime_abstract mtime_gnutls mtime_ocsp mtime_pkcs11 mtime_x509
     58    file mtime ${worksrcpath}/lib/includes/gnutls/abstract.h ${mtime_abstract}
     59    file mtime ${worksrcpath}/lib/includes/gnutls/gnutls.h.in ${mtime_gnutls}
     60    file mtime ${worksrcpath}/lib/includes/gnutls/ocsp.h ${mtime_ocsp}
     61    file mtime ${worksrcpath}/lib/includes/gnutls/pkcs11.h ${mtime_pkcs11}
     62    file mtime ${worksrcpath}/lib/includes/gnutls/x509.h ${mtime_x509}
     63
    4364    # Remove comments which confuse at least Leopard's assembler.
    4465    eval reinplace {/^#/d} [glob ${worksrcpath}/lib/accelerated/x86/macosx/*.s]
Note: See TracChangeset for help on using the changeset viewer.