From a1b88d1735e598598b5d217668f80fd6445a504e Mon Sep 17 00:00:00 2001 From: sergio Date: Tue, 30 Jun 2026 09:51:49 -0400 Subject: [PATCH] =?UTF-8?q?Etapa=20G=20(GUI):=20libtiff=20=E2=9C=93=20?= =?UTF-8?q?=E2=80=94=20loader=20TIFF=20que=20gdk=20de=20GTK4=20exige=20har?= =?UTF-8?q?d;=20cmake=20static,=20solo=20target=20tiff=20(esquiva=20helper?= =?UTF-8?q?=20mkg3states=20shared)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- recipes/incoming-clib/libtiff.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 recipes/incoming-clib/libtiff.toml diff --git a/recipes/incoming-clib/libtiff.toml b/recipes/incoming-clib/libtiff.toml new file mode 100644 index 00000000..a924bf7b --- /dev/null +++ b/recipes/incoming-clib/libtiff.toml @@ -0,0 +1,23 @@ +# libtiff 4.7.0 — loader TIFF (gdk de GTK4 lo exige hard, junto a png/jpeg). cmake static. +# Solo zlib+jpeg; el resto de codecs opcionales OFF (evita autodetectar .so del rootfs Alpine). +name = "libtiff" +version = "4.7.0" + +[source] +tarball = "https://download.osgeo.org/libtiff/tiff-4.7.0.tar.gz" +sha256 = "67160e3457365ab96c5b3286a0903aa6e78bdc44c4bc737d2e486bcecb6ba976" + +[build] +compiler = "zig-cc" +target = "x86_64-linux-musl" +link = "static" + +[build.phases] +configure = "cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -Dtiff-tools=OFF -Dtiff-tests=OFF -Dtiff-contrib=OFF -Dtiff-docs=OFF -Dzlib=ON -Djpeg=ON -Dlzma=OFF -Dzstd=OFF -Dwebp=OFF -Djbig=OFF -Dlerc=OFF -Dlibdeflate=OFF -Dcxx=OFF" +# solo el target de la lib (tiff_mkg3states es un helper de build que linkea .so → falla en static; la +# tabla fax ya viene pre-generada en el tarball, no hace falta el helper). +compile = "cmake --build build --target tiff" +install = "DESTDIR=/out cmake --install build" + +[deps] +build = ["cmake", "zlib", "libjpeg-turbo"]