ffmpeg: use SDL2 instead of SDL for 3.2 and above
addresses issue #24658 special thanks to codyopel who suggested this solution!
This commit is contained in:
parent
7172556e8d
commit
dfd371de9b
@ -6,7 +6,7 @@
|
|||||||
# Build options
|
# Build options
|
||||||
, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
|
, runtimeCpuDetectBuild ? true # Detect CPU capabilities at runtime
|
||||||
, multithreadBuild ? true # Multithreading via pthreads/win32 threads
|
, multithreadBuild ? true # Multithreading via pthreads/win32 threads
|
||||||
, sdlSupport ? !stdenv.isArm, SDL ? null
|
, sdlSupport ? !stdenv.isArm, SDL ? null, SDL2 ? null
|
||||||
, vdpauSupport ? !stdenv.isArm, libvdpau ? null
|
, vdpauSupport ? !stdenv.isArm, libvdpau ? null
|
||||||
# Developer options
|
# Developer options
|
||||||
, debugDeveloper ? false
|
, debugDeveloper ? false
|
||||||
@ -128,7 +128,7 @@ stdenv.mkDerivation rec {
|
|||||||
(ifMinVer "2.4" "--enable-lzma")
|
(ifMinVer "2.4" "--enable-lzma")
|
||||||
(ifMinVer "2.2" (enableFeature openglSupport "opengl"))
|
(ifMinVer "2.2" (enableFeature openglSupport "opengl"))
|
||||||
(disDarwinOrArmFix (ifMinVer "0.9" "--enable-libpulse") "0.9" "--disable-libpulse")
|
(disDarwinOrArmFix (ifMinVer "0.9" "--enable-libpulse") "0.9" "--disable-libpulse")
|
||||||
(ifMinVer "2.5" (if sdlSupport then "--enable-sdl" else "")) # Only configurable since 2.5, auto detected before then
|
(ifMinVer "2.5" (if sdlSupport && reqMin "3.2" then "--enable-sdl2" else if sdlSupport then "--enable-sdl" else null)) # autodetected before 2.5, SDL1 support removed in 3.2 for SDL2
|
||||||
(ifMinVer "1.2" "--enable-libsoxr")
|
(ifMinVer "1.2" "--enable-libsoxr")
|
||||||
"--enable-libx264"
|
"--enable-libx264"
|
||||||
"--enable-libxvid"
|
"--enable-libxvid"
|
||||||
@ -155,7 +155,7 @@ stdenv.mkDerivation rec {
|
|||||||
++ optional isLinux alsaLib
|
++ optional isLinux alsaLib
|
||||||
++ optionals isDarwin darwinFrameworks
|
++ optionals isDarwin darwinFrameworks
|
||||||
++ optional vdpauSupport libvdpau
|
++ optional vdpauSupport libvdpau
|
||||||
++ optional sdlSupport SDL;
|
++ optional sdlSupport (if reqMin "3.2" then SDL2 else SDL);
|
||||||
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user