diff --git a/scripts/build-mpv.sh b/scripts/build-mpv.sh index c96e598..15371a2 100755 --- a/scripts/build-mpv.sh +++ b/scripts/build-mpv.sh @@ -4,7 +4,7 @@ set -ex CFLAGS="-fPIC -Os" export CCACHE_SLOPPINESS=time_macros - +export CCACHE=`which ccache` export CFLAGS="-D__DATE__= -D__TIME__= -D__TIMESTAMP__= $CFLAGS" @@ -27,7 +27,7 @@ git clone --depth 1 https://github.com/mpv-player/mpv.git mpv || true git clone --depth 1 https://github.com/libass/libass.git libass || true #echo "--enable-libaom" > ffmpeg_options - +echo "--extra-cflags=\'$CFLAGS\'" > ffmpeg_options echo "--enable-libmpv-static --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