termux-packages/packages/mpv/build.sh

41 lines
1.1 KiB
Bash
Raw Normal View History

2016-08-23 21:48:58 +02:00
TERMUX_PKG_HOMEPAGE=https://mpv.io/
TERMUX_PKG_DESCRIPTION="Command-line media player"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-3.0"
2020-01-30 20:55:24 +01:00
TERMUX_PKG_VERSION=0.32.0
2020-06-20 22:14:30 +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
2020-01-30 20:55:24 +01:00
TERMUX_PKG_SHA256=9163f64832226d22e24bbc4874ebd6ac02372cd717bef15c28a0aa858c5fe592
TERMUX_PKG_DEPENDS="ffmpeg, libandroid-glob, libandroid-support, libarchive, libcaca, libiconv, liblua52, pulseaudio, openal-soft, zlib"
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"
}
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 \
--enable-libarchive \
2020-05-11 15:38:21 +02:00
--enable-libmpv-shared \
--disable-libass \
2019-03-18 22:25:02 +01:00
--enable-lua \
--enable-pulse \
--enable-openal \
--enable-caca \
2017-03-01 17:50:58 +01:00
--disable-alsa \
--disable-x11
2016-08-23 21:48:58 +02:00
2018-06-26 02:48:48 +02:00
./waf -v install
2016-08-27 18:15:46 +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
2016-08-23 21:48:58 +02:00
}