![Fabrice Fontaine](/assets/img/avatar_default.png)
In order for the libnetconf2 version to match what is given by release-monitoring.org, the 'v' prefix should be encoded in LIBNETCONF2_SITE and not LIBNETCONF2_VERSION. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
41 lines
1 KiB
Makefile
41 lines
1 KiB
Makefile
################################################################################
|
|
#
|
|
# libnetconf2
|
|
#
|
|
################################################################################
|
|
|
|
LIBNETCONF2_VERSION = 0.12-r2
|
|
LIBNETCONF2_SITE = $(call github,CESNET,libnetconf2,v$(LIBNETCONF2_VERSION))
|
|
LIBNETCONF2_INSTALL_STAGING = YES
|
|
LIBNETCONF2_LICENSE = BSD-3-Clause
|
|
LIBNETCONF2_LICENSE_FILES = LICENSE
|
|
LIBNETCONF2_DEPENDENCIES = libyang
|
|
HOST_LIBNETCONF2_DEPENDENCIES = host-libyang
|
|
|
|
LIBNETCONF2_CONF_OPTS = \
|
|
-DENABLE_BUILD_TESTS=OFF \
|
|
-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
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL), y)
|
|
LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=ON
|
|
LIBNETCONF2_DEPENDENCIES += openssl
|
|
else
|
|
LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=OFF
|
|
endif
|
|
|
|
HOST_LIBNETCONF2_CONF_OPTS = \
|
|
-DENABLE_BUILD_TESTS=OFF \
|
|
-DENABLE_VALGRIND_TESTS=OFF \
|
|
-DENABLE_SSH=OFF \
|
|
-DENABLE_TLS=OFF
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|