mpv: Enable openal output and fix quoting issue

This commit is contained in:
Fredrik Fornwall 2016-08-26 18:50:24 -04:00
parent d8bd84fa02
commit 8d90dd4717
2 changed files with 23 additions and 3 deletions

View File

@ -7,9 +7,10 @@
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_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"
TERMUX_PKG_DEPENDS="ffmpeg, openal-soft"
termux_step_make_install () {
cd $TERMUX_PKG_SRCDIR
@ -25,7 +26,8 @@ termux_step_make_install () {
--disable-gl \
--disable-jpeg \
--disable-lcms2 \
--disable-libass
--disable-libass \
--enable-openal
./waf install
@ -36,6 +38,6 @@ termux_step_make_install () {
local SYSTEM_LIBFOLDER=lib64
if [ $TERMUX_ARCH_BITS = 32 ]; then SYSTEM_LIBFOLDER=lib; fi
echo "#!/bin/sh" > $TERMUX_PREFIX/bin/mpv
echo "LD_LIBRARY_PATH=/system/$SYSTEM_LIBFOLDER:$TERMUX_PREFIX/lib $TERMUX_PREFIX/libexec/mpv \$@" >> $TERMUX_PREFIX/bin/mpv
echo "LD_LIBRARY_PATH=/system/$SYSTEM_LIBFOLDER:$TERMUX_PREFIX/lib $TERMUX_PREFIX/libexec/mpv \"\$@\"" >> $TERMUX_PREFIX/bin/mpv
chmod +x $TERMUX_PREFIX/bin/mpv
}

18
packages/mpv/main.c.patch Normal file
View File

@ -0,0 +1,18 @@
We don't need a warning every time.
diff -u -r ../mpv-0.19.0/player/main.c ./player/main.c
--- ../mpv-0.19.0/player/main.c 2016-08-15 10:10:59.000000000 -0400
+++ ./player/main.c 2016-08-26 18:40:46.624646426 -0400
@@ -455,10 +455,12 @@
}
#endif
+#ifndef __ANDROID__
#if !HAVE_LIBASS
MP_WARN(mpctx, "Compiled without libass.\n");
MP_WARN(mpctx, "There will be no OSD and no text subtitles.\n");
#endif
+#endif
mpctx->osd = osd_create(mpctx->global);