Description: Fix build with poppler 0.85
Author: Peter Michael Green <plugwash@raspbian.org>

Index: popplerkit.framework-0.0.20051227svn/bindings/GNUmakefile
===================================================================
--- popplerkit.framework-0.0.20051227svn.orig/bindings/GNUmakefile
+++ popplerkit.framework-0.0.20051227svn/bindings/GNUmakefile
@@ -57,4 +57,8 @@ ifeq ($(POPPLER_0_20), YES)
    bindings_CCFLAGS += -DPOPPLER_0_20
 endif
 
+ifeq ($(POPPLER_0_85), YES)
+   bindings_CCFLAGS += -DPOPPLER_0_20 -DPOPPLER_0_85
+endif
+
 include $(GNUSTEP_MAKEFILES)/subproject.make
Index: popplerkit.framework-0.0.20051227svn/bindings/poppler.cc
===================================================================
--- popplerkit.framework-0.0.20051227svn.orig/bindings/poppler.cc
+++ popplerkit.framework-0.0.20051227svn/bindings/poppler.cc
@@ -125,6 +125,8 @@ int poppler_init(const unsigned char* fc
 
 #ifdef POPPLER_0_6
       globalParams = new GlobalParams();
+#elif POPPLER_0_85
+      globalParams = std::make_unique<GlobalParams>(nullptr);
 #else
       globalParams = new GlobalParams(NULL);
 #endif
Index: popplerkit.framework-0.0.20051227svn/config.sh
===================================================================
--- popplerkit.framework-0.0.20051227svn.orig/config.sh
+++ popplerkit.framework-0.0.20051227svn/config.sh
@@ -69,6 +69,11 @@ if [ $? -eq 0 ]; then
   POPPLER_VERSION="POPPLER_0_20"
 fi
 
+${PKG_CONFIG} --atleast-version=0.85.0 poppler
+if [ $? -eq 0 ]; then
+  POPPLER_VERSION="POPPLER_0_85"
+fi
+
 echo $POPPLER_VERSION
 
 # include freetype, just to be sure
