2014-04-04 20:22:53 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# znc
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-09-28 12:41:05 +02:00
|
|
|
ZNC_VERSION = 1.7.5
|
2018-04-26 20:35:34 +02:00
|
|
|
ZNC_SITE = http://znc.in/releases/archive
|
2014-04-04 20:22:53 +02:00
|
|
|
ZNC_LICENSE = Apache-2.0
|
|
|
|
ZNC_LICENSE_FILES = LICENSE
|
2015-08-07 15:37:30 +02:00
|
|
|
ZNC_DEPENDENCIES = host-pkgconf
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS = -DWANT_CYRUS=OFF -DWANT_I18N=OFF -DWANT_PERL=OFF
|
2014-04-04 20:22:53 +02:00
|
|
|
|
2019-10-02 19:51:20 +02:00
|
|
|
# Before CMake 3.10, passing THREADS_PTHREAD_ARG=OFF was needed to
|
|
|
|
# disable a try_run() call in the FindThreads tests, which caused a
|
|
|
|
# build failure when cross-compiling.
|
|
|
|
ZNC_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
|
|
|
|
|
2014-04-04 20:22:53 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
|
|
|
ZNC_DEPENDENCIES += icu
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS += -DWANT_ICU=ON
|
2014-04-04 20:22:53 +02:00
|
|
|
else
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS += -DWANT_ICU=OFF
|
2014-04-04 20:22:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
ZNC_DEPENDENCIES += openssl
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS += -DWANT_OPENSSL=ON
|
2014-04-04 20:22:53 +02:00
|
|
|
else
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS += -DWANT_OPENSSL=OFF
|
2014-04-04 20:22:53 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
ZNC_DEPENDENCIES += zlib
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS += -DWANT_ZLIB=ON
|
2014-04-04 20:22:53 +02:00
|
|
|
else
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS += -DWANT_ZLIB=OFF
|
2014-04-04 20:22:53 +02:00
|
|
|
endif
|
|
|
|
|
2018-05-09 19:25:53 +02:00
|
|
|
# python support depends on icu
|
|
|
|
ifeq ($(BR2_PACKAGE_ICU)$(BR2_PACKAGE_PYTHON3),yy)
|
2014-04-04 20:22:53 +02:00
|
|
|
ZNC_DEPENDENCIES += python3 host-swig
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS += \
|
|
|
|
-DWANT_PYTHON=ON \
|
|
|
|
-DWANT_PYTHON_VERSION=python3
|
2014-04-04 20:22:53 +02:00
|
|
|
else
|
2019-09-28 12:41:06 +02:00
|
|
|
ZNC_CONF_OPTS += -DWANT_PYTHON=OFF
|
2014-04-04 20:22:53 +02:00
|
|
|
endif
|
|
|
|
|
2019-09-28 12:41:06 +02:00
|
|
|
$(eval $(cmake-package))
|