# -*- 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.2
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/

platforms           darwin
depends_build       port:pkgconfig
depends_lib         port:xercesc3 path:lib/libssl.dylib:openssl

master_sites        apache:santuario/c-library/
use_bzip2           yes

checksums           rmd160  20b7886ba4e120e1d2280cfad6e04c1c3a9faaaf \
                    sha256  39e963ab4da477b7bda058f06db37228664c68fe68902d86e334614dd06e046b

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

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}