guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: mlt: Wrap FREI0R_PATH and LADSPA_PATH.


From: guix-commits
Subject: 01/03: gnu: mlt: Wrap FREI0R_PATH and LADSPA_PATH.
Date: Thu, 3 Mar 2022 20:29:14 -0500 (EST)

monego pushed a commit to branch master
in repository guix.

commit 00a05e481d6dac46b34cc598c0394eb8e351c304
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Wed Feb 2 11:31:36 2022 -0300

    gnu: mlt: Wrap FREI0R_PATH and LADSPA_PATH.
    
    * gnu/packages/video.scm (mlt)[arguments]: Use gexps. Add 'wrap-executable
    phase.
    [inputs]: Add bash-minimal.
---
 gnu/packages/video.scm | 34 +++++++++++++++++++++++++---------
 1 file changed, 25 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 80d610a11b..023efd8852 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -3221,18 +3221,34 @@ from sites like Twitch.tv and pipes them into a video 
player of choice.")
         (base32 "17d4gs46ca3n0qg6z69hl6mmllnqj2id8ccrv8fyz8c5zm55ghqm"))))
     (build-system cmake-build-system)
     (arguments
-     `(#:tests? #f ;requires "Kwalify"
-       #:phases
-       (modify-phases %standard-phases
-         (add-before 'configure 'override-LDFLAGS
-           (lambda* (#:key outputs #:allow-other-keys)
-             (setenv "LDFLAGS"
-                     (string-append
-                      "-Wl,-rpath="
-                      (assoc-ref outputs "out") "/lib")))))))
+     (list
+      #:tests? #f                       ;requires "Kwalify"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'configure 'override-LDFLAGS
+            (lambda _
+              (setenv "LDFLAGS"
+                      (string-append "-Wl,-rpath=" #$output "/lib"))))
+          (add-after 'install 'wrap-executable
+            (lambda _
+              (let* ((frei0r #$(this-package-input "frei0r-plugins"))
+                     (ladspa #$(this-package-input "ladspa"))
+                     ;; In MLT 7, 'melt' symlinks to 'melt-7'.  Try to keep
+                     ;; compatibility with MLT 6 where it's only 'melt'.
+                     (major #$(version-major version))
+                     (exec (if (file-exists?
+                                (string-append #$output "/bin/melt-" major))
+                               (string-append "melt-" major)
+                               "melt")))
+                (wrap-program (string-append #$output "/bin/" exec)
+                  `("FREI0R_PATH" ":" =
+                    (,(string-append frei0r "/lib/frei0r-1")))
+                  `("LADSPA_PATH" ":" =
+                    (,(string-append ladspa "/lib/ladspa"))))))))))
     (inputs
      (list alsa-lib
            `(,alsa-plugins "pulseaudio")
+           bash-minimal
            ffmpeg
            fftw
            frei0r-plugins



reply via email to

[Prev in Thread] Current Thread [Next in Thread]