diff --git a/packages/graphics/lcms2/package.mk b/packages/graphics/lcms2/package.mk index 943b541935..f6298372bd 100644 --- a/packages/graphics/lcms2/package.mk +++ b/packages/graphics/lcms2/package.mk @@ -2,8 +2,8 @@ # Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv) PKG_NAME="lcms2" -PKG_VERSION="2.14" -PKG_SHA256="28474ea6f6591c4d4cee972123587001a4e6e353412a41b3e9e82219818d5740" +PKG_VERSION="2.15" +PKG_SHA256="b20cbcbd0f503433be2a4e81462106fa61050a35074dc24a4e356792d971ab39" PKG_LICENSE="MIT/GPLv3" PKG_SITE="http://www.littlecms.com" PKG_URL="https://github.com/mm2/Little-CMS/releases/download/lcms${PKG_VERSION}/lcms2-${PKG_VERSION}.tar.gz" @@ -11,4 +11,4 @@ PKG_DEPENDS_TARGET="toolchain tiff" PKG_LONGDESC="An small-footprint color management engine, with special focus on accuracy and performance." PKG_BUILD_FLAGS="+pic" -PKG_MESON_OPTS_TARGET="--default-library static" +PKG_MESON_OPTS_TARGET="-Ddefault_library=static -Dprefer_static=true -Dutils=true" diff --git a/packages/graphics/lcms2/patches/lcms2-370-add-utils-meson.patch b/packages/graphics/lcms2/patches/lcms2-370-add-utils-meson.patch new file mode 100644 index 0000000000..85e7f89140 --- /dev/null +++ b/packages/graphics/lcms2/patches/lcms2-370-add-utils-meson.patch @@ -0,0 +1,38 @@ +From 0cbb7ac63af7eabb6992361fa0f7ee941deaf0c3 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum +Date: Tue, 14 Mar 2023 14:13:11 +0000 +Subject: [PATCH] Allow optional build of utils using meson + +Signed-off-by: Rudi Heitbaum +--- + meson.build | 5 ++++- + meson_options.txt | 1 + + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/meson.build b/meson.build +index f0492002b..91152f8aa 100644 +--- a/meson.build ++++ b/meson.build +@@ -100,7 +100,10 @@ deps = [m_dep, threads_dep] + subdir('include') + subdir('src') + subdir('testbed') +-subdir('utils') ++ ++if get_option('utils') ++ subdir('utils') ++endif + + if get_option('samples') + subdir('utils/samples') +diff --git a/meson_options.txt b/meson_options.txt +index 5adc46441..ae41f38cf 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -2,5 +2,6 @@ option('jpeg', type: 'feature', value: 'auto', description: 'Use JPEG') + option('tiff', type: 'feature', value: 'auto', description: 'Use LibTiff') + + option('samples', type: 'boolean', value: 'false', description: 'Build the samples') ++option('utils', type: 'boolean', value: 'true', description: 'Build the utils') + option('fastfloat', type: 'boolean', value: 'false', description: 'Build and install the fast float plugin, use only if GPL 3.0 is acceptable') + option('threaded', type: 'boolean', value: 'false', description: 'Build and install the multi threaded plugin, use only if GPL 3.0 is acceptable')