# -*- 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 90992 2012-03-20 21:08:08Z snc@macports.org $

PortSystem          1.0

name                xmltooling
version             1.4.2
revision        1
categories          security textproc xml shibboleth
license             Apache-2
maintainers         snc scantor
description         XMLTooling library for C++
long_description    Toolkit for security-aware XML processing
homepage            http://www.opensaml.org/

platforms           darwin
depends_lib         port:curl \
                    port:xercesc3 \
                    port:xml-security-c \
                    port:log4shib

master_sites        http://www.shibboleth.net/downloads/c++-opensaml/2.4.2/
checksums           rmd160  84749fc8e26bc8c315a704e1d31e90d3e512ebd1 \
                    sha256  c32c503532cd0f2c64a71f0a7f4e63f660f1205830603b0bcd9225dc3c23445d

configure.args      --disable-static \
                    --with-openssl=${prefix} \
                    --with-curl=${prefix} \
                    --with-xerces=${prefix} \
                    --with-xmlsec=${prefix}

if {${configure.compiler} == "clang"} {
    configure.compiler  llvm-gcc-4.2
}

livecheck.type      regex
livecheck.url       http://www.shibboleth.net/downloads/c++-opensaml/latest/
livecheck.regex     ${name}-(\\d+\\.\\d+(\\.\\d+)?)
