distribution/packages/multimedia/mpv/package.mk

23 lines
767 B
Makefile
Raw Normal View History

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"
PKG_VERSION="af9b53f3a3831531504906882efce0d979506ed3"
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"
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"
2022-07-11 22:30:36 +00:00
if [ ! "${OPENGL}" = "no" ]; then
PKG_DEPENDS_TARGET+=" ${OPENGL} glu libglvnd"
PKG_MESON_OPTS_TARGET+=" -Dgl=enabled -Degl=disabled"
2022-07-11 22:30:36 +00:00
fi
if [ "${OPENGLES_SUPPORT}" = yes ]; then
PKG_DEPENDS_TARGET+=" ${OPENGLES}"
PKG_MESON_OPTS_TARGET+=" -Dgl=disabled -Degl=enabled"
2022-07-11 22:30:36 +00:00
fi