2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
|
2022-04-14 19:25:58 +00:00
|
|
|
# Copyright (C) 2022-present Fewtarius
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="mpv"
|
2022-12-06 22:00:30 +00:00
|
|
|
PKG_VERSION="25b66256d7ff48254b2055a066e29f260414112f"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPLv2+"
|
|
|
|
PKG_SITE="https://github.com/mpv-player/mpv"
|
2022-04-14 19:25:58 +00:00
|
|
|
PKG_URL="${PKG_SITE}/archive/${PKG_VERSION}.tar.gz"
|
2022-12-06 22:00:30 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain ffmpeg SDL2 luajit libass waf:host"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LONGDESC="Video player based on MPlayer/mplayer2 https://mpv.io"
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
2022-07-11 22:30:36 +00:00
|
|
|
if [ ! "${OPENGL}" = "no" ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
|
|
PKG_WAF_OPTS=" --enable-gl --disable-egl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
|
|
PKG_WAF_OPTS=" --disable-gl --enable-egl"
|
|
|
|
fi
|
|
|
|
|
2022-12-06 22:00:30 +00:00
|
|
|
pre_configure_target() {
|
|
|
|
cp -f ${TOOLCHAIN}/bin/waf ${PKG_BUILD}
|
|
|
|
}
|
|
|
|
|
2022-02-05 14:23:32 +00:00
|
|
|
configure_target() {
|
2022-12-06 22:00:30 +00:00
|
|
|
cd ${PKG_BUILD}
|
|
|
|
${PKG_BUILD}/waf configure --enable-sdl2 --enable-sdl2-gamepad --disable-pulse --disable-libbluray ${PKG_WAF_OPTS}
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
make_target() {
|
2022-12-06 22:00:30 +00:00
|
|
|
${PKG_BUILD}/waf build
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-04-14 19:25:58 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
|
|
cp ./build/mpv ${INSTALL}/usr/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|