2019-10-11 14:40:43 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libnetconf2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-07-04 07:56:51 +02:00
|
|
|
LIBNETCONF2_VERSION = 2.1.11
|
2019-10-24 20:10:12 +02:00
|
|
|
LIBNETCONF2_SITE = $(call github,CESNET,libnetconf2,v$(LIBNETCONF2_VERSION))
|
2019-10-11 14:40:43 +02:00
|
|
|
LIBNETCONF2_INSTALL_STAGING = YES
|
|
|
|
LIBNETCONF2_LICENSE = BSD-3-Clause
|
|
|
|
LIBNETCONF2_LICENSE_FILES = LICENSE
|
|
|
|
LIBNETCONF2_DEPENDENCIES = libyang
|
|
|
|
HOST_LIBNETCONF2_DEPENDENCIES = host-libyang
|
|
|
|
|
|
|
|
LIBNETCONF2_CONF_OPTS = \
|
2021-12-20 16:55:46 +01:00
|
|
|
-DENABLE_TESTS=OFF \
|
2019-10-11 14:40:43 +02:00
|
|
|
-DENABLE_VALGRIND_TESTS=OFF
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH_SERVER), y)
|
|
|
|
LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=ON
|
|
|
|
LIBNETCONF2_DEPENDENCIES += libssh
|
|
|
|
else
|
|
|
|
LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=OFF
|
|
|
|
endif
|
|
|
|
|
2022-06-11 16:57:15 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBOPENSSL), y)
|
2019-10-11 14:40:43 +02:00
|
|
|
LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=ON
|
|
|
|
LIBNETCONF2_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
HOST_LIBNETCONF2_CONF_OPTS = \
|
2021-12-20 16:55:46 +01:00
|
|
|
-DENABLE_TESTS=OFF \
|
2019-10-11 14:40:43 +02:00
|
|
|
-DENABLE_VALGRIND_TESTS=OFF \
|
|
|
|
-DENABLE_SSH=OFF \
|
|
|
|
-DENABLE_TLS=OFF
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|
|
|
|
$(eval $(host-cmake-package))
|