termux-packages/x11-packages/mpv-x/build.sh

40 lines
1.2 KiB
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_HOMEPAGE=https://mpv.io/
TERMUX_PKG_DESCRIPTION="Command-line media player"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
2020-11-23 14:52:33 +01:00
TERMUX_PKG_VERSION=0.33.0
TERMUX_PKG_REVISION=6
2018-09-10 00:42:26 +02:00
TERMUX_PKG_SRCURL=https://github.com/mpv-player/mpv/archive/v${TERMUX_PKG_VERSION}.tar.gz
2020-11-23 14:52:33 +01:00
TERMUX_PKG_SHA256=f1b9baf5dc2eeaf376597c28a6281facf6ed98ff3d567e3955c95bf2459520b4
2019-10-28 14:36:59 +01:00
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_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 \
--enable-lua \
--enable-pulse \
2018-09-10 00:42:26 +02:00
--enable-openal \
--enable-caca \
--disable-alsa \
--enable-x11 \
--disable-wayland
2018-09-10 00:42:26 +02:00
2020-03-16 14:59:56 +01:00
./waf -v install
install -Dm600 -t $TERMUX_PREFIX/etc/mpv/ $TERMUX_PKG_BUILDER_DIR/mpv.conf
install -Dm600 -t $TERMUX_PREFIX/share/mpv/scripts/ $TERMUX_PKG_SRCDIR/TOOLS/lua/*
2018-09-10 00:42:26 +02:00
}