kumquat-buildroot/package/sysrepo/sysrepo.mk
Heiko Thiery 1b21d7e4fb package/sysrepo: bump version to 2.0.53
The license changed from Apache-2.0 to BSD-3-Clause

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-12-04 22:57:12 +01:00

38 lines
1.1 KiB
Makefile

################################################################################
#
# sysrepo
#
################################################################################
SYSREPO_VERSION = 2.0.53
SYSREPO_SITE = $(call github,sysrepo,sysrepo,v$(SYSREPO_VERSION))
SYSREPO_INSTALL_STAGING = YES
SYSREPO_LICENSE = BSD-3-Clause
SYSREPO_LICENSE_FILES = LICENSE
SYSREPO_DEPENDENCIES = libyang pcre2 host-sysrepo
HOST_SYSREPO_DEPENDENCIES = host-libyang host-pcre2
SYSREPO_CONF_OPTS = \
-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_SYSREPO_EXAMPLES),ON,OFF) \
-DENABLE_TESTS=OFF \
-DENABLE_VALGRIND_TESTS=OFF \
-DREPO_PATH=/etc/sysrepo
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
SYSREPO_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
endif
define SYSREPO_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/sysrepo/S51sysrepo-plugind \
$(TARGET_DIR)/etc/init.d/S51sysrepo-plugind
endef
HOST_SYSREPO_CONF_OPTS = \
-DBUILD_EXAMPLES=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_VALGRIND_TESTS=OFF \
-DREPO_PATH=$(TARGET_DIR)/etc/sysrepo
$(eval $(cmake-package))
$(eval $(host-cmake-package))