diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2018-10-26 12:48:53 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-10-26 21:08:44 -0700 |
commit | a602c884a6688ee12392097cb92fab94b7cb0598 (patch) | |
tree | e4fd734e4bc76f4ccfa551022edb360329a2fc0c /meta-oe/recipes-support/poppler/poppler_0.70.1.bb | |
parent | 5eed16d8042aa3942d947e181932e5e75db895e5 (diff) | |
download | meta-openembedded-a602c884a6688ee12392097cb92fab94b7cb0598.tar.gz |
poppler: upgrade 0.69.0 -> 0.70.1
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/poppler/poppler_0.70.1.bb')
-rw-r--r-- | meta-oe/recipes-support/poppler/poppler_0.70.1.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler_0.70.1.bb b/meta-oe/recipes-support/poppler/poppler_0.70.1.bb new file mode 100644 index 000000000..b618f28c5 --- /dev/null +++ b/meta-oe/recipes-support/poppler/poppler_0.70.1.bb | |||
@@ -0,0 +1,59 @@ | |||
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 = "http://poppler.freedesktop.org/${BP}.tar.xz \ | ||
6 | file://0001-Do-not-overwrite-all-our-build-flags.patch \ | ||
7 | file://0002-CairoOutputDev.cc-fix-build-error-when-using-fixedpo.patch \ | ||
8 | file://0001-glib-CMakeLists.txt-Add-libpoppler-to-link-along-wit.patch \ | ||
9 | file://basename-include.patch \ | ||
10 | " | ||
11 | SRC_URI[md5sum] = "fdb0699e9aa20e81acd1a50701374c8b" | ||
12 | SRC_URI[sha256sum] = "66972047d9ef8162cc8c389d7e7698291dfc9f2b3e4ea9a9f08ae604107451bd" | ||
13 | |||
14 | DEPENDS = "fontconfig zlib cairo lcms glib-2.0" | ||
15 | |||
16 | inherit cmake pkgconfig gobject-introspection | ||
17 | |||
18 | PACKAGECONFIG ??= "jpeg openjpeg png tiff nss ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}" | ||
19 | PACKAGECONFIG[jpeg] = "-DWITH_JPEG=ON -DENABLE_DCTDECODER=libjpeg,-DWITH_JPEG=OFF -DENABLE_DCTDECODER=none,jpeg" | ||
20 | PACKAGECONFIG[png] = "-DWITH_PNG=ON,-DWITH_PNG=OFF,libpng" | ||
21 | PACKAGECONFIG[tiff] = "-DWITH_TIFF=ON,-DWITH_TIFF=OFF,tiff" | ||
22 | PACKAGECONFIG[curl] = "-DENABLE_LIBCURL=ON,-DENABLE_LIBCURL=OFF,curl" | ||
23 | PACKAGECONFIG[openjpeg] = "-DENABLE_LIBOPENJPEG=openjpeg2,-DENABLE_LIBOPENJPEG=none,openjpeg" | ||
24 | PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON,-DENABLE_QT5=OFF,qtbase qttools-native" | ||
25 | PACKAGECONFIG[nss] = "-DWITH_NSS3=ON,-DWITH_NSS3=OFF,nss" | ||
26 | |||
27 | # surprise - did not expect this to work :) | ||
28 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)} | ||
29 | |||
30 | SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" | ||
31 | |||
32 | EXTRA_OECMAKE += " \ | ||
33 | -DENABLE_CMS=lcms2 \ | ||
34 | -DENABLE_XPDF_HEADERS=ON \ | ||
35 | -DBUILD_GTK_TESTS=OFF \ | ||
36 | -DENABLE_ZLIB=ON \ | ||
37 | -DCMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES:PATH='${STAGING_INCDIR}' \ | ||
38 | " | ||
39 | |||
40 | do_configure_append() { | ||
41 | # poppler macro uses pkg-config to check for g-ir runtimes. Something | ||
42 | # makes them point to /usr/bin. Align them to sysroot - that's where the | ||
43 | # git-wrappers are: | ||
44 | sed -i 's: ${bindir}/g-ir: ${STAGING_BINDIR}/g-ir:' ${B}/build.ninja | ||
45 | } | ||
46 | |||
47 | # check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points | ||
48 | def get_poppler_fpu_setting(bb, d): | ||
49 | if d.getVar('TARGET_FPU') in [ 'soft' ]: | ||
50 | return "-DUSE_FIXEDPOINT=ON" | ||
51 | return "" | ||
52 | |||
53 | EXTRA_OECMAKE += "${@get_poppler_fpu_setting(bb, d)}" | ||
54 | |||
55 | PACKAGES =+ "libpoppler libpoppler-glib" | ||
56 | FILES_libpoppler = "${libdir}/libpoppler.so.*" | ||
57 | FILES_libpoppler-glib = "${libdir}/libpoppler-glib.so.*" | ||
58 | |||
59 | RDEPENDS_libpoppler = "poppler-data" | ||