From: dan <i@dan.games>
To: 74388@debbugs.gnu.org
Subject: [bug#74388] [PATCH] gnu: Add sdl3.
Date: Sun, 17 Nov 2024 13:33:21 +0800 [thread overview]
Message-ID: <a939f0dabea7bb598ff9add1fdc0d24d2d433da4.1731821565.git.i@dan.games> (raw)
* 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
reply other threads:[~2024-11-17 5:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a939f0dabea7bb598ff9add1fdc0d24d2d433da4.1731821565.git.i@dan.games \
--to=i@dan.games \
--cc=74388@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.