ultrastardx: unpin FFmpeg 4

From <https://usdx.eu/news/2024/05/18/release.html>:

> * Support FFmpeg 7.0 #827
This commit is contained in:
Emily 2024-07-13 11:39:07 +01:00
parent f96d09865a
commit 4d77d90c23

View File

@ -13,7 +13,7 @@
, SDL2_gfx
, SDL2_mixer
, SDL2_net, SDL2_ttf
, ffmpeg_4
, ffmpeg_7
, sqlite
, zlib
, libX11
@ -25,7 +25,7 @@ let
sharedLibs = [
pcre portaudio freetype
SDL2 SDL2_image SDL2_gfx SDL2_mixer SDL2_net SDL2_ttf
sqlite lua zlib libX11 libGLU libGL ffmpeg_4
sqlite lua zlib libX11 libGLU libGL ffmpeg_7
];
in stdenv.mkDerivation rec {
@ -45,26 +45,6 @@ in stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace src/config.inc.in \
--subst-var-by libpcre_LIBNAME libpcre.so.1
# ultrastardx binds to libffmpeg (and sublibs), specifying a very restrictive
# upper bounds on the minor versions of .so files.
# We can assume ffmpeg_4 wont break any major ABI compatibility, since it's
# effectively EOL
sed \
-e 's/^ LIBAVCODEC_MAX_VERSION_MINOR.*$/ LIBAVCODEC_MAX_VERSION_MINOR = 1000;/' \
-i src/lib/ffmpeg-4.0/avcodec.pas
sed \
-e 's/^ LIBAVFORMAT_MAX_VERSION_MINOR.*$/ LIBAVFORMAT_MAX_VERSION_MINOR = 1000;/' \
-i src/lib/ffmpeg-4.0/avformat.pas
sed \
-e 's/^ LIBAVUTIL_MAX_VERSION_MINOR.*$/ LIBAVUTIL_MAX_VERSION_MINOR = 1000;/' \
-i src/lib/ffmpeg-4.0/avutil.pas
sed \
-e 's/^ LIBSWRESAMPLE_MAX_VERSION_MINOR.*$/ LIBSWRESAMPLE_MAX_VERSION_MINOR = 1000;/' \
-i src/lib/ffmpeg-4.0/swresample.pas
sed \
-e 's/^ LIBSWSCALE_MAX_VERSION_MINOR.*$/ LIBSWSCALE_MAX_VERSION_MINOR = 1000;/' \
-i src/lib/ffmpeg-4.0/swscale.pas
'';
preBuild =