poppler: add explicit cairo support
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 13 Oct 2016 01:13:54 +0000 (22:13 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 15 Oct 2016 09:33:49 +0000 (11:33 +0200)
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/poppler/poppler.mk

index c6cd2eb92fb8f99c768dbf41ddb6499d71889f72..4632d8dd0c187c1eb878244d1510589f56f61711 100644 (file)
@@ -14,6 +14,13 @@ POPPLER_INSTALL_STAGING = YES
 POPPLER_CONF_OPTS = --with-font-configuration=fontconfig \
        --enable-xpdf-headers
 
+ifeq ($(BR2_PACKAGE_CAIRO),y)
+POPPLER_CONF_OPTS += --enable-cairo-output
+POPPLER_DEPENDENCIES += cairo
+else
+POPLER_CONF_OPTS += --disable-cairo-output
+endif
+
 ifeq ($(BR2_PACKAGE_LCMS2),y)
 POPPLER_CONF_OPTS += --enable-cms=lcms2
 POPPLER_DEPENDENCIES += lcms2