Subject: [bug#66724] [PATCH 2/4] gnu: retroarch: Use more system libraries.

From: [email-masked]
Date: Tue, 24 Oct 2023 20:38:12 +0800

From: 宋文武 <[email-masked]>

* gnu/packages/emulators.scm (retroarch)[inputs]: Add flac, glslang,
mbedtls-apache, openssl, spirv-headers and spirv-tools.
[arguments]: Add configure flags to disable bundled libraries.

Change-Id: I2a833da5e5b28469e4677b3c24608e71949308a7
---
 gnu/packages/emulators.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index e7ec4b4f9b..20a0caf469 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -1471,22 +1471,32 @@ (define-public retroarch
                  ;; Non-free software are available through the core updater,
                  ;; disable it.  See <https://issues.guix.gnu.org/38360>.
                  "--disable-update_cores"
-                 "--disable-builtinzlib")))))))
+                 "--disable-builtinmbedtls"
+                 "--disable-builtinbearssl"
+                 "--disable-builtinzlib"
+                 "--disable-builtinflac"
+                 "--disable-builtinglslang")))))))
     (inputs
      `(("alsa-lib" ,alsa-lib)
        ("ffmpeg" ,ffmpeg-4)
+       ("flac" ,flac)
        ("freetype" ,freetype)
+       ("glslang" ,glslang)
        ("libxinerama" ,libxinerama)
        ("libxkbcommon" ,libxkbcommon)
        ("libxml2" ,libxml2)
        ("libxrandr" ,libxrandr)
        ("libxv" ,libxv)
+       ("mbedtls-apache" ,mbedtls-apache)
        ("mesa" ,mesa)
        ("openal" ,openal)
+       ("openssl" ,openssl)
        ("pulseaudio" ,pulseaudio)
        ("python" ,python)
        ("qtbase" ,qtbase-5)
        ("sdl" ,sdl2)
+       ("spirv-headers" ,spirv-headers)
+       ("spirv-tools" ,spirv-tools)
        ("udev" ,eudev)
        ("vulkan-loader" ,vulkan-loader)
        ("wayland" ,wayland)
-- 
2.41.0