Subject: [bug#69610] [PATCH v2 1/3] gnu: Add sdl2-mixer-x.

From: Adam Faiz <[email-masked]>
Date: Fri, 8 Mar 2024 10:12:55 +0800

>From d136acd202005516594e5576d5a88118e76f47bf Mon Sep 17 00:00:00 2001
Message-ID: <d[email-masked]>
From: AwesomeAdam54321 <[email-masked]>
Date: Thu, 7 Mar 2024 14:07:15 +0800
Subject: [PATCH v2 1/3] gnu: Add sdl2-mixer-x.

* gnu/packages/sdl.scm (sdl2-mixer-x): New variable.
---
 gnu/packages/sdl.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 3a4aafcaa7..c7721aa379 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -43,6 +43,7 @@ (define-module (gnu packages sdl)
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (guix utils)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system trivial)
@@ -528,6 +529,26 @@ (define-public sdl2-mixer
        (append flac fluidsynth libmodplug libvorbis mpg123 opusfile)))
     (properties '((upstream-name . "SDL2_mixer")))))
 
+(define-public sdl2-mixer-x
+  (package
+    (inherit sdl2-mixer)
+    (name "sdl2-mixer-x")
+    (version "2.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/WohlSoft/SDL-Mixer-X")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "17l0l89q4az6lmmvpqpymjgs64nc52r140301dcf54vsh76mzd2c"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list #:tests? #f                     ;no tests
+           #:configure-flags
+           #~(list "-DBUILD_SHARED_LIBS=ON")))))
+
 (define-public sdl2-net
   (package (inherit sdl-net)
     (name "sdl2-net")

base-commit: f18d13b5f89c161c6ee88d15ecdaa8d973ee4503
-- 
2.41.0