config BR2_PACKAGE_SHADOWSOCKS_LIBEV
	bool "shadowsocks-libev"
	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # for libcork
	depends on BR2_TOOLCHAIN_HAS_SYNC_8 || !BR2_ARCH_IS_64 # for libcork
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU # fork()
	select BR2_PACKAGE_C_ARES
	select BR2_PACKAGE_LIBEV
	select BR2_PACKAGE_LIBSODIUM
	select BR2_PACKAGE_MBEDTLS
	select BR2_PACKAGE_PCRE
	help
	  Shadowsocks-libev is a lightweight secured SOCKS5 proxy for
	  embedded devices and low-end boxes.

	  https://github.com/shadowsocks/shadowsocks-libev

comment "shadowsocks-libev needs a toolchain w/ threads"
	depends on BR2_TOOLCHAIN_HAS_SYNC_4
	depends on BR2_TOOLCHAIN_HAS_SYNC_8 || !BR2_ARCH_IS_64
	depends on BR2_USE_MMU
	depends on !BR2_TOOLCHAIN_HAS_THREADS
