Skip to content

Commit

Permalink
poppler: cleanup
Browse files Browse the repository at this point in the history
- move sedits to PRE_BUILD
- look for qt4 when sourcing qt4
- devoke_installwatch before second default_build
  • Loading branch information
v4hn committed Nov 10, 2014
1 parent d19eba7 commit ab72957
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 2 additions & 7 deletions 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
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions 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

0 comments on commit ab72957

Please sign in to comment.