Source: poppler
Version: 0.22.5-4
Severity: wishlist
Tags: patch

As the subject says: the attached patch adds the possibility to do a 
bootstrapping build of poppler at a stage where Gtk+ and Qt are not yet 
available.
-- 
Daniel Schepler
diff -urN poppler-0.22.5.old/debian/rules poppler-0.22.5/debian/rules
--- poppler-0.22.5.old/debian/rules	2014-01-21 13:34:06.000000000 -0800
+++ poppler-0.22.5/debian/rules	2014-02-09 03:28:13.015610210 -0800
@@ -23,23 +23,32 @@
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 # disable gtk stuff to minimize Build-Depends
-CONFIGURE_ARGS :=				\
+CONFIGURE_ARGS =				\
 	--enable-libjpeg			\
 	--enable-libpng				\
 	--enable-libtiff			\
 	--enable-splash-output			\
-	--enable-cairo-output			\
 	--enable-poppler-glib			\
-	--enable-poppler-qt4			\
 	--enable-poppler-cpp			\
 	--enable-gtk-doc			\
 	--enable-xpdf-headers			\
 	--enable-introspection=yes		\
 	--enable-cms=lcms2			\
 	--disable-gtk-test
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
+CONFIGURE_ARGS +=				\
+	--enable-cairo-output			\
+	--enable-poppler-qt4
+endif
 
 %:
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
 	dh $@ --parallel --with gir
+else
+	dh $@ --parallel -Nlibpoppler-glib8 -Nlibpoppler-glib-dev \
+		-Ngir1.2-poppler-0.18 \
+		-Nlibpoppler-qt4-4 -Nlibpoppler-qt4-dev
+endif
 
 override_dh_auto_clean:
 	dh_auto_clean

Reply via email to