diff --git a/package/poppler/Config.in b/package/poppler/Config.in index fce296de4..5166e15c1 100644 --- a/package/poppler/Config.in +++ b/package/poppler/Config.in @@ -10,5 +10,17 @@ config BR2_PACKAGE_POPPLER http://poppler.freedesktop.org/ +if BR2_PACKAGE_POPPLER + +config BR2_PACKAGE_POPPLER_QT + bool "Qt support" + depends on BR2_PACKAGE_QT + select BR2_PACKAGE_QT_GUI + select BR2_PACKAGE_QT_XML + help + Build Qt support into the Poppler library + +endif + comment "poppler needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/poppler/poppler.mk b/package/poppler/poppler.mk index e4fee3f87..a52b0799c 100644 --- a/package/poppler/poppler.mk +++ b/package/poppler/poppler.mk @@ -61,4 +61,11 @@ else POPPLER_CONF_OPTS += --without-x endif +ifeq ($(BR2_PACKAGE_POPPLER_QT),y) + POPPLER_DEPENDENCIES += qt + POPPLER_CONF_OPTS += --enable-poppler-qt4 +else + POPPLER_CONF_OPTS += --disable-poppler-qt4 +endif + $(eval $(autotools-package))