@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/OpenPrinting"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=aab2024bd2a475438a154cd1640c9684"
-DEPENDS = "cups fontconfig libexif dbus lcms qpdf poppler libpng jpeg tiff"
+DEPENDS = "cups fontconfig libexif dbus lcms pdfio libpng jpeg tiff"
SRC_URI = "https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \
"
@@ -11,6 +11,9 @@ SRC_URI[sha256sum] = "0a22b849d5068c4c86b20fbb4192d3faa3dabcc9ee844c8fd73710ed82
inherit autotools gettext pkgconfig github-releases
+PACKAGECONFIG ??= "jpegxl"
+PACKAGECONFIG[jpegxl] = "--with-jpegxl,--without-jpegxl,libjxl"
+
# github-releases defaults GITHUB_BASE_URI to github.com/<BPN>/<BPN>, which 404s
# for this project; releases live under the OpenPrinting org.
GITHUB_BASE_URI = "https://github.com/OpenPrinting/${BPN}/releases/"
@@ -18,3 +21,7 @@ UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+(\.\d+)+)"
FILES:${PN} += "${datadir}"
RDEPENDS:${PN} += "ghostscript"
+
+do_install:append() {
+ sed -i -e 's:${RECIPE_SYSROOT}::g' ${D}${libdir}/pkgconfig/libcupsfilters.pc
+}
2.2 replaced qpdf with pdfio and added JPEG-XL support, which is enabled by default and makes configure fail without libjxl. Depend on pdfio instead of qpdf and poppler (only pdftoppm is used, at runtime), and add a jpegxl PACKAGECONFIG. Also strip the recipe sysroot from libcupsfilters.pc; it embeds the cups pkg-config cflags (dbus include paths) since 2.2. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- meta-oe/recipes-printing/cups/libcupsfilters_2.2.1.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)