diff options
Diffstat (limited to 'meta-oe/recipes-multimedia/mplayer/mpv_0.39.0.bb')
| -rw-r--r-- | meta-oe/recipes-multimedia/mplayer/mpv_0.39.0.bb | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/meta-oe/recipes-multimedia/mplayer/mpv_0.39.0.bb b/meta-oe/recipes-multimedia/mplayer/mpv_0.39.0.bb new file mode 100644 index 0000000000..c97252bd30 --- /dev/null +++ b/meta-oe/recipes-multimedia/mplayer/mpv_0.39.0.bb | |||
| @@ -0,0 +1,105 @@ | |||
| 1 | SUMMARY = "Open Source multimedia player" | ||
| 2 | DESCRIPTION = "mpv is a fork of mplayer2 and MPlayer. It shares some features with the former projects while introducing many more." | ||
| 3 | SECTION = "multimedia" | ||
| 4 | HOMEPAGE = "http://www.mpv.io/" | ||
| 5 | |||
| 6 | DEPENDS = " \ | ||
| 7 | zlib \ | ||
| 8 | ffmpeg \ | ||
| 9 | jpeg \ | ||
| 10 | libv4l \ | ||
| 11 | libass \ | ||
| 12 | libplacebo \ | ||
| 13 | " | ||
| 14 | |||
| 15 | LICENSE = "GPL-2.0-or-later" | ||
| 16 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 17 | |||
| 18 | SRCREV = "a0fba7be57f3822d967b04f0f6b6d6341e7516e7" | ||
| 19 | SRC_URI = " \ | ||
| 20 | git://github.com/mpv-player/mpv;name=mpv;branch=release/0.39;protocol=https \ | ||
| 21 | file://a7efb3e62bbd0af86737f5ecb72d3a8e2a8c3b54.patch \ | ||
| 22 | " | ||
| 23 | S = "${WORKDIR}/git" | ||
| 24 | |||
| 25 | inherit meson pkgconfig mime-xdg | ||
| 26 | |||
| 27 | LDFLAGS:append:riscv64 = " -latomic" | ||
| 28 | |||
| 29 | LUA ?= "lua" | ||
| 30 | LUA:mips64 = "" | ||
| 31 | LUA:powerpc64 = "" | ||
| 32 | LUA:powerpc64le = "" | ||
| 33 | LUA:riscv64 = "" | ||
| 34 | LUA:riscv32 = "" | ||
| 35 | LUA:powerpc = "" | ||
| 36 | |||
| 37 | # Note: lua is required to get on-screen-display (controls) | ||
| 38 | PACKAGECONFIG ??= " \ | ||
| 39 | ${LUA} \ | ||
| 40 | ${@bb.utils.filter('DISTRO_FEATURES', 'x11 wayland opengl pipewire pulseaudio vulkan', d)} \ | ||
| 41 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl wayland', 'egl', '', d)} \ | ||
| 42 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'drm gbm', '', d)} \ | ||
| 43 | " | ||
| 44 | |||
| 45 | PACKAGECONFIG[x11] = "-Dx11=enabled,-Dx11=disabled,virtual/libx11 xsp libxv libxscrnsaver libxinerama libxpresent libxext" | ||
| 46 | PACKAGECONFIG[xv] = "-Dxv=enabled,-Dxv=disabled,libxv" | ||
| 47 | PACKAGECONFIG[opengl] = "-Dgl=enabled,-Dgl=disabled,virtual/libgl" | ||
| 48 | PACKAGECONFIG[egl] = "-Degl=enabled,-Degl=disabled,virtual/egl" | ||
| 49 | PACKAGECONFIG[drm] = "-Ddrm=enabled,-Ddrm=disabled,libdrm" | ||
| 50 | PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled,virtual/libgbm" | ||
| 51 | PACKAGECONFIG[lua] = "-Dlua=luajit,-Dlua=disabled,luajit" | ||
| 52 | PACKAGECONFIG[libarchive] = "-Dlibarchive=enabled,-Dlibarchive=disabled,libarchive" | ||
| 53 | PACKAGECONFIG[libmpv] = "-Dlibmpv=true,-Dlibmpv=false" | ||
| 54 | PACKAGECONFIG[jack] = "-Djack=enabled,-Djack=disabled,jack" | ||
| 55 | PACKAGECONFIG[pipewire] = "-Dpipewire=enabled,-Dpipewire=disabled,pipewire" | ||
| 56 | PACKAGECONFIG[pulseaudio] = "-Dpulse=enabled,-Dpulse=disabled,pulseaudio" | ||
| 57 | PACKAGECONFIG[vaapi] = "-Dvaapi=enabled,-Dvaapi=disabled,libva" | ||
| 58 | PACKAGECONFIG[vulkan] = "-Dvulkan=enabled,-Dvulkan=disabled,shaderc" | ||
| 59 | PACKAGECONFIG[vdpau] = "-Dvdpau=enabled,-Dvdpau=disabled,libvdpau" | ||
| 60 | PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,wayland wayland-native libxkbcommon" | ||
| 61 | |||
| 62 | python __anonymous() { | ||
| 63 | packageconfig = (d.getVar("PACKAGECONFIG") or "").split() | ||
| 64 | extras = [] | ||
| 65 | if "x11" in packageconfig and "opengl" in packageconfig: | ||
| 66 | extras.append(" -Dgl-x11=enabled") | ||
| 67 | if "x11" in packageconfig and "egl" in packageconfig: | ||
| 68 | extras.append(" -Degl-x11=enabled") | ||
| 69 | if "egl" in packageconfig and "drm" in packageconfig: | ||
| 70 | extras.append(" -Degl-drm=enabled") | ||
| 71 | if "vaapi" in packageconfig and "x11" in packageconfig: | ||
| 72 | extras.append(" -Dvaapi-x11=enabled") | ||
| 73 | if "vaapi" in packageconfig and "drm" in packageconfig: | ||
| 74 | extras.append(" -Dvaapi-drm=enabled") | ||
| 75 | if "vaapi" in packageconfig and "x11" in packageconfig and "egl" in packageconfig: | ||
| 76 | extras.append(" -Dvaapi-x-egl=enabled") | ||
| 77 | if "vdpau" in packageconfig and "opengl" in packageconfig and "x11" in packageconfig: | ||
| 78 | extras.append(" -Dvdpau-gl-x11=enabled") | ||
| 79 | if "wayland" in packageconfig and "opengl" in packageconfig: | ||
| 80 | extras.append(" -Dgl-wayland=enabled") | ||
| 81 | if "wayland" in packageconfig and "vaapi" in packageconfig: | ||
| 82 | extras.append(" -Dvaapi-wayland=enabled") | ||
| 83 | if extras: | ||
| 84 | d.appendVar("EXTRA_OECONF", "".join(extras)) | ||
| 85 | } | ||
| 86 | |||
| 87 | #SIMPLE_TARGET_SYS = "${@'${TARGET_SYS}'.replace('${TARGET_VENDOR}', '')}" | ||
| 88 | |||
| 89 | EXTRA_OEMESON = " \ | ||
| 90 | -Dmanpage-build=disabled \ | ||
| 91 | -Dlibbluray=disabled \ | ||
| 92 | -Ddvdnav=disabled \ | ||
| 93 | -Dcdda=disabled \ | ||
| 94 | -Duchardet=disabled \ | ||
| 95 | -Drubberband=disabled \ | ||
| 96 | -Dlcms2=disabled \ | ||
| 97 | -Dvapoursynth=disabled \ | ||
| 98 | " | ||
| 99 | |||
| 100 | do_configure:append() { | ||
| 101 | sed -i -e 's#${WORKDIR}#<WORKDIR>#g' ${B}/config.h | ||
| 102 | } | ||
| 103 | |||
| 104 | FILES:${PN} += "${datadir}" | ||
| 105 | EXCLUDE_FROM_WORLD = "${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "0", "1", d)}" | ||
