Subject: [PATCH 5/8] gnu: make-torbrowser: Unbundle libwebp.

From: André Batista <[email-masked]>
Date: Wed, 11 Dec 2024 19:57:20 -0300

* gnu/packages/tor-browsers.scm (make-torbrowser): Unbundle libwebp.
[inputs]: Add libwebp;
[arguments] <#:configure-flags>: Add '--with-system-webp';
<#:phases> remove-bundled-libraries: Add 'media/libwebp'.

Change-Id: I409f00ee0c0a96d08ab93dca2a297dee6bafe56d
---
 gnu/packages/tor-browsers.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/tor-browsers.scm b/gnu/packages/tor-browsers.scm
index 9b1187c5ca3..5c32c3cb0c4 100644
--- a/gnu/packages/tor-browsers.scm
+++ b/gnu/packages/tor-browsers.scm
@@ -238,6 +238,7 @@ (define* (make-torbrowser #:key
            ;; UNBUNDLE-ME! libogg
            ;; UNBUNDLE-ME! libtheora ; wants theora-1.2, not yet released
            ;; UNBUNDLE-ME! libvorbis
+           libwebp
            libxft
            libevent
            libxinerama
@@ -348,6 +349,7 @@ (define* (make-torbrowser #:key
          ;; Avoid bundled libraries.
          "--with-system-jpeg"           ;must be libjpeg-turbo
          "--with-system-png"            ;must be libpng-apng
+         "--with-system-webp"
          "--with-system-zlib"
          "--with-system-libevent"
          ;; UNBUNDLE-ME! "--with-system-ogg"
@@ -427,6 +429,7 @@ (define* (make-torbrowser #:key
                           ;; UNBUNDLE-ME! "media/libvorbis"
                           ;; UNBUNDLE-ME! "media/libtheora" ; wants theora-1.2, not yet released
                           ;; UNBUNDLE-ME! "media/libtremor"
+                          "media/libwebp"
                           ;; UNBUNDLE-ME! "gfx/harfbuzz"
                           ;; UNBUNDLE-ME! "gfx/graphite2"
                           "js/src/ctypes/libffi"
-- 
2.46.0