libretro.ppsspp: update to v1.11 and fix build againt ffmpeg 4.4
(cherry picked from commit a5a5088eae8955bc781f240af54880fa78232a2f)
This commit is contained in:
parent
0ae5309111
commit
e3f7168d86
|
@ -1,6 +1,6 @@
|
||||||
{ lib, stdenv, fetchgit, fetchFromGitHub, fetchFromGitLab, fetchpatch, cmake, pkg-config, makeWrapper, python27, python37, retroarch
|
{ lib, stdenv, fetchgit, fetchFromGitHub, fetchFromGitLab, fetchpatch, cmake, pkg-config, makeWrapper, python27, python3, retroarch
|
||||||
, alsaLib, fluidsynth, curl, hidapi, libGLU, gettext, glib, gtk2, portaudio, SDL, SDL_net, SDL2, SDL2_image, libGL
|
, alsaLib, fluidsynth, curl, hidapi, libGLU, gettext, glib, gtk2, portaudio, SDL, SDL_net, SDL2, SDL2_image, libGL
|
||||||
, ffmpeg_3, pcre, libevdev, libpng, libjpeg, libzip, udev, libvorbis, snappy, which, hexdump
|
, ffmpeg, pcre, libevdev, libpng, libjpeg, libzip, udev, libvorbis, snappy, which, hexdump
|
||||||
, miniupnpc, sfml, xorg, zlib, nasm, libpcap, boost, icu, openssl
|
, miniupnpc, sfml, xorg, zlib, nasm, libpcap, boost, icu, openssl
|
||||||
, buildPackages }:
|
, buildPackages }:
|
||||||
|
|
||||||
|
@ -831,15 +831,24 @@ in with lib.licenses;
|
||||||
|
|
||||||
ppsspp = mkLibRetroCore {
|
ppsspp = mkLibRetroCore {
|
||||||
core = "ppsspp";
|
core = "ppsspp";
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/hrydgard/ppsspp";
|
owner = "hrydgard";
|
||||||
rev = "bf1777f7d3702e6a0f71c7ec1fc51976e23c2327";
|
repo = "ppsspp";
|
||||||
sha256 = "17sym0vk72lzbh9a1501mhw98c78x1gq7k1fpy69nvvb119j37wa";
|
rev = "v1.11";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
sha256 = "sha256-vfp/vacIItlPP5dR7jzDT7oOUNFnjvvdR46yi79EJKU=";
|
||||||
};
|
};
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix_ffmpeg_4.4.patch"; # to be removed with next release
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/hrydgard/ppsspp/pull/14176.patch";
|
||||||
|
sha256 = "sha256-ecDoOydaLfL6+eFpahcO1TnRl866mZZVHlr6Qrib1mo=";
|
||||||
|
})
|
||||||
|
];
|
||||||
description = "ppsspp libretro port";
|
description = "ppsspp libretro port";
|
||||||
license = gpl2;
|
license = gpl2;
|
||||||
extraNativeBuildInputs = [ cmake pkg-config ];
|
extraNativeBuildInputs = [ cmake pkg-config python3 ];
|
||||||
extraBuildInputs = [ libGLU libGL libzip ffmpeg_3 python37 snappy xorg.libX11 ];
|
extraBuildInputs = [ libGLU libGL libzip ffmpeg snappy xorg.libX11 ];
|
||||||
makefile = "Makefile";
|
makefile = "Makefile";
|
||||||
cmakeFlags = [ "-DLIBRETRO=ON -DUSE_SYSTEM_FFMPEG=ON -DUSE_SYSTEM_SNAPPY=ON -DUSE_SYSTEM_LIBZIP=ON -DOpenGL_GL_PREFERENCE=GLVND" ];
|
cmakeFlags = [ "-DLIBRETRO=ON -DUSE_SYSTEM_FFMPEG=ON -DUSE_SYSTEM_SNAPPY=ON -DUSE_SYSTEM_LIBZIP=ON -DOpenGL_GL_PREFERENCE=GLVND" ];
|
||||||
postBuild = "mv lib/ppsspp_libretro${stdenv.hostPlatform.extensions.sharedLibrary} ppsspp_libretro${stdenv.hostPlatform.extensions.sharedLibrary}";
|
postBuild = "mv lib/ppsspp_libretro${stdenv.hostPlatform.extensions.sharedLibrary} ppsspp_libretro${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||||
|
|
Loading…
Reference in New Issue