config BR2_PACKAGE_SYSREPO
	bool "sysrepo"
	depends on BR2_USE_MMU
	depends on !BR2_STATIC_LIBS
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" # host-protobuf
	select BR2_PACKAGE_LIBAVL
	select BR2_PACKAGE_LIBEV
	select BR2_PACKAGE_LIBYANG
	select BR2_PACKAGE_PCRE
	select BR2_PACKAGE_PCRE_UCP
	select BR2_PACKAGE_PROTOBUF_C
	help
	  Sysrepo is an YANG-based configuration and operational state
	  data store for Unix/Linux applications.

	  https://github.com/sysrepo

if BR2_PACKAGE_SYSREPO

config BR2_PACKAGE_SYSREPO_EXAMPLES
	bool "enable examples"
	help
	  Enable sysrepo examples.

endif

comment "sysrepo needs a toolchain w/ C++, NPTL, dynamic library, gcc >= 4.8"
	depends on BR2_USE_MMU
	depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \
		|| !BR2_TOOLCHAIN_HAS_THREADS_NPTL
	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
