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
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # 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, gcc >= 4.9"
	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || BR2_STATIC_LIBS \
		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
