29 lines
1,003 B
Makefile
29 lines
1,003 B
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2019-present Shanti Gilbert (https://github.com/shantigilbert)
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
|
|
|
PKG_NAME="mpv"
|
|
PKG_VERSION="f4210f84906c3b00a65fba198c8127b6757b9350" # 0.36.0
|
|
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 luajit libass waf:host libplacebo"
|
|
PKG_LONGDESC="Video player based on MPlayer/mplayer2 https://mpv.io"
|
|
|
|
if [ "${OPENGLES_SUPPORT}" = yes ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
|
|
PKG_MESON_OPTS_TARGET+=" -Dgl=disabled -Degl=enabled"
|
|
fi
|
|
|
|
if [ "${OPENGL_SUPPORT}" = "yes" ]; then
|
|
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
|
|
PKG_MESON_OPTS_TARGET+=" -Dgl=enabled -Degl=disabled"
|
|
fi
|
|
|
|
if [ "${DISPLAYSERVER}" = "wl" ]; then
|
|
PKG_MESON_OPTS_TARGET+=" -Dwayland=enabled"
|
|
else
|
|
PKG_MESON_OPTS_TARGET+=" -Dwayland=disabled"
|
|
fi
|
|
|
|
PKG_MESON_OPTS_TARGET+=" -Dsdl2=enabled"
|