diff mbox series

[2/4] lcms: add PACKAGECONFIGs for the optional JPEG and TIFF libraries

Message ID 20260917160342.3130926-2-ross.burton@arm.com
State New
Headers show
Series [1/4] lcms: put tools into lcms-bin | expand

Commit Message

Ross Burton Sept. 17, 2026, 4:03 p.m. UTC
These optional libraries are used by the tools.

JPEG was implicitly enabled previously, as our tiff recipe by default
pulls in libjpeg.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-oe/recipes-support/lcms/lcms_2.19.1.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/lcms/lcms_2.19.1.bb b/meta-oe/recipes-support/lcms/lcms_2.19.1.bb
index ffa40ea9a43..cc68cccbba9 100644
--- a/meta-oe/recipes-support/lcms/lcms_2.19.1.bb
+++ b/meta-oe/recipes-support/lcms/lcms_2.19.1.bb
@@ -8,14 +8,16 @@  SRC_URI = "${SOURCEFORGE_MIRROR}/lcms/lcms2-${PV}.tar.gz \
            "
 SRC_URI[sha256sum] = "bfc54f7bab59fbc921012014a8032e4cba4abd46db47d46b76416a8c0b2815c8"
 
-DEPENDS = "tiff"
-
 BBCLASSEXTEND = "native nativesdk"
 
 S = "${UNPACKDIR}/lcms2-${PV}"
 
 inherit autotools sourceforge-releases lib_package ptest
 
+PACKAGECONFIG ??= "jpeg tiff"
+PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg"
+PACKAGECONFIG[tiff] = "--with-tiff,--without-tiff,tiff"
+
 do_compile_ptest() {
     oe_runmake -C ${B}/testbed testcms
 }