diff options
| author | Andreas Müller <schnitzeltony@googlemail.com> | 2016-05-17 01:04:40 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-05-19 12:02:41 +0200 |
| commit | 5ce609fa3429b317bfda7daf4e442c50d037939c (patch) | |
| tree | dcf8a37ecddda1899a8bb0e5fa64c0ef358ac837 /meta-oe/recipes-support/poppler/poppler_0.43.0.bb | |
| parent | 207e97112b2627267a7fa8921d94457114700cb7 (diff) | |
| download | meta-openembedded-5ce609fa3429b317bfda7daf4e442c50d037939c.tar.gz | |
poppler: update to 0.43.0
* patch was applied upstream
* a PACKAGECONFIG for nss was added - enabled by default
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/poppler/poppler_0.43.0.bb')
| -rw-r--r-- | meta-oe/recipes-support/poppler/poppler_0.43.0.bb | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler_0.43.0.bb b/meta-oe/recipes-support/poppler/poppler_0.43.0.bb new file mode 100644 index 0000000000..95cd5e5daf --- /dev/null +++ b/meta-oe/recipes-support/poppler/poppler_0.43.0.bb | |||
| @@ -0,0 +1,55 @@ | |||
| 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] = "1d2b001663119855cdfbc0713dbfb9c6" | ||
| 10 | SRC_URI[sha256sum] = "c720e26a26ee10b7ebc9e256d2ee7adcdb536cf85f9f1c4777a38f7f81fb2456" | ||
| 11 | |||
| 12 | DEPENDS = "fontconfig zlib cairo lcms" | ||
| 13 | |||
| 14 | inherit autotools pkgconfig gtk-doc gobject-introspection | ||
| 15 | |||
| 16 | PACKAGECONFIG ??= "jpeg openjpeg png tiff nss ${@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 | PACKAGECONFIG[nss] = "--enable-libnss,--disable-libnss,nss" | ||
| 25 | |||
| 26 | # Needed for qt5 | ||
| 27 | CXXFLAGS += "--std=c++11" | ||
| 28 | |||
| 29 | EXTRA_OECONF = "\ | ||
| 30 | --enable-xpdf-headers \ | ||
| 31 | --disable-gtk-test \ | ||
| 32 | --enable-zlib \ | ||
| 33 | " | ||
| 34 | |||
| 35 | do_compile_prepend() { | ||
| 36 | export GIR_EXTRA_LIBS_PATH="${B}/poppler/.libs" | ||
| 37 | } | ||
| 38 | |||
| 39 | # Adjust library names when building for QT4e | ||
| 40 | QT4E_PATCHES = "${@bb.utils.contains('PACKAGECONFIG', 'qt4e', 'file://fix-qt4e-library-dependencies.patch', '', d)}" | ||
| 41 | SRC_URI_append = "${QT4E_PATCHES}" | ||
| 42 | |||
| 43 | # check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points | ||
| 44 | def get_poppler_fpu_setting(bb, d): | ||
| 45 | if d.getVar('TARGET_FPU', 1) in [ 'soft' ]: | ||
| 46 | return "--enable-fixedpoint" | ||
| 47 | return "" | ||
| 48 | |||
| 49 | EXTRA_OECONF += "${@get_poppler_fpu_setting(bb, d)}" | ||
| 50 | |||
| 51 | PACKAGES =+ "libpoppler libpoppler-glib" | ||
| 52 | FILES_libpoppler = "${libdir}/libpoppler.so.*" | ||
| 53 | FILES_libpoppler-glib = "${libdir}/libpoppler-glib.so.*" | ||
| 54 | |||
| 55 | RDEPENDS_libpoppler = "poppler-data" | ||
