From c98d7528fb7e6bd3305784154799f373d7e38747 Mon Sep 17 00:00:00 2001 From: Ribbon Date: Sat, 14 Mar 2026 21:15:41 -0300 Subject: [PATCH] Improve and try to fix more library recipes --- recipes/wip/libs/gui/imgui/recipe.toml | 2 ++ recipes/wip/libs/image/libavif/recipe.toml | 3 ++- recipes/wip/libs/image/libheif/recipe.toml | 4 ++++ recipes/wip/libs/image/libjxl/recipe.toml | 8 +++++++- recipes/wip/libs/image/libraw/recipe.toml | 3 +-- recipes/wip/libs/image/libsixel/recipe.toml | 13 +++++-------- recipes/wip/libs/image/libwebp/recipe.toml | 7 ++----- recipes/wip/libs/image/libwebp2/recipe.toml | 5 +++++ recipes/wip/libs/kde/libkdcraw/recipe.toml | 3 ++- recipes/wip/libs/kde/libkomparediff2/recipe.toml | 3 ++- recipes/wip/libs/kde/libseexpr-kde/recipe.toml | 3 ++- recipes/wip/libs/ml/libtorch/recipe.toml | 1 + .../wip/libs/mobile/libimobiledevice/recipe.toml | 2 +- recipes/wip/libs/net/c-ares/recipe.toml | 5 ++--- recipes/wip/libs/net/libtirpc/recipe.toml | 7 ++----- recipes/wip/libs/net/libtorrent/recipe.toml | 2 +- recipes/wip/libs/net/nghttp3/recipe.toml | 5 ++--- recipes/wip/libs/net/ngtcp2/recipe.toml | 15 ++++----------- 18 files changed, 47 insertions(+), 44 deletions(-) diff --git a/recipes/wip/libs/gui/imgui/recipe.toml b/recipes/wip/libs/gui/imgui/recipe.toml index fd46155fb..91f00aa66 100644 --- a/recipes/wip/libs/gui/imgui/recipe.toml +++ b/recipes/wip/libs/gui/imgui/recipe.toml @@ -3,5 +3,7 @@ [source] git = "https://github.com/Qix-/imgui" branch = "cmake" +shallow_clone = true [build] template = "cmake" +dependencies = ["sdl2"] diff --git a/recipes/wip/libs/image/libavif/recipe.toml b/recipes/wip/libs/image/libavif/recipe.toml index faa25b329..309755e55 100644 --- a/recipes/wip/libs/image/libavif/recipe.toml +++ b/recipes/wip/libs/image/libavif/recipe.toml @@ -2,6 +2,7 @@ # build instructions: https://github.com/AOMediaCodec/libavif#build-notes [source] git = "https://github.com/AOMediaCodec/libavif" -rev = "ecf2dfc1ef2908e0f4ddb0fdc03dd8db831d8ae7" +rev = "v1.4.0" +shallow_clone = true [build] template = "cmake" diff --git a/recipes/wip/libs/image/libheif/recipe.toml b/recipes/wip/libs/image/libheif/recipe.toml index 532fd6b0c..45bd0cd52 100644 --- a/recipes/wip/libs/image/libheif/recipe.toml +++ b/recipes/wip/libs/image/libheif/recipe.toml @@ -4,6 +4,10 @@ tar = "https://github.com/strukturag/libheif/releases/download/v1.17.5/libheif-1.17.5.tar.gz" [build] template = "cmake" +cmakeflags = [ + "-DBUILD_DOCUMENTATION=OFF", + "-DBUILD_TESTING=OFF", +] dependencies = [ "x265", "libde265", diff --git a/recipes/wip/libs/image/libjxl/recipe.toml b/recipes/wip/libs/image/libjxl/recipe.toml index fc048b2c9..74c9c08ed 100644 --- a/recipes/wip/libs/image/libjxl/recipe.toml +++ b/recipes/wip/libs/image/libjxl/recipe.toml @@ -2,9 +2,15 @@ # build instructions: https://github.com/libjxl/libjxl/blob/main/BUILDING.md [source] git = "https://github.com/libjxl/libjxl" -rev = "954b460768c08a147abf47689ad69b0e7beff65e" +branch = "v0.11.x" +shallow_clone = true [build] template = "cmake" +cmakeflags = [ + "-DBUILD_TESTING=OFF", + "-DJPEGXL_ENABLE_DOXYGEN=OFF", + "-DJPEGXL_ENABLE_MANPAGES=OFF", +] dependencies = [ "libbrotli", "libjpeg", diff --git a/recipes/wip/libs/image/libraw/recipe.toml b/recipes/wip/libs/image/libraw/recipe.toml index 78275719f..4af8bd33c 100644 --- a/recipes/wip/libs/image/libraw/recipe.toml +++ b/recipes/wip/libs/image/libraw/recipe.toml @@ -1,12 +1,11 @@ #TODO compilation error -#TODO make libjasper work [source] tar = "https://www.libraw.org/data/LibRaw-0.21.1.tar.gz" [build] template = "configure" dependencies = [ "zlib", - #"libjasper", + "libjasper", "libjpeg", "liblcms", ] diff --git a/recipes/wip/libs/image/libsixel/recipe.toml b/recipes/wip/libs/image/libsixel/recipe.toml index 94078fda5..4485046b7 100644 --- a/recipes/wip/libs/image/libsixel/recipe.toml +++ b/recipes/wip/libs/image/libsixel/recipe.toml @@ -2,15 +2,12 @@ [source] tar = "https://github.com/saitoha/libsixel/releases/download/v1.8.6/libsixel-1.8.6.tar.gz" [build] -template = "custom" +template = "configure" +configureflags = [ + "--with-jpeg", + "--with-png", +] dependencies = [ "libpng", "libjpeg", ] -script = """ -COOKBOOK_CONFIGURE_FLAGS+=( - --with-jpeg - --with-png -) -cookbook_configure -""" diff --git a/recipes/wip/libs/image/libwebp/recipe.toml b/recipes/wip/libs/image/libwebp/recipe.toml index 7e98a7b3b..0fb88d395 100644 --- a/recipes/wip/libs/image/libwebp/recipe.toml +++ b/recipes/wip/libs/image/libwebp/recipe.toml @@ -1,3 +1,4 @@ +#TODO: promote [source] tar = "https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.5.0.tar.gz" blake3 = "8272270920a317b854b059e86c320dbdb5a2032937072bbfd5f3304d601a92cb" @@ -12,8 +13,4 @@ dependencies = [ "libpng", "libtiff", ] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_configure -""" +template = "configure" diff --git a/recipes/wip/libs/image/libwebp2/recipe.toml b/recipes/wip/libs/image/libwebp2/recipe.toml index 2bc5b9aef..1f23fd6d0 100644 --- a/recipes/wip/libs/image/libwebp2/recipe.toml +++ b/recipes/wip/libs/image/libwebp2/recipe.toml @@ -2,5 +2,10 @@ # build instructions: https://chromium.googlesource.com/codecs/libwebp2/#compiling [source] git = "https://chromium.googlesource.com/codecs/libwebp2" +shallow_clone = true [build] template = "cmake" +cmakeflags = [ + "-DWP2_BUILD_TESTS=OFF", + "-DWP2_INSTALL_TESTS=OFF", +] \ No newline at end of file diff --git a/recipes/wip/libs/kde/libkdcraw/recipe.toml b/recipes/wip/libs/kde/libkdcraw/recipe.toml index ea4789c8c..23f36f27d 100644 --- a/recipes/wip/libs/kde/libkdcraw/recipe.toml +++ b/recipes/wip/libs/kde/libkdcraw/recipe.toml @@ -2,7 +2,8 @@ # build instructions: https://invent.kde.org/graphics/libkdcraw/-/blob/master/README?ref_type=heads [source] git = "https://invent.kde.org/graphics/libkdcraw" -rev = "fbd01409c8009f403bccac6776fe4cfefa57d5bd" +branch = "release/25.12" +shallow_clone = true [build] template = "cmake" dependencies = [ diff --git a/recipes/wip/libs/kde/libkomparediff2/recipe.toml b/recipes/wip/libs/kde/libkomparediff2/recipe.toml index cdc05c415..c80ded518 100644 --- a/recipes/wip/libs/kde/libkomparediff2/recipe.toml +++ b/recipes/wip/libs/kde/libkomparediff2/recipe.toml @@ -2,6 +2,7 @@ # lacking build instructions [source] git = "https://invent.kde.org/sdk/libkomparediff2" -rev = "ea9034ee3e4952862a937255bc6cc4ee392907f6" +branch = "release/25.12" +shallow_clone = true [build] template = "cmake" diff --git a/recipes/wip/libs/kde/libseexpr-kde/recipe.toml b/recipes/wip/libs/kde/libseexpr-kde/recipe.toml index 6c7b11b61..2e9c3d630 100644 --- a/recipes/wip/libs/kde/libseexpr-kde/recipe.toml +++ b/recipes/wip/libs/kde/libseexpr-kde/recipe.toml @@ -2,7 +2,8 @@ # build instructions: https://invent.kde.org/graphics/kseexpr#super-impatient-cmake-building-and-installing-guide [source] git = "https://invent.kde.org/graphics/kseexpr" -rev = "d834b2dc6a7f452ffca4602f90b709db86a3a630" +rev = "v6.0.0.0" +shallow_clone = true [build] template = "cmake" dependencies = [ diff --git a/recipes/wip/libs/ml/libtorch/recipe.toml b/recipes/wip/libs/ml/libtorch/recipe.toml index 535bfaee1..8abe0df9e 100644 --- a/recipes/wip/libs/ml/libtorch/recipe.toml +++ b/recipes/wip/libs/ml/libtorch/recipe.toml @@ -3,6 +3,7 @@ [source] git = "https://github.com/pytorch/pytorch" branch = "release/2.3" +shallow_clone = true [build] template = "cmake" cmakeflags = [ diff --git a/recipes/wip/libs/mobile/libimobiledevice/recipe.toml b/recipes/wip/libs/mobile/libimobiledevice/recipe.toml index 6e8e44195..84c33d959 100644 --- a/recipes/wip/libs/mobile/libimobiledevice/recipe.toml +++ b/recipes/wip/libs/mobile/libimobiledevice/recipe.toml @@ -7,5 +7,5 @@ dependencies = [ "libtatsu", "libplist", "libusbmuxd", - "openssl1", + "openssl3", ] diff --git a/recipes/wip/libs/net/c-ares/recipe.toml b/recipes/wip/libs/net/c-ares/recipe.toml index 299898dc3..fb70df000 100644 --- a/recipes/wip/libs/net/c-ares/recipe.toml +++ b/recipes/wip/libs/net/c-ares/recipe.toml @@ -1,6 +1,5 @@ +#TODO: test again [source] -git = "https://github.com/c-ares/c-ares" -rev = "d3a507e920e7af18a5efb7f9f1d8044ed4750013" # 1.34.5 - +tar = "https://github.com/c-ares/c-ares/releases/download/v1.34.6/c-ares-1.34.6.tar.gz" [build] template = "cmake" diff --git a/recipes/wip/libs/net/libtirpc/recipe.toml b/recipes/wip/libs/net/libtirpc/recipe.toml index 992396b78..01fc60204 100644 --- a/recipes/wip/libs/net/libtirpc/recipe.toml +++ b/recipes/wip/libs/net/libtirpc/recipe.toml @@ -7,8 +7,5 @@ autotools_recursive_regenerate """ [build] -template = "custom" -script = """ -DYNAMIC_INIT -cookbook_configure --disable-gssapi -""" +template = "configure" +configureflags = ["--disable-gssapi"] diff --git a/recipes/wip/libs/net/libtorrent/recipe.toml b/recipes/wip/libs/net/libtorrent/recipe.toml index 6568ca2f4..d94198f10 100644 --- a/recipes/wip/libs/net/libtorrent/recipe.toml +++ b/recipes/wip/libs/net/libtorrent/recipe.toml @@ -1,4 +1,4 @@ -#TODO missing script for bbv2, see - https://libtorrent.org/building.html +#TODO missing script for bbv2: https://libtorrent.org/building.html [source] tar = "https://github.com/arvidn/libtorrent/releases/download/v2.0.11/libtorrent-rasterbar-2.0.11.tar.gz" [build] diff --git a/recipes/wip/libs/net/nghttp3/recipe.toml b/recipes/wip/libs/net/nghttp3/recipe.toml index 1a4e01f10..3c5b58a02 100644 --- a/recipes/wip/libs/net/nghttp3/recipe.toml +++ b/recipes/wip/libs/net/nghttp3/recipe.toml @@ -1,6 +1,5 @@ +#TODO: test again [source] -git = "https://github.com/ngtcp2/nghttp3" -rev = "f3eb315feda478cdb4919720a7961c0321e1bd89" # 1.14.0 - +tar = "https://github.com/ngtcp2/nghttp3/releases/download/v1.15.0/nghttp3-1.15.0.tar.xz" [build] template = "cmake" diff --git a/recipes/wip/libs/net/ngtcp2/recipe.toml b/recipes/wip/libs/net/ngtcp2/recipe.toml index bc31da496..78f099df9 100644 --- a/recipes/wip/libs/net/ngtcp2/recipe.toml +++ b/recipes/wip/libs/net/ngtcp2/recipe.toml @@ -1,14 +1,7 @@ +#TODO: test again #TODO Maybe need openssl 1.1.1 [source] -git = "https://github.com/ngtcp2/ngtcp2" -rev = "e9fe10e0e8b3ce646fa88b4217864f29b4e013d9" # 1.14.0 - +tar = "https://github.com/ngtcp2/ngtcp2/releases/download/v1.21.0/ngtcp2-1.21.0.tar.xz" [build] -template = "custom" -script = """ -DYNAMIC_INIT -COOKBOOK_CMAKE_FLAGS+=( - -DENABLE_OPENSSL=OFF -) -cookbook_cmake -""" +template = "cmake" +cmakeflags = ["-DENABLE_OPENSSL=OFF"]