diff options
Diffstat (limited to 'meta-oe/recipes-support/poppler/poppler_0.69.0.bb')
| -rw-r--r-- | meta-oe/recipes-support/poppler/poppler_0.69.0.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler_0.69.0.bb b/meta-oe/recipes-support/poppler/poppler_0.69.0.bb new file mode 100644 index 0000000000..f7e34cf2a5 --- /dev/null +++ b/meta-oe/recipes-support/poppler/poppler_0.69.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] = "0881d921de62673ab558872dadc2b27b" | ||
| 12 | SRC_URI[sha256sum] = "637ff943f805f304ff1da77ba2e7f1cbd675f474941fd8ae1e0fc01a5b45a3f9" | ||
| 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" | ||
