X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/8d90dd47175333366be9ae6eed7f2d1350c47740..b90bae2100e56f8102ca10a41e76375122922ec7:/packages/mpv/build.sh diff --git a/packages/mpv/build.sh b/packages/mpv/build.sh index e75f1111..e7542a19 100644 --- a/packages/mpv/build.sh +++ b/packages/mpv/build.sh @@ -1,13 +1,6 @@ -# Does not work with libjpeg-turbo or libpng installed, since -# linking against libOpenSLES causes indirect linkage against -# libskia.so, which links against the platform libjpeg.so and -# libpng.so, which are not compatible with the Termux ones. -# -# On Android N also liblzma seems to conflict. TERMUX_PKG_HOMEPAGE=https://mpv.io/ TERMUX_PKG_DESCRIPTION="Command-line media player" -TERMUX_PKG_VERSION=0.19.0 -TERMUX_PKG_BUILD_REVISION=1 +TERMUX_PKG_VERSION=0.20.0 TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_FOLDERNAME=mpv-${TERMUX_PKG_VERSION} TERMUX_PKG_DEPENDS="ffmpeg, openal-soft" @@ -15,10 +8,6 @@ TERMUX_PKG_DEPENDS="ffmpeg, openal-soft" termux_step_make_install () { cd $TERMUX_PKG_SRCDIR - # Setup rst2man for man page generation of mpv.1: - pip install docutils - export RST2MAN=$HOME/.local/bin/rst2man.py - ./bootstrap.py ./waf configure \ @@ -31,7 +20,16 @@ termux_step_make_install () { ./waf install + # Use opensles audio out be default: + mkdir -p $TERMUX_PREFIX/etc/mpv + echo "ao=opensles" > $TERMUX_PREFIX/etc/mpv/mpv.conf + # Try to work around OpenSL ES library clashes: + # Linking against libOpenSLES causes indirect linkage against + # libskia.so, which links against the platform libjpeg.so and + # libpng.so, which are not compatible with the Termux ones. + # + # On Android N also liblzma seems to conflict. mkdir -p $TERMUX_PREFIX/libexec mv $TERMUX_PREFIX/bin/mpv $TERMUX_PREFIX/libexec