Files
RedBear-OS/local/recipes/libs/lcms2/recipe.toml
T
vasilito 54130891c0 fix: correct redox-drm patch symlinks and lcms2 blake3 hash
- redox-drm P1-P4 symlinks pointed to ../../../local/patches/ which
  resolves to local/local/patches/ (double local/). Fixed to
  ../../../patches/ to match P6/P7 and actually resolve.
- lcms2 upstream tarball blake3 changed; updated recipe hash from
  730f873... to 3cb343... to match current download.
2026-06-30 23:31:36 +03:00

35 lines
1.2 KiB
TOML

[source]
tar = "https://github.com/mm2/Little-CMS/archive/refs/tags/lcms2.19.tar.gz"
blake3 = "3cb343efe652c9a70dc7c3acda2905c1333d4add288f8dc212a68e92851126d7"
[build]
template = "custom"
script = """
DYNAMIC_INIT
mkdir -p build
cd build
cmake "${COOKBOOK_SOURCE}" \
-DCMAKE_TOOLCHAIN_FILE="${COOKBOOK_ROOT}/local/recipes/qt/redox-toolchain.cmake" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}" \
-DBUILD_SHARED_LIBS=ON \
-DHCMS2_BUILD_TESTS=OFF \
-DHCMS2_BUILD_TOOLS=OFF \
-Wno-dev
cmake --build . -j${COOKBOOK_MAKE_JOBS}
cmake --install . --prefix "${COOKBOOK_STAGE}/usr"
for lib in "${COOKBOOK_STAGE}/usr/lib/"lib*.so.*; do
[ -f "${lib}" ] || continue
patchelf --remove-rpath "${lib}" 2>/dev/null || true
done
"""
[package]
version = "0.2.3"
description = "Little CMS 2 — full color management engine (v6.0 2026 fork of mm2/Little-CMS lcms2.19). Real upstream source compiled via CMake with shared libs, tests/tools disabled. Provides ICC profile parsing, transform creation, gamut mapping, and sRGB profile generation for KWin color correction. Replaces the prior lcms2-stub that returned NULL/zero for every API."