Subject: bug#74388: closed (Re: [bug#74388] [PATCH] gnu: Add sdl3.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 15 Jan 2025 03:35:02 +0000

Your bug report

#74388: [PATCH] gnu: Add sdl3.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
74388: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74388
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#74388] [PATCH] gnu: Add sdl3.
From: Z572 <[email-masked]>
To: dan <[email-masked]>
Cc: [email-masked]
Date: Wed, 15 Jan 2025 11:33:41 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

dan <[email-masked]> writes:

> * gnu/packages/sdl.scm (sdl3): New variable.
>
> Change-Id: I3e8c3c6290078da18139ce5375a8e1902a360f4a
> ---
>  gnu/packages/sdl.scm | 34 ++++++++++++++++++++++++++++++++++
>  1 file changed, 34 insertions(+)
>
> diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
> index 227846c042..0ed9d24f80 100644
> --- a/gnu/packages/sdl.scm
> +++ b/gnu/packages/sdl.scm
> @@ -146,6 +146,40 @@ (define-public sdl2
>      (home-page "https://libsdl.org/")
>      (license license:bsd-3)))
>  
> +(define-public sdl3
> +  (package
> +    (inherit sdl2)
> +    (name "sdl3")
> +    (version "3.1.6")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/libsdl-org/SDL")
> +                    ;; Change to release- when 3.2.0 is released.
> +                    (commit (string-append "preview-" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "1plyp0x8rvfwxpmfdjndj78kbfaisljjza700mvks4qyjjvmk2rh"))))
> +    (build-system cmake-build-system)
> +    (arguments
> +     (list
> +      #:tests? #f
> +      #:configure-flags
> +      #~(list "-DSDL_SHARED=ON"
> +              "-DSDL_ALSA_SHARED=OFF"
> +              "-DSDL_PULSEAUDIO_SHARED=OFF"
> +              "-DSDL_X11_SHARED=OFF"
> +              "-DSDL_WAYLAND_SHARED=OFF"
> +              "-DSDL_KMSDRM=ON"
> +              "-DSDL_KMSDRM_SHARED=OFF"
> +              (string-append "-DCMAKE_INSTALL_RPATH="
> +                             (string-join
> +                              (list
> +                               (string-append #$(this-package-input "eudev") "/lib")
> +                               (string-append #$(this-package-input "vulkan-loader") "/lib"))
> +                              ";")))))))
> +
>  (define-public sdl12-compat
>    (package
>      (name "sdl12-compat")
>
> base-commit: 0e1ffbc7f5f060f89c890472377a6102f27f6e9b

pushed, closing. And update to 3.1.8.

Subject: [PATCH] gnu: Add sdl3.
From: dan <[email-masked]>
To: [email-masked]
Date: Sun, 17 Nov 2024 13:33:21 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/sdl.scm (sdl3): New variable.

Change-Id: I3e8c3c6290078da18139ce5375a8e1902a360f4a
---
 gnu/packages/sdl.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 227846c042..0ed9d24f80 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -146,6 +146,40 @@ (define-public sdl2
     (home-page "https://libsdl.org/")
     (license license:bsd-3)))
 
+(define-public sdl3
+  (package
+    (inherit sdl2)
+    (name "sdl3")
+    (version "3.1.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/libsdl-org/SDL")
+                    ;; Change to release- when 3.2.0 is released.
+                    (commit (string-append "preview-" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1plyp0x8rvfwxpmfdjndj78kbfaisljjza700mvks4qyjjvmk2rh"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:tests? #f
+      #:configure-flags
+      #~(list "-DSDL_SHARED=ON"
+              "-DSDL_ALSA_SHARED=OFF"
+              "-DSDL_PULSEAUDIO_SHARED=OFF"
+              "-DSDL_X11_SHARED=OFF"
+              "-DSDL_WAYLAND_SHARED=OFF"
+              "-DSDL_KMSDRM=ON"
+              "-DSDL_KMSDRM_SHARED=OFF"
+              (string-append "-DCMAKE_INSTALL_RPATH="
+                             (string-join
+                              (list
+                               (string-append #$(this-package-input "eudev") "/lib")
+                               (string-append #$(this-package-input "vulkan-loader") "/lib"))
+                              ";")))))))
+
 (define-public sdl12-compat
   (package
     (name "sdl12-compat")

base-commit: 0e1ffbc7f5f060f89c890472377a6102f27f6e9b
-- 
2.46.0