diff options
Diffstat (limited to 'packages/dev-libs/log4cxx/log4cxx.exlib')
-rw-r--r-- | packages/dev-libs/log4cxx/log4cxx.exlib | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/packages/dev-libs/log4cxx/log4cxx.exlib b/packages/dev-libs/log4cxx/log4cxx.exlib new file mode 100644 index 0000000..e569e4a --- /dev/null +++ b/packages/dev-libs/log4cxx/log4cxx.exlib @@ -0,0 +1,48 @@ +# Distributed under the terms of the GNU General Public License v2 +# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru> + + +require github [ user=apache project=logging-log4cxx tag=v$(ever replace_all _) force_git_clone=true ] +#TODO: version 0.10.0 require earlier autotools +require autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ] + +SUMMARY="Library of C++ classes for logging to files, syslog and other destinations" +HOMEPAGE="https://logging.apache.org/log4cxx/latest_stable/index.html" +LICENCES="Apache-2.0" +SLOT="0" + +MYOPTIONS=" + smtp + ( providers: unixodbc iodbc ) [[ number-selected = at-most-one ]] +" + +DEPENDENCIES=" + build+run: + dev-libs/apr:1 + dev-libs/apr-util:1 + smtp? ( net-libs/libesmtp ) + providers:unixodbc? ( dev-db/unixODBC ) + providers:iodbc? ( dev-db/libiodbc ) +" + +if ! ever at_least 0.10.1; then + DEFAULT_SRC_PREPARE_PATCHES=( + "${FILES}/${PN}-0.10.0-missing_includes.patch" + "${FILES}/${PN}-0.10.0-gcc44.patch" + "${FILES}/${PN}-0.10.0-unixODBC.patch" + "${FILES}/${PN}-0.10.0-fix-c++14.patch" + + ) +fi + +DEFAULT_SRC_CONFIGURE_PARAMS=( + --disable-doxygen + --disable-html-docs + --with-charset=utf-8 +) + +DEFAULT_SRC_CONFIGURE_OPTION_WITHS=( + 'smtp SMTP libesmtp' + 'providers:unixodbc ODBC unixODBC' + 'providers:iodbc ODBC iODBC' +) |