1
0
Fork 0
This commit is contained in:
NamedKitten 2018-10-14 21:50:14 +01:00
parent cf45e683b5
commit e39534a65e
2 changed files with 10 additions and 6 deletions

View file

@ -1,18 +1,20 @@
#!/bin/bash #!/bin/bash
set -e set -ex
CFLAGS="-fPIC -Os" CFLAGS="-fPIC -Os"
git clone --depth 1 https://github.com/mpv-player/mpv-build mpv-build || true rm -rf mpv-build && git clone --depth 1 https://github.com/mpv-player/mpv-build mpv-build
cd mpv-build cd mpv-build
git clone --depth 1 https://github.com/FFmpeg/FFmpeg.git ffmpeg || true rm -rf ffmpeg && git clone --depth 1 https://github.com/FFmpeg/FFmpeg.git ffmpeg
git clone --depth 1 https://github.com/mpv-player/mpv.git mpv || true rm -rf mpv && git clone --depth 1 https://github.com/mpv-player/mpv.git mpv
git clone --depth 1 https://github.com/libass/libass.git libass || true rm -rf libass && git clone --depth 1 https://github.com/libass/libass.git libass
echo "--enable-libmpv-shared --prefix=/usr" > mpv_options echo "--enable-libmpv-shared --prefix=/usr" > mpv_options
echo "--disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive --disable-zlib --disable-tv --disable-debug-build --disable-manpage-build --disable-vapoursynth --disable-libsmbclient" >> mpv_options echo "--disable-caca --disable-wayland --disable-gl-wayland --disable-libarchive --disable-zlib --disable-tv --disable-debug-build --disable-manpage-build --disable-vapoursynth --disable-libsmbclient" >> mpv_options
./build -j`nproc` ./rebuild -j`nproc`
sudo ./install sudo ./install
cd .. cd ..

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
set -ex
export PATH="/usr/lib/ccache:/usr/lib/ccache/bin:$PATH" export PATH="/usr/lib/ccache:/usr/lib/ccache/bin:$PATH"
bash scripts/build-mpv.sh bash scripts/build-mpv.sh