You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.0 KiB
39 lines
1.0 KiB
TERMUX_PKG_HOMEPAGE=https://mpv.io/
|
|
TERMUX_PKG_DESCRIPTION="Command-line media player"
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
|
TERMUX_PKG_VERSION=0.29.1
|
|
TERMUX_PKG_REVISION=3
|
|
TERMUX_PKG_SHA256=f9f9d461d1990f9728660b4ccb0e8cb5dce29ccaa6af567bec481b79291ca623
|
|
TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_DEPENDS="ffmpeg, openal-soft, libandroid-support, libandroid-glob, liblua52, libpulseaudio"
|
|
TERMUX_PKG_RM_AFTER_INSTALL="share/icons share/applications"
|
|
|
|
termux_step_pre_configure() {
|
|
LDFLAGS+=" -landroid-glob"
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
cd $TERMUX_PKG_SRCDIR
|
|
|
|
./bootstrap.py
|
|
|
|
./waf configure \
|
|
--prefix=$TERMUX_PREFIX \
|
|
--disable-gl \
|
|
--disable-jpeg \
|
|
--disable-lcms2 \
|
|
--disable-libarchive \
|
|
--disable-libass \
|
|
--enable-lua \
|
|
--enable-pulse \
|
|
--enable-openal \
|
|
--disable-caca \
|
|
--disable-alsa \
|
|
--disable-x11
|
|
|
|
./waf -v install
|
|
|
|
# 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
|
|
}
|
|
|