diff options
author | John Kehayias <john.kehayias@protonmail.com> | 2025-01-08 01:31:06 -0500 |
---|---|---|
committer | John Kehayias <john.kehayias@protonmail.com> | 2025-01-13 21:04:23 -0500 |
commit | eaa94ed2551a4114b38c1ec10924c7a6d0bbbce9 (patch) | |
tree | e10eb10428b4f2e8ed4f173275205aaa202c712d | |
parent | 21574796e98f897d86a0909e31fbb321ebb6e399 (diff) |
gnu: godot: Enable wayland support.
* gnu/packages/game-development.scm (godot)[phases]: Update fix-dlopen-paths
to include wayland libraries. Add unbundle-wayland phase.
[inputs]: Add libdecor, wayland, and wayland-protocols.
Change-Id: I636f0fcc1eba5af98e2a8c6b9caa91d2e1aa4a97
-rw-r--r-- | gnu/packages/game-development.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 84c40e5165..899b72d741 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -2209,6 +2209,10 @@ scripted in a Python-like language.") "platform/linuxbsd/fontconfig-so_wrap.c" "platform/linuxbsd/libudev-so_wrap.c" "platform/linuxbsd/speechd-so_wrap.c" + "platform/linuxbsd/wayland/dynwrappers/libdecor-so_wrap.c" + "platform/linuxbsd/wayland/dynwrappers/wayland-client-core-so_wrap.c" + "platform/linuxbsd/wayland/dynwrappers/wayland-cursor-so_wrap.c" + "platform/linuxbsd/wayland/dynwrappers/wayland-egl-core-so_wrap.c" "platform/linuxbsd/x11/display_server_x11.cpp" "platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c" "platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c" @@ -2226,6 +2230,10 @@ scripted in a Python-like language.") "libfontconfig.so.1" "libudev.so.1" "libspeechd.so.2" + "libdecor-0.so.0" + "libwayland-client.so.0" + "libwayland-cursor.so.0" + "libwayland-egl.so.1" "libXrandr.so.2" "libXcursor.so.1" "libXext.so.6" @@ -2263,6 +2271,20 @@ scripted in a Python-like language.") (("./thirdparty/linuxbsd_headers/xkbcommon/xkbcommon-keysyms.h") (string-append (search-input-file inputs "include/xkbcommon/xkbcommon-keysyms.h")))))) + (add-after 'unbundle-xkbcommon 'unbundle-wayland + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "platform/linuxbsd/wayland/SCsub" + ;; This first file does not exist in a "protocol" directory of + ;; our wayland package, so this can't be grouped with the + ;; other substitutions. + (("#thirdparty/wayland/protocol/wayland.xml") + (search-input-file inputs "share/wayland/wayland.xml")) + (("#thirdparty/wayland-protocols") + (string-append + #$(this-package-input "wayland-protocols") "/share/wayland-protocols")) + (("#thirdparty/wayland") + (string-append + #$(this-package-input "wayland") "/share/wayland"))))) (replace 'install (lambda* (#:key inputs #:allow-other-keys) (let ((zenity (search-input-file inputs "bin/zenity"))) @@ -2311,6 +2333,7 @@ scripted in a Python-like language.") libpng harfbuzz icu4c + libdecor libtheora libvorbis libvpx @@ -2329,6 +2352,8 @@ scripted in a Python-like language.") pulseaudio speech-dispatcher vulkan-loader + wayland + wayland-protocols wslay zenity zlib |