diff mbox series

[meta-oe,92/96] pdfio: add recipe for 1.6.6

Message ID 20261115074918.2932593-92-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,01/96] crow: upgrade 1.3.4 -> 1.3.5 | expand

Commit Message

Khem Raj Nov. 15, 2026, 7:49 a.m. UTC
PDFio is a small C library for reading and writing PDF files. It is
required by libcupsfilters >= 2.2, which replaced qpdf with it.

The hand written Makefile links the shared library with DSOFLAGS only
and installs into BUILDROOT, so pass LDFLAGS via --with-dsoflags and
set BUILDROOT in do_install.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-printing/pdfio/pdfio_1.6.6.bb | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-oe/recipes-printing/pdfio/pdfio_1.6.6.bb
diff mbox series

Patch

diff --git a/meta-oe/recipes-printing/pdfio/pdfio_1.6.6.bb b/meta-oe/recipes-printing/pdfio/pdfio_1.6.6.bb
new file mode 100644
index 0000000000..4858b009a1
--- /dev/null
+++ b/meta-oe/recipes-printing/pdfio/pdfio_1.6.6.bb
@@ -0,0 +1,26 @@ 
+SUMMARY = "Simple C library for reading and writing PDF files"
+HOMEPAGE = "https://www.msweet.org/pdfio"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 \
+                    file://NOTICE;md5=911592668bdcbb7554c90ec4cd2fb911"
+
+DEPENDS = "zlib"
+
+SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz"
+SRC_URI[sha256sum] = "be9790ff2e9f0b7052fca8e96f2fdb6ebac903910e7ed8e2d1de4b1e55a40a23"
+
+GITHUB_BASE_URI = "https://github.com/michaelrsweet/pdfio/releases"
+
+inherit autotools-brokensep pkgconfig github-releases
+
+PACKAGECONFIG ??= "libpng"
+PACKAGECONFIG[libpng] = "--enable-libpng,--disable-libpng,libpng"
+
+# The hand written Makefile links the shared library with DSOFLAGS only
+EXTRA_OECONF = "--enable-shared --disable-static --with-dsoflags='${LDFLAGS}'"
+
+do_install() {
+    oe_runmake install BUILDROOT=${D}
+}
+
+BBCLASSEXTEND = "native nativesdk"