Unverified Commit 30a4d0f4 authored by K900's avatar K900 Committed by GitHub
Browse files

Merge pull request #324552 from tobiasBora/kdenlive_glaxnimate_followuppr

kdenlive: minor refactoring
parents 3308d106 6e5b099e
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
{ mkDerivation
, substituteAll
, lib
, extra-cmake-modules
, breeze-icons
@@ -83,23 +84,25 @@ mkDerivation {
    wrapGAppsHook3
    glaxnimate
  ];

  # Both MLT and FFMpeg paths must be set or Kdenlive will complain that it
  # doesn't find them. See:
  # https://github.com/NixOS/nixpkgs/issues/83885
  patches = [ ./dependency-paths.patch ./dependency-paths-glaxnimate.patch ];

  # Needed to replace @glaxnimate@ by its path
  env = {
  patches = [
    (
      substituteAll {
        src = ./dependency-paths.patch;
        inherit mediainfo glaxnimate;
        ffmpeg = ffmpeg-full;
        mlt = mlt-full;
  };
      }
    )
  ];

  postPatch =
    # Module Qt5::Concurrent must be included in `find_package` before it is used.
    ''
      sed -i CMakeLists.txt -e '/find_package(Qt5 REQUIRED/ s|)| Concurrent)|'
      substituteAllInPlace src/kdenlivesettings.kcfg
    '';

  dontWrapGApps = true;
+0 −13
Original line number Diff line number Diff line
diff --git a/src/kdenlivesettings.kcfg b/src/kdenlivesettings.kcfg
index 86fa5ef..6aeccbe 100644
--- a/src/kdenlivesettings.kcfg
+++ b/src/kdenlivesettings.kcfg
@@ -657,7 +657,7 @@

     <entry name="glaxnimatePath" type="String">
       <label>Path to the Glaxnimate application.</label>
-      <default></default>
+      <default>@glaxnimate@/bin/glaxnimate</default>
     </entry>

     <entry name="nice_tasks" type="Bool">
 No newline at end of file
+9 −3
Original line number Diff line number Diff line
diff --git a/src/kdenlivesettings.kcfg b/src/kdenlivesettings.kcfg
index 029849e5f..8befe4888 100644
--- a/src/kdenlivesettings.kcfg
diff -u b/src/kdenlivesettings.kcfg b/src/kdenlivesettings.kcfg
--- b/src/kdenlivesettings.kcfg
+++ b/src/kdenlivesettings.kcfg
@@ -517,7 +517,7 @@
   <group name="env">
@@ -44,3 +43,10 @@ index 029849e5f..8befe4888 100644
     </entry>
 
     <entry name="processingthreads" type="Int">
@@ -657,5 +657,5 @@
     <entry name="glaxnimatePath" type="String">
       <label>Path to the Glaxnimate application.</label>
-      <default></default>
+      <default>@glaxnimate@/bin/glaxnimate</default>
     </entry>
     <entry name="nice_tasks" type="Bool">
+3 −8
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@
  frei0r,
  fetchpatch,
  glaxnimate,
  enableGlaxnimate ? true,
}:
mkKdeDerivation {
  pname = "kdenlive";
@@ -34,12 +33,7 @@ mkKdeDerivation {
      url = "https://invent.kde.org/multimedia/kdenlive/-/commit/8be0e826471332bb739344ebe1859298c46e9e0f.patch";
      hash = "sha256-5hLePH5NlO4Lx8lg9kjBPI4jTmP666RGplaVCmS/9TA=";
    })
  ] ++ lib.optional enableGlaxnimate (
    substituteAll {
      src = ./dependency-paths-glaxnimate.patch;
      inherit glaxnimate;
    }
  );
  ];

  extraBuildInputs = [
    qtsvg
@@ -51,7 +45,8 @@ mkKdeDerivation {
    mlt
    shared-mime-info
    libv4l
  ] ++ lib.optional enableGlaxnimate glaxnimate;
    glaxnimate
  ];

  qtWrapperArgs = [
    "--set FREI0R_PATH ${frei0r}/lib/frei0r-1"
+0 −13
Original line number Diff line number Diff line
diff --git a/src/kdenlivesettings.kcfg b/src/kdenlivesettings.kcfg
index 86fa5ef..6aeccbe 100644
--- a/src/kdenlivesettings.kcfg
+++ b/src/kdenlivesettings.kcfg
@@ -657,7 +657,7 @@

     <entry name="glaxnimatePath" type="String">
       <label>Path to the Glaxnimate application.</label>
-      <default></default>
+      <default>@glaxnimate@/bin/glaxnimate</default>
     </entry>

     <entry name="nice_tasks" type="Bool">
 No newline at end of file
Loading