lcms: put tools into lcms-bin
PATCH 1/4 lcms: put tools into lcms-bin
The tools are not required to use the library, so inherit lib_package to put them into a separate package.
Signed-off-by Ross Burton <[email protected]>
--- meta-oe/recipes-support/lcms/lcms_2.19.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/lcms/lcms_2.19.1.bb +1 -1
@@ -14,7 +14,7 @@ BBCLASSEXTEND = "native nativesdk" S = "${UNPACKDIR}/lcms2-${PV}" -inherit autotools sourceforge-releases ptest +inherit autotools sourceforge-releases lib_package ptest do_compile_ptest() { oe_runmake -C ${B}/testbed testcms
Signature · 1 line
2.43.0
PATCH 2/4 lcms: add PACKAGECONFIGs for the optional JPEG and TIFF libraries
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 <[email protected]>
--- meta-oe/recipes-support/lcms/lcms_2.19.1.bb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-support/lcms/lcms_2.19.1.bb +4 -2
@@ -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 }
Signature · 1 line
2.43.0
PATCH 3/4 lcms: remove bash RDEPENDS
In reply to Ross BurtonThe ptest package contains a #!/bin/sh script, so there is no need to depend on bash.
Signed-off-by Ross Burton <[email protected]>
--- meta-oe/recipes-support/lcms/lcms_2.19.1.bb | 2 -- 1 file changed, 2 deletions(-)
meta-oe/recipes-support/lcms/lcms_2.19.1.bb +0 -2
@@ -28,6 +28,4 @@ do_install_ptest() { install -m 0644 ${S}/testbed/*.icc ${D}${PTEST_PATH}/ } -RDEPENDS:${PN}-ptest += "bash" - CVE_PRODUCT += "littlecms:little_cms_color_engine"
Signature · 1 line
2.43.0
PATCH 4/4 lcms: use meson instead of autotools
In reply to Ross BurtonUpstream has meson.build, so use it.
Signed-off-by Ross Burton <[email protected]>
--- meta-oe/recipes-support/lcms/lcms_2.19.1.bb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
meta-oe/recipes-support/lcms/lcms_2.19.1.bb +8 -6
@@ -8,18 +8,18 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/lcms/lcms2-${PV}.tar.gz \ " SRC_URI[sha256sum] = "bfc54f7bab59fbc921012014a8032e4cba4abd46db47d46b76416a8c0b2815c8" -BBCLASSEXTEND = "native nativesdk" - S = "${UNPACKDIR}/lcms2-${PV}" -inherit autotools sourceforge-releases lib_package ptest +inherit meson pkgconfig sourceforge-releases lib_package ptest PACKAGECONFIG ??= "jpeg tiff" -PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg,jpeg" -PACKAGECONFIG[tiff] = "--with-tiff,--without-tiff,tiff" +PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg" +PACKAGECONFIG[tiff] = "-Dtiff=enabled,-Dtiff=disabled,tiff" + +EXTRA_OEMESON = "-Dutils=true" do_compile_ptest() { - oe_runmake -C ${B}/testbed testcms + ninja --verbose ${PARALLEL_MAKE} testbed/testcms } do_install_ptest() {
@@ -29,3 +29,5 @@ do_install_ptest() { } CVE_PRODUCT += "littlecms:little_cms_color_engine" + +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.43.0