linux-mingw: Update to ffmpeg 5.1.2 ...

... also use the SDL2 binary from the ownstuff repository
This commit is contained in:
liushuyu 2022-12-25 19:56:02 -07:00
parent 5796195306
commit 8ed0a5d2fe
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
2 changed files with 4 additions and 11 deletions

View File

@ -33,6 +33,7 @@ RUN useradd -m -u 1027 -s /bin/bash citra && mkdir -p /tmp/pkgs && \
mingw-w64-qt5-tools \
mingw-w64-qt5-winextras \
mingw-w64-tools \
mingw-w64-sdl2 \
mingw-w64-winpthreads \
mingw-w64-zlib \
mingw-w64-zstd \

View File

@ -2,19 +2,11 @@
# install pefile
pip3 install pefile
# SDL2
SDL2_VER='2.0.22'
wget "https://www.libsdl.org/release/SDL2-devel-${SDL2_VER}-mingw.tar.gz"
tar -zxf "SDL2-devel-${SDL2_VER}-mingw.tar.gz"
cd SDL2-${SDL2_VER}/
make install-package arch=x86_64-w64-mingw32 prefix=/usr/x86_64-w64-mingw32;
cd ..
# ffmpeg
FFMPEG_VER='4.4.2'
FILENAME="ffmpeg-n${FFMPEG_VER}-95-ga8f16d4eb4-win64-gpl-shared-${FFMPEG_VER%.*}"
FFMPEG_VER='5.1.2'
FILENAME="ffmpeg-n${FFMPEG_VER}-9-g807afa59cc-win64-gpl-shared-${FFMPEG_VER%.*}"
echo "Downloading ffmpeg (${FFMPEG_VER})..."
wget -c "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-10-03-12-38/${FILENAME}.zip"
wget -c "https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-12-25-12-38/${FILENAME}.zip"
7z x "${FILENAME}.zip"
echo "Copying ffmpeg ${FFMPEG_VER} files to sysroot..."