mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 08:27:43 +00:00
package/znc: switch to cmake
Upstream deprecated autoconf and asks to use cmake:
71f35b003d
Add options to explicitly disable cyrus and i18n support.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
241f812f31
commit
efc57bafb8
@ -9,35 +9,37 @@ ZNC_SITE = http://znc.in/releases/archive
|
|||||||
ZNC_LICENSE = Apache-2.0
|
ZNC_LICENSE = Apache-2.0
|
||||||
ZNC_LICENSE_FILES = LICENSE
|
ZNC_LICENSE_FILES = LICENSE
|
||||||
ZNC_DEPENDENCIES = host-pkgconf
|
ZNC_DEPENDENCIES = host-pkgconf
|
||||||
ZNC_CONF_OPTS = --disable-perl
|
ZNC_CONF_OPTS = -DWANT_CYRUS=OFF -DWANT_I18N=OFF -DWANT_PERL=OFF
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_ICU),y)
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
||||||
ZNC_DEPENDENCIES += icu
|
ZNC_DEPENDENCIES += icu
|
||||||
ZNC_CONF_OPTS += --enable-charset
|
ZNC_CONF_OPTS += -DWANT_ICU=ON
|
||||||
else
|
else
|
||||||
ZNC_CONF_OPTS += --disable-charset
|
ZNC_CONF_OPTS += -DWANT_ICU=OFF
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
ZNC_DEPENDENCIES += openssl
|
ZNC_DEPENDENCIES += openssl
|
||||||
ZNC_CONF_OPTS += --enable-openssl
|
ZNC_CONF_OPTS += -DWANT_OPENSSL=ON
|
||||||
else
|
else
|
||||||
ZNC_CONF_OPTS += --disable-openssl
|
ZNC_CONF_OPTS += -DWANT_OPENSSL=OFF
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||||
ZNC_DEPENDENCIES += zlib
|
ZNC_DEPENDENCIES += zlib
|
||||||
ZNC_CONF_OPTS += --enable-zlib
|
ZNC_CONF_OPTS += -DWANT_ZLIB=ON
|
||||||
else
|
else
|
||||||
ZNC_CONF_OPTS += --disable-zlib
|
ZNC_CONF_OPTS += -DWANT_ZLIB=OFF
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# python support depends on icu
|
# python support depends on icu
|
||||||
ifeq ($(BR2_PACKAGE_ICU)$(BR2_PACKAGE_PYTHON3),yy)
|
ifeq ($(BR2_PACKAGE_ICU)$(BR2_PACKAGE_PYTHON3),yy)
|
||||||
ZNC_DEPENDENCIES += python3 host-swig
|
ZNC_DEPENDENCIES += python3 host-swig
|
||||||
ZNC_CONF_OPTS += --enable-python=python3
|
ZNC_CONF_OPTS += \
|
||||||
|
-DWANT_PYTHON=ON \
|
||||||
|
-DWANT_PYTHON_VERSION=python3
|
||||||
else
|
else
|
||||||
ZNC_CONF_OPTS += --disable-python
|
ZNC_CONF_OPTS += -DWANT_PYTHON=OFF
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(autotools-package))
|
$(eval $(cmake-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user