From 4493b981a13727bce4d6a4fb80e7012c3b6a4b5f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Wed, 1 Mar 2017 17:50:58 +0100 Subject: [PATCH] mpv: Enable lua --- packages/mpv/build.sh | 7 ++++--- packages/mpv/waftools-checks-custom.py.patch | 12 ++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 packages/mpv/waftools-checks-custom.py.patch diff --git a/packages/mpv/build.sh b/packages/mpv/build.sh index 8bc4d9c71..7840aa131 100644 --- a/packages/mpv/build.sh +++ b/packages/mpv/build.sh @@ -1,11 +1,11 @@ TERMUX_PKG_HOMEPAGE=https://mpv.io/ TERMUX_PKG_DESCRIPTION="Command-line media player" TERMUX_PKG_VERSION=0.24.0 -TERMUX_PKG_REVISION=2 +TERMUX_PKG_REVISION=3 TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=a41854fa0ac35b9c309ad692aaee67c8d4495c3546f11cb4cdd0a124195d3f15 TERMUX_PKG_FOLDERNAME=mpv-${TERMUX_PKG_VERSION} -TERMUX_PKG_DEPENDS="ffmpeg, openal-soft" +TERMUX_PKG_DEPENDS="ffmpeg, openal-soft, liblua" TERMUX_PKG_RM_AFTER_INSTALL="share/icons share/applications" termux_step_make_install () { @@ -19,9 +19,10 @@ termux_step_make_install () { --disable-jpeg \ --disable-lcms2 \ --disable-libass \ - --disable-lua \ + --enable-lua \ --enable-openal \ --disable-caca \ + --disable-alsa \ --disable-x11 ./waf install diff --git a/packages/mpv/waftools-checks-custom.py.patch b/packages/mpv/waftools-checks-custom.py.patch new file mode 100644 index 000000000..7235fbaa4 --- /dev/null +++ b/packages/mpv/waftools-checks-custom.py.patch @@ -0,0 +1,12 @@ +diff -u -r ../mpv-0.24.0/waftools/checks/custom.py ./waftools/checks/custom.py +--- ../mpv-0.24.0/waftools/checks/custom.py 2017-02-12 02:31:16.000000000 +0100 ++++ ./waftools/checks/custom.py 2017-02-28 16:53:22.687772818 +0100 +@@ -61,7 +61,7 @@ + ( '51obsd', 'lua51 >= 5.1.0'), # OpenBSD + ( '51deb', 'lua5.1 >= 5.1.0'), # debian + ( '51fbsd', 'lua-5.1 >= 5.1.0'), # FreeBSD +- ( '52', 'lua >= 5.2.0 lua < 5.3.0' ), ++ ( '52', 'lua >= 5.2.0' ), + ( '52arch', 'lua52 >= 5.2.0'), # Arch + ( '52deb', 'lua5.2 >= 5.2.0'), # debian + ( '52fbsd', 'lua-5.2 >= 5.2.0'), # FreeBSD