# -*- 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 104081 2013-03-15 05:02:18Z ryandesign@macports.org $

PortSystem          1.0

name                log4cpp
version             1.1
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          devel
platforms           darwin
license             LGPL-2.1
maintainers         nomaintainer

description         configurable logging for C++

long_description    Log4cpp is library of C++ classes for flexible logging to \
                    files, syslog, IDSA and other destinations. It is modeled \
                    after the Log4j Java library, staying as close to their \
                    API as is reasonable.

homepage            http://log4cpp.sourceforge.net/
master_sites        sourceforge:project/log4cpp/log4cpp-${branch}.x%20%28new%29/log4cpp-${version}

checksums           sha1    6003105dd11b1fe6f0f88b5bc42c86cccd78d5ae \
                    rmd160  555ba3b8b8f0e38ed6c39d817d0ba0c1b42bee6a \
                    sha256  c25bd1e0abd47a5dee2ab49b84cbce6292fcada90536a26a5fc9999d343768b4

depends_build       port:autoconf \
                    port:automake \
                    port:libtool

worksrcdir          ${name}

post-extract {
    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
}

patchfiles          patch-autogen.sh.diff \
                    patch-autoconf-1.13.diff

use_autoconf        yes
autoconf.cmd        ${worksrcpath}/autogen.sh

# docs do not honor DESTDIR; keep them disabled for now

configure.args      --disable-doxygen \
                    --disable-dot \
                    --disable-html-docs \
                    --disable-latex-docs

livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
