diff --git a/libs/poppler/BUILD b/libs/poppler/BUILD index 2a7220c4371..8caeade0fcd 100644 --- a/libs/poppler/BUILD +++ b/libs/poppler/BUILD @@ -1,6 +1,4 @@ - sedit "s:priv->quality, true: priv->quality, TRUE:" goo/JpegWriter.cc && - OPTS+=" --disable-static --disable-gtk-test --enable-xpdf-headers --enable-poppler-glib" && if in_depends poppler qt5; then @@ -11,14 +9,11 @@ . /etc/profile.d/qt4.rc fi && - if [ "`get_module_config DOCS`" = "n" ] ; then - sedit "s/SUBDIRS = . reference demo/SUBDIRS = . demo/g" glib/Makefile.in - fi && - default_build && -# If in depends we will now build qt5 libs + # If in depends we will now build qt5 libs if in_depends poppler qt5; then + devoke_installwatch && . /etc/profile.d/qt5.rc && OPTS+=" --enable-poppler-qt5" && default_build diff --git a/libs/poppler/PRE_BUILD b/libs/poppler/PRE_BUILD new file mode 100644 index 00000000000..8b33982b7e2 --- /dev/null +++ b/libs/poppler/PRE_BUILD @@ -0,0 +1,7 @@ +default_pre_build && + +sedit "s:priv->quality, true: priv->quality, TRUE:" goo/JpegWriter.cc && + +if [ "`get_module_config DOCS`" = "n" ] ; then + sedit "s/SUBDIRS = . reference demo/SUBDIRS = . demo/g" glib/Makefile.in +fi