config BR2_PACKAGE_MEDIASTREAMER
	bool "mediastreamer"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on !BR2_STATIC_LIBS
	depends on BR2_TOOLCHAIN_HAS_THREADS # ortp
	depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # ortp
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # C++14
	select BR2_PACKAGE_ALSA_LIB_MIXER if BR2_PACKAGE_ALSA_LIB
	select BR2_PACKAGE_ALSA_LIB_PCM if BR2_PACKAGE_ALSA_LIB
	select BR2_PACKAGE_MBEDTLS
	select BR2_PACKAGE_ORTP
	help
	  Mediastreamer is a powerful and lightweighted streaming
	  engine specialized for voice/video telephony applications.

	  It is the library that is responsible for all the receiving
	  and sending of multimedia streams in linphone, including
	  voice/video capture, encoding and decoding, and rendering.

	  http://www.linphone.org/technical-corner/mediastreamer2

comment "mediastreamer needs a toolchain w/ threads, C++, dynamic library, gcc >= 5"
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_5

comment "mediastreamer needs a toolchain not affected by GCC bug 64735"
	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
