Merge pull request #88882 from Kiwi/mlv-app-init

mlv-app: init at 1.11
This commit is contained in:
Samuel Dionne-Riel 2020-05-31 02:59:55 -04:00 committed by GitHub
commit 2defee2981
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/platform/qt/MLVApp.pro b/platform/qt/MLVApp.pro
index ebdc552..3e37573 100644
--- a/platform/qt/MLVApp.pro
+++ b/platform/qt/MLVApp.pro
@@ -84,7 +84,7 @@ win32{
# Linux
linux-g++*{
- QMAKE_CFLAGS += -O3 -fopenmp -msse4.1 -mssse3 -msse3 -msse2 -msse -std=c99
+ QMAKE_CFLAGS += -O3 -fopenmp -march=native -std=c99
QMAKE_CXXFLAGS += -fopenmp
LIBS += -lgomp
}

View File

@ -0,0 +1,62 @@
{ fetchFromGitHub
, lib
, mkDerivation
, qmake
, qtbase
, qtmultimedia
, stdenv
}:
mkDerivation rec {
pname = "mlv-app";
version = "1.11";
src = fetchFromGitHub {
owner = "ilia3101";
repo = "MLV-App";
rev = "QTv${version}";
sha256 = "0s5sjdxi8a17ddvih4ara7mlb2xrc9xqx52jmhfaca6ng341gi4x";
};
patches = if stdenv.isAarch64 then ./aarch64-flags.patch else null;
installPhase = ''
runHook preInstall
install -Dm555 -t $out/bin mlvapp
install -Dm444 -t $out/share/applications mlvapp.desktop
install -Dm444 -t $out/share/icons/hicolor/512x512/apps RetinaIMG/MLVAPP.png
runHook postInstall
'';
qmakeFlags = [ "MLVApp.pro" ];
preConfigure = ''
export HOME=$TMPDIR
cd platform/qt/
'';
buildInputs = [
qtmultimedia
qtbase
];
dontWrapQtApps = true;
preFixup = ''
wrapQtApp "$out/bin/mlvapp"
'';
nativeBuildInputs = [
qmake
];
meta = with lib; {
description = "All in one MLV processing app that is pretty great";
homepage = "https://mlv.app";
license = licenses.gpl3;
maintainers = with maintainers; [
kiwi
];
platforms = platforms.linux;
};
}

View File

@ -13785,6 +13785,8 @@ in
mlt = callPackage ../development/libraries/mlt { ffmpeg = ffmpeg_4; };
mlv-app = libsForQt5.callPackage ../applications/video/mlv-app { };
mono-addins = callPackage ../development/libraries/mono-addins { };
movit = callPackage ../development/libraries/movit { };