config BR2_PACKAGE_LIBNPUPNP
	bool "libnpupnp"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
	select BR2_PACKAGE_EXPAT
	select BR2_PACKAGE_LIBCURL
	select BR2_PACKAGE_LIBMICROHTTPD
	help
	  npupnp (new pupnp or not pupnp ?) is an UPnP library derived
	  from the venerable pupnp (https://github.com/pupnp/pupnp),
	  based on its 1.6.x branch (around 1.6.25).

	  https://www.lesbonscomptes.com/upmpdcli/libnpupnp.html

comment "libnpupnp needs a toolchain w/ C++, threads, gcc >= 4.9"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
