megasync: 4.9.0.0 -> 4.9.1.0 (#302394)
* megasync: 4.9.0.0 -> 4.9.1.0 and removed freeimage dependency Resolves: #290949 Signed-off-by: Michal Minář <mm@michojel.cz> * removed orphaned patch Signed-off-by: Michal Minář <mm@michojel.cz> --------- Signed-off-by: Michal Minář <mm@michojel.cz>
This commit is contained in:
parent
b8dc3e8f5f
commit
c3160517fc
@ -8,7 +8,6 @@
|
|||||||
, doxygen
|
, doxygen
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, ffmpeg
|
, ffmpeg
|
||||||
, freeimage
|
|
||||||
, libmediainfo
|
, libmediainfo
|
||||||
, libraw
|
, libraw
|
||||||
, libsodium
|
, libsodium
|
||||||
@ -28,13 +27,13 @@
|
|||||||
}:
|
}:
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "megasync";
|
pname = "megasync";
|
||||||
version = "4.9.0.0";
|
version = "4.9.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "meganz";
|
owner = "meganz";
|
||||||
repo = "MEGAsync";
|
repo = "MEGAsync";
|
||||||
rev = "v${version}_Linux";
|
rev = "v${version}_Linux";
|
||||||
sha256 = "sha256-s0E8kJ4PJmhaxVcWPCyCk/KbcX4V3IESdZhSosPlZuM=";
|
sha256 = "sha256-Y1nfY5iP64iSCYwzqxbjZAQNHyj4yVbSudSInm+yJzY=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -54,7 +53,6 @@ mkDerivation rec {
|
|||||||
cryptopp
|
cryptopp
|
||||||
curl
|
curl
|
||||||
ffmpeg
|
ffmpeg
|
||||||
freeimage
|
|
||||||
libmediainfo
|
libmediainfo
|
||||||
libraw
|
libraw
|
||||||
libsodium
|
libsodium
|
||||||
@ -72,7 +70,6 @@ mkDerivation rec {
|
|||||||
./noinstall-distro-version.patch
|
./noinstall-distro-version.patch
|
||||||
# megasync target is not part of the install rule thanks to a commented block
|
# megasync target is not part of the install rule thanks to a commented block
|
||||||
./install-megasync.patch
|
./install-megasync.patch
|
||||||
./ffmpeg_44.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -98,7 +95,7 @@ mkDerivation rec {
|
|||||||
"--with-cryptopp"
|
"--with-cryptopp"
|
||||||
"--with-curl"
|
"--with-curl"
|
||||||
"--with-ffmpeg"
|
"--with-ffmpeg"
|
||||||
"--with-freeimage"
|
"--without-freeimage"
|
||||||
"--without-readline"
|
"--without-readline"
|
||||||
"--without-termcap"
|
"--without-termcap"
|
||||||
"--with-sodium"
|
"--with-sodium"
|
||||||
@ -111,10 +108,10 @@ mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
qmake CONFIG+="release" MEGA.pro
|
qmake CONFIG+="nofreeimage release" MEGA.pro
|
||||||
pushd MEGASync
|
pushd MEGASync
|
||||||
lrelease MEGASync.pro
|
lrelease MEGASync.pro
|
||||||
DESKTOP_DESTDIR="$out" qmake PREFIX="$out" -o Makefile MEGASync.pro CONFIG+=release
|
DESKTOP_DESTDIR="$out" qmake PREFIX="$out" -o Makefile MEGASync.pro CONFIG+="nofreeimage release"
|
||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
@ -124,6 +121,6 @@ mkDerivation rec {
|
|||||||
homepage = "https://mega.nz/";
|
homepage = "https://mega.nz/";
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||||
maintainers = [ maintainers.michojel ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
Index: megasync-4.6.1.0/src/MEGASync/mega/src/gfx/freeimage.cpp
|
|
||||||
===================================================================
|
|
||||||
--- megasync-4.6.1.0.orig/src/MEGASync/mega/src/gfx/freeimage.cpp
|
|
||||||
+++ megasync-4.6.1.0/src/MEGASync/mega/src/gfx/freeimage.cpp
|
|
||||||
@@ -253,7 +253,8 @@ bool GfxProcFreeImage::readbitmapFfmpeg(
|
|
||||||
|
|
||||||
// Force seeking to key frames
|
|
||||||
formatContext->seek2any = false;
|
|
||||||
- videoStream->skip_to_keyframe = true;
|
|
||||||
+ // no longer exposed in ffmpeg 4.4; the line above should be sufficient
|
|
||||||
+ //videoStream->skip_to_keyframe = true;
|
|
||||||
if (decoder->capabilities & CAP_TRUNCATED)
|
|
||||||
{
|
|
||||||
codecContext->flags |= CAP_TRUNCATED;
|
|
Loading…
Reference in New Issue
Block a user