guix-commits
[Top][All Lists]
Advanced

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

02/05: gnu: mlt: Rename to mlt-6.


From: guix-commits
Subject: 02/05: gnu: mlt: Rename to mlt-6.
Date: Tue, 6 Jul 2021 19:14:09 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit 0913843efc6531bdbed414321ad418a092ced7f6
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Tue Jul 6 18:36:25 2021 +0000

    gnu: mlt: Rename to mlt-6.
    
    * gnu/packages/video.scm (mlt): Rename to mlt-6.
    [build-system]: Use cmake-build-system.
    [arguments]: Remove #:make-flags. Adjust 'override-LDFLAGS phase.
    {#:configure-flags}: Remove --enable-gpl3 and --enable-gpl. Set
    "GTK2_GDKCONFIG_INCLUDE_DIR" and "GTK2_GLIBCONFIG_INCLUDE_DIR".
    (shotcut): Use mlt-6.
    * gnu/packages/animation.scm (synfig): Use mlt-6.
    * gnu/packages/kde.scm (kdenlive): Use mlt-6.
    
    This change is to add MLT 7 which will be done in the next commit.
    
    Signed-off-by: Leo Famulari <leo@famulari.name>
---
 gnu/packages/animation.scm |  2 +-
 gnu/packages/kde.scm       |  2 +-
 gnu/packages/video.scm     | 31 +++++++++++++++----------------
 3 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/animation.scm b/gnu/packages/animation.scm
index bf44f3b..653f37f 100644
--- a/gnu/packages/animation.scm
+++ b/gnu/packages/animation.scm
@@ -178,7 +178,7 @@ C++ @dfn{Standard Template Library} (STL).")
        ("imagemagick" ,imagemagick)
        ("libxml++" ,libxml++)
        ("libsigc++" ,libsigc++)
-       ("mlt" ,mlt)
+       ("mlt" ,mlt-6)
        ("openexr" ,openexr)
        ("pango" ,pango)))
     (native-inputs
diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index ebbae23..e81abc3 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -242,7 +242,7 @@ browser for easy news reading.")
          ("frei0r-plugins" ,frei0r-plugins)
          ("ffmpeg" ,ffmpeg)
          ("rttr" ,rttr)
-         ("mlt" ,mlt)
+         ("mlt" ,mlt-6)
          ("qtbase" ,qtbase-5)
          ("qtscript" ,qtscript)
          ("qtsvg" ,qtsvg)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index c02938d..de69ff1 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -3014,7 +3014,7 @@ from sites like Twitch.tv and pipes them into a video 
player of choice.")
        "This package provides a command-line interface for Twitch.tv")
       (license license:gpl3+))))
 
-(define-public mlt
+(define-public mlt-6
   (package
     (name "mlt")
     (version "6.26.1")
@@ -3027,25 +3027,24 @@ from sites like Twitch.tv and pipes them into a video 
player of choice.")
               (sha256
                (base32
                 "1gz79xvs5jrzqhwhfk0dqdd3xiavnjp4q957h7nb02rij32byb39"))))
-    (build-system gnu-build-system)
+    (build-system cmake-build-system)
     (arguments
-     `(#:tests? #f                      ; no tests
-       #:make-flags '(,(string-append "CC=" (cc-for-target))
-                      ,(string-append "CXX=" (cxx-for-target)))
+     `(#:tests? #f ;no tests
        #:configure-flags
-       (list "--enable-gpl3"
-             "--enable-gpl")
+       (list (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
+                            (assoc-ref %build-inputs "gtk+")
+                            "/lib/gtk-2.0/include")
+             (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
+                            (assoc-ref %build-inputs "glib")
+                            "/lib/glib-2.0/include"))
        #:phases
        (modify-phases %standard-phases
-         (add-after
-             'configure 'override-LDFLAGS
+         (add-before 'configure 'override-LDFLAGS
            (lambda* (#:key outputs #:allow-other-keys)
-             (substitute* "config.mak"
-               (("LDFLAGS\\+=")
-                (string-append "LDFLAGS+=-Wl,-rpath="
-                               (assoc-ref outputs "out")
-                               "/lib ")))
-             #t)))))
+             (setenv "LDFLAGS"
+                     (string-append
+                      "-Wl,-rpath="
+                      (assoc-ref outputs "out") "/lib")))))))
     (inputs
      `(("alsa-lib" ,alsa-lib)
        ("alsa-plugins" ,alsa-plugins "pulseaudio")
@@ -4705,7 +4704,7 @@ transitions, and effects and then export your film to 
many common formats.")
        ("lame" ,lame)
        ("libvpx" ,libvpx)
        ("libx264" ,libx264)
-       ("mlt" ,mlt)
+       ("mlt" ,mlt-6)
        ("pulseaudio" ,pulseaudio)
        ("qtbase" ,qtbase-5)
        ("qtdeclarative" ,qtdeclarative)



reply via email to

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