diff options
Diffstat (limited to 'meta-oe/recipes-support/poppler/poppler_0.64.0.bb')
-rw-r--r-- | meta-oe/recipes-support/poppler/poppler_0.64.0.bb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler_0.64.0.bb b/meta-oe/recipes-support/poppler/poppler_0.64.0.bb new file mode 100644 index 000000000..1e87ae6e6 --- /dev/null +++ b/meta-oe/recipes-support/poppler/poppler_0.64.0.bb | |||
@@ -0,0 +1,58 @@ | |||
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 | " | ||
10 | SRC_URI[md5sum] = "f7f687ebb60004f8ad61994575018044" | ||
11 | SRC_URI[sha256sum] = "b21df92ca99f78067785cf2dc8e06deb04726b62389c0ee1f5d8b103c77f64b1" | ||
12 | |||
13 | DEPENDS = "fontconfig zlib cairo lcms glib-2.0" | ||
14 | |||
15 | inherit cmake pkgconfig gobject-introspection | ||
16 | |||
17 | PACKAGECONFIG ??= "jpeg openjpeg png tiff nss ${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-layer', 'qt5', '', d)}" | ||
18 | PACKAGECONFIG[jpeg] = "-DWITH_JPEG=ON -DENABLE_DCTDECODER=libjpeg,-DWITH_JPEG=OFF -DENABLE_DCTDECODER=none,jpeg" | ||
19 | PACKAGECONFIG[png] = "-DWITH_PNG=ON,-DWITH_PNG=OFF,libpng" | ||
20 | PACKAGECONFIG[tiff] = "-DWITH_TIFF=ON,-DWITH_TIFF=OFF,tiff" | ||
21 | PACKAGECONFIG[curl] = "-DENABLE_LIBCURL=ON,-DENABLE_LIBCURL=OFF,curl" | ||
22 | PACKAGECONFIG[openjpeg] = "-DENABLE_LIBOPENJPEG=openjpeg2,-DENABLE_LIBOPENJPEG=none,openjpeg" | ||
23 | PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON,-DENABLE_QT5=OFF,qtbase qttools-native" | ||
24 | PACKAGECONFIG[nss] = "-DWITH_NSS3=ON,-DWITH_NSS3=OFF,nss" | ||
25 | |||
26 | # surprise - did not expect this to work :) | ||
27 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)} | ||
28 | |||
29 | SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" | ||
30 | |||
31 | EXTRA_OECMAKE += " \ | ||
32 | -DENABLE_CMS=lcms2 \ | ||
33 | -DENABLE_XPDF_HEADERS=ON \ | ||
34 | -DBUILD_GTK_TESTS=OFF \ | ||
35 | -DENABLE_ZLIB=ON \ | ||
36 | -DCMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES:PATH='${STAGING_INCDIR}' \ | ||
37 | " | ||
38 | |||
39 | do_configure_append() { | ||
40 | # poppler macro uses pkg-config to check for g-ir runtimes. Something | ||
41 | # makes them point to /usr/bin. Align them to sysroot - that's where the | ||
42 | # git-wrappers are: | ||
43 | sed -i 's: ${bindir}/g-ir: ${STAGING_BINDIR}/g-ir:' ${B}/build.ninja | ||
44 | } | ||
45 | |||
46 | # check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points | ||
47 | def get_poppler_fpu_setting(bb, d): | ||
48 | if d.getVar('TARGET_FPU') in [ 'soft' ]: | ||
49 | return "-DUSE_FIXEDPOINT=ON" | ||
50 | return "" | ||
51 | |||
52 | EXTRA_OECMAKE += "${@get_poppler_fpu_setting(bb, d)}" | ||
53 | |||
54 | PACKAGES =+ "libpoppler libpoppler-glib" | ||
55 | FILES_libpoppler = "${libdir}/libpoppler.so.*" | ||
56 | FILES_libpoppler-glib = "${libdir}/libpoppler-glib.so.*" | ||
57 | |||
58 | RDEPENDS_libpoppler = "poppler-data" | ||