diff options
Diffstat (limited to 'meta-oe/recipes-support/poppler/poppler_0.71.0.bb')
-rw-r--r-- | meta-oe/recipes-support/poppler/poppler_0.71.0.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler_0.71.0.bb b/meta-oe/recipes-support/poppler/poppler_0.71.0.bb new file mode 100644 index 000000000..371648d1a --- /dev/null +++ b/meta-oe/recipes-support/poppler/poppler_0.71.0.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] = "b505011e49e922c83f3ffb57ab40bc28" | ||
12 | SRC_URI[sha256sum] = "badbecd2dddf63352fd85ec08a9c2ed122fdadacf2a34fcb4cc227c4d01f2cf9" | ||
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" | ||