# -*- 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
maintainers {michaelld @michaelld} openmaintainer
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 \
checksums rmd160 bc194fcc0d7fdb51ad24c53921137614afc3aa11 \
sha256 2cbbea55a5d6895c9f0116a9a9ce3afb86df383cd05c9d6c1a4238e5e5c8f51d
set branch [join [lrange [split ${version} .] 0 1] .]
homepage http://log4cpp.sourceforge.net/
master_sites sourceforge:project/log4cpp/log4cpp-${branch}.x%20%28new%29/log4cpp-${branch}
move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
patchfiles patch-appenderMapStorageInitializer.diff \
autoconf.cmd ${worksrcpath}/autogen.sh
# Setting autoconf.cmd to a non-default value after setting 'use_autoconf yes'
# removes the automatic dependencies, so re-add them.
depends_build port:autoconf \
# docs do not honor DESTDIR; keep them disabled for now
configure.args --disable-doxygen \
# remove top-level include path, such that internal headers are used
# instead of any already-installed ones.
configure.cppflags-delete -I${prefix}/include
# remove top-level library path, such that internal libraries are used
# instead of any already-installed ones.
configure.ldflags-delete -L${prefix}/lib
# patch dynamically created libtool to remove "-undefine dynamic_lookup"
reinplace "s@^allow_undefined_flag=.*@allow_undefined_flag=@g" \
livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}