2014-04-04 20:22:53 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# znc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
ZNC_VERSION = b396cafdb249544164ed02942a5babba59e519a3
|
2014-05-05 19:20:33 +02:00
|
|
|
ZNC_SITE = $(call github,znc,znc,$(ZNC_VERSION))
|
2014-04-04 20:22:53 +02:00
|
|
|
ZNC_LICENSE = Apache-2.0
|
|
|
|
ZNC_LICENSE_FILES = LICENSE
|
|
|
|
ZNC_DEPENDENCIES = host-pkgconf host-autoconf host-automake
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS = --disable-perl
|
2014-04-04 20:22:53 +02:00
|
|
|
|
|
|
|
# The standard <pkg>_AUTORECONF = YES invocation doesn't work for this
|
|
|
|
# package, because it does not use automake in a normal way.
|
|
|
|
define ZNC_RUN_AUTOGEN
|
2014-04-15 00:31:06 +02:00
|
|
|
cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
|
2014-04-04 20:22:53 +02:00
|
|
|
endef
|
|
|
|
ZNC_PRE_CONFIGURE_HOOKS += ZNC_RUN_AUTOGEN
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
|
|
|
ZNC_DEPENDENCIES += icu
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS += --enable-icu
|
2014-04-04 20:22:53 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS += --disable-icu
|
2014-04-04 20:22:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
ZNC_DEPENDENCIES += openssl
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS += --enable-openssl
|
2014-04-04 20:22:53 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS += --disable-openssl
|
2014-04-04 20:22:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
ZNC_DEPENDENCIES += zlib
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS += --enable-zlib
|
2014-04-04 20:22:53 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS += --disable-zlib
|
2014-04-04 20:22:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
|
|
ZNC_DEPENDENCIES += python3 host-swig
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS += --enable-python=python3
|
2014-04-04 20:22:53 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
ZNC_CONF_OPTS += --disable-python
|
2014-04-04 20:22:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|