summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/poppler/poppler_25.10.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/poppler/poppler_25.10.0.bb')
-rw-r--r--meta-oe/recipes-support/poppler/poppler_25.10.0.bb57
1 files changed, 57 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/poppler/poppler_25.10.0.bb b/meta-oe/recipes-support/poppler/poppler_25.10.0.bb
new file mode 100644
index 0000000000..29a5f33e81
--- /dev/null
+++ b/meta-oe/recipes-support/poppler/poppler_25.10.0.bb
@@ -0,0 +1,57 @@
1SUMMARY = "Poppler is a PDF rendering library based on the xpdf-3.0 code base"
2HOMEPAGE = "https://poppler.freedesktop.org/"
3LICENSE = "GPL-2.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5
6SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.xz \
7 file://0001-Do-not-overwrite-all-our-build-flags.patch \
8 file://basename-include.patch \
9 file://0001-cmake-Do-not-use-isystem.patch \
10 "
11SRC_URI[sha256sum] = "6b5e9bb64dabb15787a14db1675291c7afaf9387438cc93a4fb7f6aec4ee6fe0"
12
13DEPENDS = "fontconfig zlib cairo lcms glib-2.0 glib-2.0-native"
14
15inherit cmake pkgconfig gobject-introspection
16
17PACKAGECONFIG ??= "boost jpeg nss openjpeg png tiff"
18PACKAGECONFIG[boost] = "-DENABLE_BOOST=ON,-DENABLE_BOOST=OFF,boost"
19PACKAGECONFIG[jpeg] = "-DWITH_JPEG=ON -DENABLE_DCTDECODER=libjpeg,-DWITH_JPEG=OFF -DENABLE_DCTDECODER=none,jpeg"
20PACKAGECONFIG[png] = "-DWITH_PNG=ON,-DWITH_PNG=OFF,libpng"
21PACKAGECONFIG[tiff] = "-DENABLE_LIBTIFF=ON,-DENABLE_LIBTIFF=OFF,tiff"
22PACKAGECONFIG[curl] = "-DENABLE_LIBCURL=ON,-DENABLE_LIBCURL=OFF,curl"
23PACKAGECONFIG[openjpeg] = "-DENABLE_LIBOPENJPEG=openjpeg2,-DENABLE_LIBOPENJPEG=none,openjpeg"
24PACKAGECONFIG[qt5] = "-DENABLE_QT5=ON,-DENABLE_QT5=OFF,qtbase qttools-native"
25PACKAGECONFIG[nss] = "-DENABLE_NSS3=ON,-DENABLE_NSS3=OFF,nss"
26PACKAGECONFIG[gpgme] = "-DENABLE_GPGME=ON,-DENABLE_GPGME=OFF,gpgme"
27PACKAGECONFIG[qt6] = "-DENABLE_QT6=ON,-DENABLE_QT6=OFF,qtbase"
28
29# surprise - did not expect this to work :)
30inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)}
31
32SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
33
34EXTRA_OECMAKE += " \
35 -DENABLE_LCMS=ON \
36 -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
37 -DBUILD_GTK_TESTS=OFF \
38 -DRUN_GPERF_IF_PRESENT=OFF \
39 -DCMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES:PATH='${STAGING_INCDIR}' \
40 ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-DENABLE_GOBJECT_INTROSPECTION=ON', '-DENABLE_GOBJECT_INTROSPECTION=OFF', d)} \
41"
42EXTRA_OECMAKE:append:class-native = " -DENABLE_CPP=OFF"
43
44do_configure:append() {
45 # poppler macro uses pkg-config to check for g-ir runtimes. Something
46 # makes them point to /usr/bin. Align them to sysroot - that's where the
47 # gir-wrappers are:
48 sed -i 's: ${bindir}/g-ir: ${STAGING_BINDIR}/g-ir:' ${B}/build.ninja
49}
50
51PACKAGES =+ "libpoppler libpoppler-glib"
52FILES:libpoppler = "${libdir}/libpoppler.so.*"
53FILES:libpoppler-glib = "${libdir}/libpoppler-glib.so.*"
54
55RDEPENDS:libpoppler = "poppler-data"
56
57BBCLASSEXTEND = "native"