config BR2_PACKAGE_LIBVPL_ARCH_SUPPORTS
	bool
	default y if BR2_ARCH_IS_64 && !BR2_mips64 && !BR2_mips64el
	default y if BR2_arm

config BR2_PACKAGE_LIBVPL
	bool "libvpl"
	depends on BR2_PACKAGE_LIBVPL_ARCH_SUPPORTS
	depends on BR2_INSTALL_LIBSTDCPP
	depends on !BR2_STATIC_LIBS # dlfcn.h
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
	depends on BR2_TOOLCHAIN_HAS_THREADS
	help
	  oneAPI Video Processing Library (oneVPL) dispatcher,
	  tools, and examples

	  https://github.com/oneapi-src/oneVPL

comment "libvpl needs a toolchain w/ dynamic library, gcc >= 7, C++, threads"
	depends on BR2_PACKAGE_LIBVPL_ARCH_SUPPORTS
	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
		!BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
