diff options
Diffstat (limited to 'meta-oe/recipes-support/poppler/poppler_0.37.0.bb')
| -rw-r--r-- | meta-oe/recipes-support/poppler/poppler_0.37.0.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler_0.37.0.bb b/meta-oe/recipes-support/poppler/poppler_0.37.0.bb new file mode 100644 index 0000000000..8d49bbe2c4 --- /dev/null +++ b/meta-oe/recipes-support/poppler/poppler_0.37.0.bb | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | SUMMARY = "Poppler is a PDF rendering library based on the xpdf-3.0 code base" | ||
| 2 | LICENSE = "GPLv2" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
| 4 | |||
| 5 | SRC_URI = " \ | ||
| 6 | http://poppler.freedesktop.org/${BP}.tar.xz \ | ||
| 7 | file://0001-add-manadatory-options-to-find-qt4-qt5-moc.patch \ | ||
| 8 | " | ||
| 9 | SRC_URI[md5sum] = "c635e1742202cbbd9182cb0255d95652" | ||
| 10 | SRC_URI[sha256sum] = "b89f9c5eae3bbb1046b0f767714afd75eca102a0406a3a30856778d42a685bee" | ||
| 11 | |||
| 12 | DEPENDS = "fontconfig zlib cairo lcms" | ||
| 13 | |||
| 14 | inherit autotools pkgconfig gtk-doc | ||
| 15 | |||
| 16 | PACKAGECONFIG ??= "jpeg openjpeg png tiff ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}" | ||
| 17 | PACKAGECONFIG[jpeg] = "--enable-libjpeg,--disable-libjpeg,jpeg" | ||
| 18 | PACKAGECONFIG[png] = "--enable-libpng,--disable-libpng,libpng" | ||
| 19 | PACKAGECONFIG[tiff] = "--enable-libtiff,--disable-libtiff,tiff" | ||
| 20 | PACKAGECONFIG[curl] = "--enable-libcurl,--disable-libcurl,curl" | ||
| 21 | PACKAGECONFIG[openjpeg] = "--enable-libopenjpeg=openjpeg2,--disable-libopenjpeg,openjpeg" | ||
| 22 | PACKAGECONFIG[qt5] = "--enable-poppler-qt5 --with-moc-qt5=${STAGING_BINDIR_NATIVE}/qt5/moc,--disable-poppler-qt5,qtbase" | ||
| 23 | PACKAGECONFIG[qt4e] = "--enable-poppler-qt4 --with-moc-qt4=${STAGING_BINDIR_NATIVE}/moc4,--disable-poppler-qt4,qt4-embedded" | ||
| 24 | |||
| 25 | EXTRA_OECONF = "\ | ||
| 26 | --enable-xpdf-headers \ | ||
| 27 | --disable-gtk-test \ | ||
| 28 | --enable-zlib \ | ||
| 29 | " | ||
| 30 | |||
| 31 | # Adjust library names when building for QT4e | ||
| 32 | QT4E_PATCHES = "${@bb.utils.contains('PACKAGECONFIG', 'qt4e', 'file://fix-qt4e-library-dependencies.patch', '', d)}" | ||
| 33 | SRC_URI_append = "${QT4E_PATCHES}" | ||
| 34 | |||
| 35 | # check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points | ||
| 36 | def get_poppler_fpu_setting(bb, d): | ||
| 37 | if d.getVar('TARGET_FPU', 1) in [ 'soft' ]: | ||
| 38 | return "--enable-fixedpoint" | ||
| 39 | return "" | ||
| 40 | |||
| 41 | EXTRA_OECONF += "${@get_poppler_fpu_setting(bb, d)}" | ||
| 42 | |||
| 43 | PACKAGES =+ "libpoppler libpoppler-glib" | ||
| 44 | FILES_libpoppler = "${libdir}/libpoppler.so.*" | ||
| 45 | FILES_libpoppler-glib = "${libdir}/libpoppler-glib.so.*" | ||
| 46 | |||
| 47 | RDEPENDS_${PN} = "poppler-data" | ||
