config BR2_PACKAGE_RTORRENT
	bool "rtorrent"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_USE_WCHAR
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU # fork()
	# gcc < 4.9 cause an "internal compiler error"
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
	depends on BR2_TOOLCHAIN_HAS_SYNC_1 && BR2_TOOLCHAIN_HAS_SYNC_4
	select BR2_PACKAGE_LIBCURL
	select BR2_PACKAGE_LIBTORRENT
	select BR2_PACKAGE_NCURSES
	select BR2_PACKAGE_OPENSSL
	help
	  BitTorrent Client using libtorrent

	  https://github.com/rakshasa/rtorrent

comment "rtorrent needs a toolchain w/ C++, threads, wchar, gcc >= 4.9"
	depends on BR2_USE_MMU
	depends on BR2_TOOLCHAIN_HAS_SYNC_1 && BR2_TOOLCHAIN_HAS_SYNC_4
	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && \
		BR2_TOOLCHAIN_HAS_THREADS && BR2_TOOLCHAIN_GCC_AT_LEAST_4_9)
