diff options
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.bb | 57 |
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 @@ | |||
| 1 | SUMMARY = "Poppler is a PDF rendering library based on the xpdf-3.0 code base" | ||
| 2 | HOMEPAGE = "https://poppler.freedesktop.org/" | ||
| 3 | LICENSE = "GPL-2.0-only" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
| 5 | |||
| 6 | SRC_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 | " | ||
| 11 | SRC_URI[sha256sum] = "6b5e9bb64dabb15787a14db1675291c7afaf9387438cc93a4fb7f6aec4ee6fe0" | ||
| 12 | |||
| 13 | DEPENDS = "fontconfig zlib cairo lcms glib-2.0 glib-2.0-native" | ||
| 14 | |||
| 15 | inherit cmake pkgconfig gobject-introspection | ||
| 16 | |||
| 17 | PACKAGECONFIG ??= "boost jpeg nss openjpeg png tiff" | ||
| 18 | PACKAGECONFIG[boost] = "-DENABLE_BOOST=ON,-DENABLE_BOOST=OFF,boost" | ||
| 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] = "-DENABLE_LIBTIFF=ON,-DENABLE_LIBTIFF=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] = "-DENABLE_NSS3=ON,-DENABLE_NSS3=OFF,nss" | ||
| 26 | PACKAGECONFIG[gpgme] = "-DENABLE_GPGME=ON,-DENABLE_GPGME=OFF,gpgme" | ||
| 27 | PACKAGECONFIG[qt6] = "-DENABLE_QT6=ON,-DENABLE_QT6=OFF,qtbase" | ||
| 28 | |||
| 29 | # surprise - did not expect this to work :) | ||
| 30 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'qt5', 'cmake_qt5', '', d)} | ||
| 31 | |||
| 32 | SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" | ||
| 33 | |||
| 34 | EXTRA_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 | " | ||
| 42 | EXTRA_OECMAKE:append:class-native = " -DENABLE_CPP=OFF" | ||
| 43 | |||
| 44 | do_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 | |||
| 51 | PACKAGES =+ "libpoppler libpoppler-glib" | ||
| 52 | FILES:libpoppler = "${libdir}/libpoppler.so.*" | ||
| 53 | FILES:libpoppler-glib = "${libdir}/libpoppler-glib.so.*" | ||
| 54 | |||
| 55 | RDEPENDS:libpoppler = "poppler-data" | ||
| 56 | |||
| 57 | BBCLASSEXTEND = "native" | ||
