guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 7e1b139cdd044b400b8f85ff2651bbc1dac0e971
Author: Sughosha <[email protected]>
AuthorDate: Thu Dec 5 21:50:20 2024 +0530

    gnu: lmms: Enable STK Mallets and GIG Player.
    
    * gnu/packages/music.scm (lmms)[inputs]: Add libgig and stk.
    [arguments]<#:phases>: Add patch-stk-path.
    
    Change-Id: I8116d603399f75571dfc37bc43760334df3a764e
---
 gnu/packages/music.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 677d8005c7..ebebbdeb0d 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -5369,6 +5369,12 @@ and more.  Full API documentation and examples are 
included.")
             (lambda* (#:key inputs #:allow-other-keys)
               (copy-recursively (assoc-ref inputs "rpmalloc")
                                 "src/3rdparty/rpmalloc/rpmalloc")))
+          (add-after 'unpack 'patch-stk-path
+                (lambda* (#:key inputs #:allow-other-keys)
+                  (substitute* "cmake/modules/FindSTK.cmake"
+                    (("/usr") (assoc-ref inputs "stk")))
+                  (substitute* "src/core/ConfigManager.cpp"
+                    (("/usr") (assoc-ref inputs "stk")))))
           (add-before 'configure 'set-ldflags
             (lambda _
               (setenv "LDFLAGS"
@@ -5402,6 +5408,7 @@ and more.  Full API documentation and examples are 
included.")
            jack-2
            ladspa
            lame
+           libgig
            libogg
            libsamplerate
            libsndfile
@@ -5412,7 +5419,8 @@ and more.  Full API documentation and examples are 
included.")
            pulseaudio
            qtbase-5
            qtx11extras
-           sdl))
+           sdl
+           stk))
     (home-page "https://lmms.io/";)
     (synopsis "Music composition tool")
     (description "LMMS is a digital audio workstation.  It includes tools for

Reply via email to