1 ################################################################################
5 ################################################################################
7 ZNC_VERSION = b396cafdb249544164ed02942a5babba59e519a3
8 ZNC_SITE = $(call github,znc,znc,$(ZNC_VERSION))
9 ZNC_LICENSE = Apache-2.0
10 ZNC_LICENSE_FILES = LICENSE
11 ZNC_DEPENDENCIES = host-pkgconf host-autoconf host-automake
12 ZNC_CONF_OPTS = --disable-perl
14 # The standard <pkg>_AUTORECONF = YES invocation doesn't work for this
15 # package, because it does not use automake in a normal way.
16 define ZNC_RUN_AUTOGEN
17 cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
19 ZNC_PRE_CONFIGURE_HOOKS += ZNC_RUN_AUTOGEN
21 ifeq ($(BR2_PACKAGE_ICU),y)
22 ZNC_DEPENDENCIES += icu
23 ZNC_CONF_OPTS += --enable-icu
25 ZNC_CONF_OPTS += --disable-icu
28 ifeq ($(BR2_PACKAGE_OPENSSL),y)
29 ZNC_DEPENDENCIES += openssl
30 ZNC_CONF_OPTS += --enable-openssl
32 ZNC_CONF_OPTS += --disable-openssl
35 ifeq ($(BR2_PACKAGE_ZLIB),y)
36 ZNC_DEPENDENCIES += zlib
37 ZNC_CONF_OPTS += --enable-zlib
39 ZNC_CONF_OPTS += --disable-zlib
42 ifeq ($(BR2_PACKAGE_PYTHON3),y)
43 ZNC_DEPENDENCIES += python3 host-swig
44 ZNC_CONF_OPTS += --enable-python=python3
46 ZNC_CONF_OPTS += --disable-python
49 $(eval $(autotools-package))