# -*- 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 85597 2011-10-15 00:56:45Z dports@macports.org $

PortSystem          1.0

name                xml-security-c
version             1.6.1
revision            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  02c2e21a8ed2b3eab56b2b0635bc6513116c32b2 \
                    sha256  73931a55d6925a82416ea48f8d6f1b8ed591368e1dfc30574fe43904b7c62fcd

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+)+)\[^r\]
