# -*- 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
# $Id: Portfile 107391 2013-06-27 01:27:25Z scantor@macports.org $

PortSystem          1.0

name                xml-security-c
version             1.7.2
categories          security xml textproc shibboleth
license             Apache-2
maintainers         snc 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_lib         port:xercesc3 port:openssl

master_sites        apache:santuario/c-library/

checksums           rmd160  305ade41811df9ea10e5f474a7172400daabc774 \
                    sha256  d576b07bb843eaebfde3be01301db40504ea8e8e477c0ad5f739b07022445452

configure.args      --without-xalan \
                    --with-xerces=${prefix} \
                    --with-openssl=${prefix}

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       http://archive.apache.org/dist/santuario/c-library/
livecheck.regex     ${name}-(\\d+(\\.\\d+)+)${extract.suffix}
