meta-openembedded/meta-python/recipes-devtools/python/python3-mpv_1.0.8.bb
Khem Raj 846dd7cd5f
python3-mpv: Do not consider it if commercial license is not selected
It depends on mpv which depends on ffmpeg needing commercial in
LICENSE_FLAGS_ACCEPTED

Fixes
ERROR: Nothing PROVIDES 'ffmpeg' (but /srv/pokybuild/yocto-worker/meta-oe/build/meta-openembedded/meta-oe/recipes-multimedia/mplayer/mpv_0.40.0.bb DEPENDS on or otherwise requires it)
ffmpeg was skipped: Has a restricted license 'commercial' which is not listed in your LICENSE_FLAGS_ACCEPTED.
NOTE: Runtime target 'mpv' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['mpv', 'ffmpeg']
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'python3-mpv', 'mpv', 'ffmpeg']

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Jan Claußen <jan.claussen10@web.de>
2025-12-02 09:18:04 -08:00

18 lines
588 B
BlitzBasic

SUMMARY = "Python bindings for mpv"
DESCRIPTION = "python-mpv is a ctypes-based python interface to the mpv media player"
HOMEPAGE = "https://github.com/jaseg/python-mpv"
SECTION = "devel/python"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI[sha256sum] = "95dbd4d869cd8de7a27914ad33e776accc0f01cb82a6d5b31ca439ade2208ffb"
inherit pypi python_setuptools_build_meta
RDEPENDS:${PN} += "\
mpv \
python3-ctypes \
"
EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}"