Merge pull request #123843 from lunik1/ppsspp-ffmpeg-44-fix

ppsspp: fix build against ffmpeg 4.4
This commit is contained in:
Anderson Torres 2021-06-16 15:28:47 -03:00 committed by GitHub
commit 78a6cf423d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
{ mkDerivation
, fetchFromGitHub
, fetchpatch
, SDL2
, cmake
, ffmpeg
@ -26,6 +27,15 @@ mkDerivation rec {
sha256 = "sha256-vfp/vacIItlPP5dR7jzDT7oOUNFnjvvdR46yi79EJKU=";
};
patches = [
# fix compability with ffmpeg 4.4, remove on next release after 1.11
(fetchpatch {
name = "fix_ffmpeg_4.4.patch";
url = "https://patch-diff.githubusercontent.com/raw/hrydgard/ppsspp/pull/14176.patch";
sha256 = "sha256-ecDoOydaLfL6+eFpahcO1TnRl866mZZVHlr6Qrib1mo=";
})
];
postPatch = ''
substituteInPlace git-version.cmake --replace unknown ${src.rev}
substituteInPlace UI/NativeApp.cpp --replace /usr/share $out/share