blob: 5074274c2133b52f5e5d6b93c10f018edf139680 (
plain) (
blame)
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
49
50
51
52
53
54
55
56
57
|
. "$GRIMOIRE/FUNCTIONS" &&
depends -sub CXX gcc &&
optional_depends perl \
"--enable-perl" \
"--disable-perl" \
"to use Perl" &&
if spell_ok python3; then
local PYTHON3_BRANCH=$(installed_version python3 | cut -d. -f1,2)
else
local PYTHON3_BRANCH=$(codex_set_current_spell_by_name python3; echo $VERSION | cut -d. -f1,2)
fi &&
optional_depends python3 \
"--enable-python=python-$PYTHON3_BRANCH" \
"--disable-python" \
"to use Python" &&
if is_depends_enabled $SPELL perl || is_depends_enabled $SPELL python3; then
optional_depends swig \
"--enable-swig" \
"--disable-swig" \
"for automatic generation of source files needed for modperl/modpython" &&
if is_depends_enabled $SPELL swig; then
if is_depends_enabled $SPELL perl; then
depends -sub PERL swig
fi &&
if is_depends_enabled $SPELL python3; then
depends -sub PYTHON3 swig
fi &&
if spell_ok swig && is_version_less $(installed_version swig) 2.0.4; then
force_depends swig
fi
fi
else
list_add ZNC_OPTS "--disable-swig"
fi &&
optional_depends tcl \
"--enable-tcl" \
"--disable-tcl" \
"to use TCL" &&
optional_depends LIBSASL \
"--enable-cyrus" \
"--disable-cyrus" \
"for SASL support via cyrus" &&
optional_depends openssl \
"--enable-openssl" \
"--disable-openssl" \
"to use OpenSSL"
|