diff options
author | Koen Kooi <koen@openembedded.org> | 2006-12-26 16:56:42 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2006-12-26 16:56:42 +0000 |
commit | 367efff872c112572bc4e54a2e3ef4cb4578fb14 (patch) | |
tree | 3ec60f3eb27f32f697b05c6aed3afb8c265fb137 | |
parent | c175363ce25170fbd2198d9c2d45e9306021d1ce (diff) |
poppler: cleanups:
* create a poppler.inc
* create a poppler-fpu.inc to set --enable-fixedpoint when needed
* enable zlib
-rw-r--r-- | packages/poppler/poppler-fpu.inc | 6 | ||||
-rw-r--r-- | packages/poppler/poppler.inc | 23 | ||||
-rw-r--r-- | packages/poppler/poppler_0.5.4.bb | 16 |
3 files changed, 31 insertions, 14 deletions
diff --git a/packages/poppler/poppler-fpu.inc b/packages/poppler/poppler-fpu.inc new file mode 100644 index 0000000000..a26273020a --- /dev/null +++ b/packages/poppler/poppler-fpu.inc @@ -0,0 +1,6 @@ + +def get_poppler_fpu_setting(bb, d): + if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]: + return "--enable-fixedpoint" + return "" + diff --git a/packages/poppler/poppler.inc b/packages/poppler/poppler.inc new file mode 100644 index 0000000000..14ae8220a8 --- /dev/null +++ b/packages/poppler/poppler.inc @@ -0,0 +1,23 @@ +DESCRIPTION = "Poppler is a PDF rendering library based on the xpdf-3.0 code base." +DEPENDS = "fontconfig jpeg zlib gtk+ cairo" +LICENSE = "GPL" +PR = "r0" + +SRC_URI = "http://poppler.freedesktop.org/${PN}-${PV}.tar.gz" + +inherit autotools pkgconfig + +EXTRA_OECONF = " --enable-xpdf-headers \ + --disable-gtk-test \ + --disable-poppler-qt \ + --enable-zlib \ + " + +#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points +require poppler-fpu.inc +EXTRA_OECONF += "${@get_poppler_fpu_setting(bb, d)}" + + +do_stage() { + autotools_stage_all +} diff --git a/packages/poppler/poppler_0.5.4.bb b/packages/poppler/poppler_0.5.4.bb index bdd67a8c12..ade41a276a 100644 --- a/packages/poppler/poppler_0.5.4.bb +++ b/packages/poppler/poppler_0.5.4.bb @@ -1,14 +1,2 @@ -DESCRIPTION = "Poppler is a PDF rendering library based on the xpdf-3.0 code base." -DEPENDS = "fontconfig jpeg gtk+ cairo" -LICENSE = "GPL" -PR = "r0" - -SRC_URI = "http://poppler.freedesktop.org/${PN}-${PV}.tar.gz" - -inherit autotools pkgconfig - -EXTRA_OECONF = "--enable-xpdf-headers --disable-gtk-test --disable-poppler-qt" - -do_stage() { - autotools_stage_all -} +require poppler.inc +PR = "r1" |