bd3af0a2d2
Drop workaround for cmake < 3.10 (not needed since commit
d4773b610a
)
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# znc
|
|
#
|
|
################################################################################
|
|
|
|
ZNC_VERSION = 1.8.2
|
|
ZNC_SITE = http://znc.in/releases/archive
|
|
ZNC_LICENSE = Apache-2.0
|
|
ZNC_LICENSE_FILES = LICENSE
|
|
ZNC_CPE_ID_VENDOR = znc
|
|
ZNC_DEPENDENCIES = host-pkgconf
|
|
ZNC_CONF_OPTS = -DWANT_CYRUS=OFF -DWANT_I18N=OFF -DWANT_PERL=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
|
ZNC_DEPENDENCIES += icu
|
|
ZNC_CONF_OPTS += -DWANT_ICU=ON
|
|
else
|
|
ZNC_CONF_OPTS += -DWANT_ICU=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
ZNC_DEPENDENCIES += openssl
|
|
ZNC_CONF_OPTS += -DWANT_OPENSSL=ON
|
|
else
|
|
ZNC_CONF_OPTS += -DWANT_OPENSSL=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
ZNC_DEPENDENCIES += zlib
|
|
ZNC_CONF_OPTS += -DWANT_ZLIB=ON
|
|
else
|
|
ZNC_CONF_OPTS += -DWANT_ZLIB=OFF
|
|
endif
|
|
|
|
# python support depends on icu
|
|
ifeq ($(BR2_PACKAGE_ICU)$(BR2_PACKAGE_PYTHON3),yy)
|
|
ZNC_DEPENDENCIES += python3 host-swig
|
|
ZNC_CONF_OPTS += \
|
|
-DWANT_PYTHON=ON \
|
|
-DWANT_PYTHON_VERSION=python3 \
|
|
-DWANT_SWIG=ON
|
|
else
|
|
ZNC_CONF_OPTS += \
|
|
-DWANT_PYTHON=OFF \
|
|
-DWANT_SWIG=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|