config BR2_PACKAGE_TTYD
	bool "ttyd"
	depends on !BR2_STATIC_LIBS # libuv, libwebsockets
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv, json-c
	depends on BR2_USE_MMU # libuv
	select BR2_PACKAGE_JSON_C
	select BR2_PACKAGE_LIBUV
	select BR2_PACKAGE_LIBWEBSOCKETS
	select BR2_PACKAGE_OPENSSL
	select BR2_PACKAGE_ZLIB
	help
	  ttyd is a simple command-line tool for sharing terminal
	  over the web.

	  https://github.com/tsl0922/ttyd

comment "ttyd needs a toolchain w/ NPTL, dynamic library"
	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
