# -*- 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 63567 2010-02-09 02:55:35Z scantor@macports.org $

PortSystem          1.0

name                xml-security-c
version             1.5.1
revision            2
categories          security xml textproc shibboleth
#license             Apachev2
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        http://santuario.apache.org/dist/c-library
checksums           sha1 e51d3dca7f32cfcc2090d4d20cf8a1d032d95d79

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

variant 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       ${master_sites}
livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)
