From 17fd382f3467e20308924499b7531ae8b789f056 Mon Sep 17 00:00:00 2001 From: Chenxi Mao Date: Wed, 29 Apr 2020 08:09:42 +0800 Subject: [PATCH] mpv: Remove X11 dependency During enable mpv which is based on wayland. The mpv reqired x11 by default even if mpv support wayland. Change the depend rules and chang the x11 dectection policy. After this change, mpv could be build and run successfully based on wayland Signed-off-by: Khem Raj --- meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb b/meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb index 3d325e24e6..f7b0f30fb9 100644 --- a/meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb +++ b/meta-oe/recipes-multimedia/mplayer/mpv_0.32.0.bb @@ -2,11 +2,12 @@ SUMMARY = "Open Source multimedia player" DESCRIPTION = "mpv is a fork of mplayer2 and MPlayer. It shares some features with the former projects while introducing many more." SECTION = "multimedia" HOMEPAGE = "http://www.mpv.io/" -DEPENDS = "zlib ffmpeg jpeg virtual/libx11 xsp libxv \ - libxscrnsaver libv4l libxinerama \ -" -REQUIRED_DISTRO_FEATURES = "x11" +DEPENDS = "zlib ffmpeg jpeg libv4l" + +DEPENDS += " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' virtual/libx11 xsp libxv libxscrnsaver libxinerama', '', d)} \ +" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=91f1cb870c1cc2d31351a4d2595441cb"