Etapa G (GUI): libtiff ✓ — loader TIFF que gdk de GTK4 exige hard; cmake static, solo target tiff (esquiva helper mkg3states shared)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Semántico sayk'uy
Mana ima sutichaypas t'ikrakurqanchu: qillqalla, yachachiylla utaq willaylla t'ikrakurqan.
1 qillqakuna · +23 −0
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"]