config BR2_PACKAGE_CLAMAV
	bool "clamav"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU # fork()
	depends on !BR2_STATIC_LIBS # dlopen
	depends on BR2_USE_WCHAR
	select BR2_PACKAGE_BZIP2
	select BR2_PACKAGE_HOST_RUSTC
	select BR2_PACKAGE_JSON_C
	select BR2_PACKAGE_LIBCURL
	select BR2_PACKAGE_LIBMSPACK
	select BR2_PACKAGE_LIBXML2
	select BR2_PACKAGE_MUSL_FTS if !BR2_TOOLCHAIN_USES_GLIBC
	select BR2_PACKAGE_OPENSSL
	select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
	select BR2_PACKAGE_PCRE2
	select BR2_PACKAGE_ZLIB
	select BR2_PACKAGE_ZLIB_FORCE_LIBZLIB
	help
	  ClamAV is an open source antivirus engine for detecting
	  trojans, viruses, malware & other malicious threats.

	  http://www.clamav.net

comment "clamav needs a toolchain w/ C++, dynamic library, threads, wchar"
	depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS \
		|| !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
	depends on BR2_USE_MMU
