# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 80209 2011-07-07 01:20:21Z snc@macports.org $

PortSystem          1.0

name                xml-security-c
version             1.6.1
revision            1
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           sha1    239304659752eb214f3516b6c457c99f0e6467c7 \
                    rmd160  02c2e21a8ed2b3eab56b2b0635bc6513116c32b2

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\]
