2016-08-23 21:48:58 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://mpv.io/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Command-line media player"
|
2022-03-23 00:26:39 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2022-01-04 01:22:08 +01:00
|
|
|
TERMUX_PKG_VERSION=0.34.1
|
2022-04-11 04:38:35 +02:00
|
|
|
TERMUX_PKG_REVISION=3
|
2016-08-23 21:48:58 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2022-01-04 01:22:08 +01:00
|
|
|
TERMUX_PKG_SHA256=32ded8c13b6398310fa27767378193dc1db6d78b006b70dbcbd3123a1445e746
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2019-10-07 15:27:31 +02:00
|
|
|
TERMUX_PKG_DEPENDS="ffmpeg, libandroid-glob, libandroid-support, libarchive, libcaca, libiconv, liblua52, pulseaudio, openal-soft, zlib"
|
2017-02-04 01:31:44 +01:00
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/icons share/applications"
|
2016-08-23 21:48:58 +02:00
|
|
|
|
2017-07-27 03:18:14 +02:00
|
|
|
termux_step_pre_configure() {
|
|
|
|
LDFLAGS+=" -landroid-glob"
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_make_install() {
|
2016-08-23 21:48:58 +02:00
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
|
|
|
|
./bootstrap.py
|
|
|
|
|
|
|
|
./waf configure \
|
|
|
|
--prefix=$TERMUX_PREFIX \
|
|
|
|
--disable-gl \
|
|
|
|
--disable-jpeg \
|
|
|
|
--disable-lcms2 \
|
2019-05-02 17:22:51 +02:00
|
|
|
--enable-libarchive \
|
2020-05-11 15:38:21 +02:00
|
|
|
--enable-libmpv-shared \
|
2019-03-18 22:25:02 +01:00
|
|
|
--enable-lua \
|
2018-08-06 19:41:49 +02:00
|
|
|
--enable-pulse \
|
2016-10-30 15:22:47 +01:00
|
|
|
--enable-openal \
|
2019-06-30 18:51:09 +02:00
|
|
|
--enable-caca \
|
2017-03-01 17:50:58 +01:00
|
|
|
--disable-alsa \
|
2018-07-24 19:32:17 +02:00
|
|
|
--disable-x11
|
2016-08-23 21:48:58 +02:00
|
|
|
|
2018-06-26 02:48:48 +02:00
|
|
|
./waf -v install
|
2016-08-26 11:49:20 +02:00
|
|
|
|
2016-08-27 18:15:46 +02:00
|
|
|
# Use opensles audio out be default:
|
|
|
|
mkdir -p $TERMUX_PREFIX/etc/mpv
|
2017-07-27 09:06:51 +02:00
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/mpv.conf $TERMUX_PREFIX/etc/mpv/mpv.conf
|
2016-08-23 21:48:58 +02:00
|
|
|
}
|