summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authordan <i@dan.games>2024-11-17 13:33:21 +0800
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2025-01-15 11:14:18 +0800
commit90701760f885b23face8eeee314507cee0d14009 (patch)
treecef99005aa388277d4367424f0b01511d3963323 /gnu/packages
parenta51fc0d828e156551758220e44b060426fb4314c (diff)
gnu: Add sdl3.
* gnu/packages/sdl.scm (sdl3): New variable. Change-Id: I3e8c3c6290078da18139ce5375a8e1902a360f4a Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/sdl.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 227846c042..1f13c66749 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -146,6 +146,41 @@ hardware.")
(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 ;no check target
+ #: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")