distribution/packages/multimedia/mpv/package.mk
2022-02-05 09:23:32 -05:00

29 lines
911 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
PKG_NAME="mpv"
PKG_VERSION="70b991749df389bcc0a4e145b5687233a03b4ed7"
PKG_SHA256="417b45c2ac88b9e020b55adf9238a4b46dc8c80d4c1a3efe301d55aaae4b0b99"
PKG_LICENSE="GPLv2+"
PKG_SITE="https://github.com/mpv-player/mpv"
PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain ffmpeg SDL2 ${OPENGLES} luajit libass"
PKG_LONGDESC="Video player based on MPlayer/mplayer2 https://mpv.io"
PKG_TOOLCHAIN="manual"
configure_target() {
#./bootstrap.py
# the bootstrap was failing for some reason.
cp $PKG_DIR/waf/* $PKG_BUILD
./waf configure --enable-sdl2 --enable-sdl2-gamepad --disable-pulse --enable-egl --disable-libbluray --disable-gl
}
make_target() {
./waf build
}
makeinstall_target() {
mkdir -p $INSTALL/usr/bin
cp ./build/mpv $INSTALL/usr/bin
}