# lcms2 2.16 — Little-CMS, motor de gestión de color (liblcms2.so). Campaña KDE (ADR 0011): sustrato de
# kwin (find_package(lcms2) TYPE REQUIRED, color management del compositor). Autotools sobre zig-cc.
# Sólo el core: --without-jpeg/--without-tiff (esas deps sólo las usan los ejemplos, no la lib).
name    = "lcms2"
version = "2.16"
license = "MIT"

[source]
tarball = "https://github.com/mm2/Little-CMS/releases/download/lcms2.16/lcms2-2.16.tar.gz"
sha256  = "d873d34ad8b9b4cea010631f1a6228d2087475e4dc5e763eb81acc23d9d45a51"

[build]
compiler    = "zig-cc"
target      = "x86_64-linux-musl"
link        = "dynamic"
zig_version = "0.13.0"

[build.phases]
configure = '''
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig \
./configure --build=$CBUILD --host=$CHOST --prefix=/usr --disable-static --without-jpeg --without-tiff
'''
compile   = "make -j\"$(nproc)\""
install   = "make install DESTDIR=/out && find /out -name '*.la' -delete"

[deps]
build = ["pkgconf", "python3"]
