summaryrefslogtreecommitdiff
path: root/packages/dev-libs/log4cxx/log4cxx.exlib
blob: e569e4a33e423b0d619c0b0d98863535add6bfaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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'
)