config BR2_PACKAGE_MJPG_STREAMER
	bool "mjpg-streamer"
	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 # V4L2_EVENT_SOURCE_CHANGE
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU # fork()
	depends on !BR2_STATIC_LIBS # plugins need dlopen()
	select BR2_PACKAGE_JPEG
	help
	  MJPG-streamer takes JPGs from Linux-UVC compatible webcams,
	  filesystem or other input plugins and streams them as
	  M-JPEG via HTTP to webbrowsers, VLC and other software.

	  https://github.com/jacksonliam/mjpg-streamer

comment "mjpg-streamer needs a toolchain w/ threads, headers >= 3.16, dynamic library"
	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16 || BR2_STATIC_LIBS
