# libjpeg-turbo 3.1.3 — JPEG (loader de imágenes). cmake static, SIMD off (sin nasm).
name    = "libjpeg-turbo"
version = "3.1.3"
[source]
tarball = "https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.1.3/libjpeg-turbo-3.1.3.tar.gz"
sha256  = "075920b826834ac4ddf97661cc73491047855859affd671d52079c6867c1c6c0"
[build]
compiler = "zig-cc"
target   = "x86_64-linux-musl"
link     = "static"
[build.phases]
# CMAKE_INSTALL_LIBDIR=lib: por defecto mete .pc/lib en /usr/lib64 (outlier del lab, que usa /usr/lib);
# eso rompía pkg-config de quien lo requiere (libtiff→libjpeg, GTK4).
configure = "cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DENABLE_SHARED=0 -DENABLE_STATIC=1 -DWITH_SIMD=0"
compile   = "cmake --build build"
install   = "DESTDIR=/out cmake --install build"
[deps]
build = ["cmake"]
