Merge pull request #15 from liushuyu/mf
linux-mingw: exchange ffmpeg for medfound
This commit is contained in:
commit
055f5642ac
@ -2,18 +2,13 @@
|
|||||||
# install pefile
|
# install pefile
|
||||||
pip3 install pefile
|
pip3 install pefile
|
||||||
|
|
||||||
# ffmpeg
|
MINGW_URL='https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z/download'
|
||||||
FFMPEG_VER='4.1'
|
TARGET_DIR='mingw64/x86_64-w64-mingw32/lib/'
|
||||||
for i in 'shared' 'dev'; do
|
|
||||||
echo "Downloading ffmpeg (${i})..."
|
|
||||||
wget -q -c "https://ffmpeg.zeranoe.com/builds/win64/${i}/ffmpeg-${FFMPEG_VER}-win64-${i}.zip"
|
|
||||||
7z x "ffmpeg-${FFMPEG_VER}-win64-${i}.zip" > /dev/null
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Copying ffmpeg ${FFMPEG_VER} files to sysroot..."
|
echo 'Downloading MinGW replacement binaries...'
|
||||||
cp -v "ffmpeg-${FFMPEG_VER}-win64-shared"/bin/*.dll /usr/x86_64-w64-mingw32/lib/
|
wget -q "${MINGW_URL}" -O 'mingw.7z'
|
||||||
cp -vr "ffmpeg-${FFMPEG_VER}-win64-dev"/include /usr/x86_64-w64-mingw32/
|
7z x 'mingw.7z' "${TARGET_DIR}"lib{mf,mfplat,mfuuid}.a
|
||||||
cp -v "ffmpeg-${FFMPEG_VER}-win64-dev"/lib/*.{a,def} /usr/x86_64-w64-mingw32/lib/
|
cp -rv "${TARGET_DIR}"/* '/usr/x86_64-w64-mingw32/lib/'
|
||||||
|
|
||||||
# remove the directory
|
# remove the directory
|
||||||
ABS_PATH="$(readlink -f $0)"
|
ABS_PATH="$(readlink -f $0)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user