config BR2_PACKAGE_QPDF
	bool "qpdf"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 # C++20
	depends on BR2_TOOLCHAIN_HAS_ATOMIC
	select BR2_PACKAGE_ZLIB
	select BR2_PACKAGE_JPEG
	select BR2_PACKAGE_LIBOPENSSL_ENABLE_RC4 if BR2_PACKAGE_LIBOPENSSL
	help
	  QPDF is a command-line program that does structural,
	  content- preserving transformations on PDF files. It could
	  have been called something like pdf-to-pdf. It also provides
	  many useful capabilities to developers of PDF-producing
	  software or for people who just want to look at the innards
	  of a PDF file to learn more about how they work.

	  http://qpdf.sourceforge.net/

comment "qpdf needs a toolchain w/ C++, gcc >= 10"
	depends on BR2_TOOLCHAIN_HAS_ATOMIC
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_10
