2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://mpv.io/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Command-line media player"
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2019-05-17 00:18:48 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
|
2019-10-28 14:36:59 +01:00
|
|
|
TERMUX_PKG_VERSION=0.30.0
|
2020-02-24 20:20:50 +01:00
|
|
|
TERMUX_PKG_REVISION=5
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2019-10-28 14:36:59 +01:00
|
|
|
TERMUX_PKG_SHA256=33a1bcb7e74ff17f070e754c15c52228cf44f2cefbfd8f34886ae81df214ca35
|
|
|
|
TERMUX_PKG_DEPENDS="ffmpeg, libandroid-glob, libandroid-shmem, libarchive, libass, libdrm, littlecms, libjpeg-turbo, libcaca, liblua52, libx11, libxext, libxinerama, libxss, libxrandr, openal-soft, pulseaudio, zlib"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_CONFLICTS="mpv"
|
|
|
|
TERMUX_PKG_REPLACES="mpv"
|
|
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/icons share/applications"
|
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
|
|
|
LDFLAGS+=" -landroid-glob -landroid-shmem"
|
|
|
|
}
|
|
|
|
|
2019-10-28 14:36:59 +01:00
|
|
|
termux_step_make_install() {
|
2018-09-10 00:42:26 +02:00
|
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
|
|
|
|
./bootstrap.py
|
|
|
|
|
|
|
|
./waf configure \
|
|
|
|
--prefix=$TERMUX_PREFIX \
|
|
|
|
--disable-gl \
|
|
|
|
--enable-jpeg \
|
|
|
|
--enable-lcms2 \
|
2019-10-28 14:36:59 +01:00
|
|
|
--enable-libarchive \
|
2019-06-23 16:47:57 +02:00
|
|
|
--enable-libass \
|
2018-09-24 23:21:23 +02:00
|
|
|
--enable-lua \
|
2018-10-04 14:25:46 +02:00
|
|
|
--enable-pulse \
|
2018-09-10 00:42:26 +02:00
|
|
|
--enable-openal \
|
|
|
|
--enable-caca \
|
|
|
|
--disable-alsa \
|
2019-11-18 20:08:35 +01:00
|
|
|
--enable-x11 \
|
|
|
|
--disable-wayland
|
2018-09-10 00:42:26 +02:00
|
|
|
|
2019-10-28 15:14:11 +01:00
|
|
|
./waf install
|
2018-09-10 00:42:26 +02:00
|
|
|
|
|
|
|
# Use opensles audio out be default:
|
|
|
|
mkdir -p $TERMUX_PREFIX/etc/mpv
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/mpv.conf $TERMUX_PREFIX/etc/mpv/mpv.conf
|
2019-11-18 20:08:35 +01:00
|
|
|
|
|
|
|
install -m644 $TERMUX_PKG_SRCDIR/TOOLS/lua/* \
|
|
|
|
-D -t $TERMUX_PREFIX/share/mpv/scripts
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|