# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                xml-security-c
version             2.0.4
revision            1
categories          security xml textproc shibboleth
license             Apache-2
maintainers         {snc @nerdling} {scantor @scantor}
description         XML Signing/Encryption for C++
long_description    The C++ library is an implementation of the XML Digital \
                    Signature specification. It is designed to be easily \
                    ported to new platforms, and has been tested on Solaris, \
                    Linux, FreeBSD, NetBSD and Windows.
homepage            http://santuario.apache.org/

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         path:lib/libssl.dylib:openssl \
                    port:xercesc3

master_sites        apache:santuario/c-library/
use_bzip2           yes

checksums           rmd160  eaa83db36dff1f6655621294c4db89a3648f18c7 \
                    sha256  c83ed1b7c0189cce27a49caa81986938e76807bf35597e6056259af30726beca \
                    size    676159

configure.args      --without-xalan \
                    --with-openssl \
                    --without-nss

# error: cstdint: No such file or directory
compiler.cxx_standard   2011

if {[variant_isset universal]} {
    depends_lib-append  port:libtool
}

post-configure {
    if {[variant_isset universal]} {
        file copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
    }
}

livecheck.type      regex
livecheck.url       https://archive.apache.org/dist/santuario/c-library/
livecheck.regex     ${name}-(\\d+(\\.\\d+)+)${extract.suffix}