Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 | DEPENDS = "zlib ffmpeg jpeg virtual/libx11 xsp libxv \ |
| 6 | libxscrnsaver libv4l libxinerama \ |
| 7 | " |
| 8 | |
| 9 | REQUIRED_DISTRO_FEATURES = "x11" |
| 10 | |
| 11 | LICENSE = "GPLv2+" |
| 12 | LIC_FILES_CHKSUM = "file://LICENSE;md5=91f1cb870c1cc2d31351a4d2595441cb" |
| 13 | |
| 14 | # While this item does not require it, it depends on ffmpeg which does |
| 15 | LICENSE_FLAGS = "commercial" |
| 16 | |
| 17 | SRC_URI = " \ |
| 18 | https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz;name=mpv \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | http://www.freehackers.org/~tnagy/release/waf-1.8.12;name=waf;downloadfilename=waf;subdir=${BPN}-${PV} \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | " |
| 21 | SRC_URI[mpv.md5sum] = "038d0b660de07ff645ad6a741704ecab" |
| 22 | SRC_URI[mpv.sha256sum] = "daf3ef358d5f260f2269f7caabce27f446c291457ec330077152127133b71b46" |
| 23 | SRC_URI[waf.md5sum] = "cef4ee82206b1843db082d0b0506bf71" |
| 24 | SRC_URI[waf.sha256sum] = "01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b" |
| 25 | |
| 26 | inherit waf pkgconfig pythonnative distro_features_check |
| 27 | |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame^] | 28 | LUA ?= "lua" |
| 29 | LUA_mips64 = "" |
| 30 | LUA_aarch64 = "" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 31 | # Note: both lua and libass are required to get on-screen-display (controls) |
| 32 | PACKAGECONFIG ??= " \ |
Andrew Geissler | 1548c07 | 2019-02-22 16:03:50 -0600 | [diff] [blame^] | 33 | ${LUA} \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | libass \ |
| 35 | ${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)} \ |
| 36 | " |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 37 | |
| 38 | PACKAGECONFIG_remove_aarch64 = "lua" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 39 | PACKAGECONFIG[drm] = "--enable-drm,--disable-drm,libdrm" |
| 40 | PACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm,virtual/mesa" |
| 41 | PACKAGECONFIG[lua] = "--enable-lua,--disable-lua,lua luajit" |
| 42 | PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass" |
| 43 | PACKAGECONFIG[libarchive] = "--enable-libarchive,--disable-libarchive,libarchive" |
| 44 | PACKAGECONFIG[jack] = "--enable-jack, --disable-jack, jack" |
| 45 | PACKAGECONFIG[vaapi] = "--enable-vaapi, --disable-vaapi,libva" |
| 46 | PACKAGECONFIG[vdpau] = "--enable-vdpau, --disable-vdpau,libvdpau" |
| 47 | PACKAGECONFIG[wayland] = "--enable-wayland, --disable-wayland,wayland libxkbcommon" |
| 48 | |
| 49 | SIMPLE_TARGET_SYS = "${@'${TARGET_SYS}'.replace('${TARGET_VENDOR}', '')}" |
| 50 | |
| 51 | EXTRA_OECONF = " \ |
| 52 | --prefix=${prefix} \ |
| 53 | --target=${SIMPLE_TARGET_SYS} \ |
| 54 | --confdir=${sysconfdir} \ |
| 55 | --datadir=${datadir} \ |
| 56 | --disable-manpage-build \ |
| 57 | --disable-gl \ |
| 58 | --disable-libsmbclient \ |
| 59 | --disable-encoding \ |
| 60 | --disable-libbluray \ |
| 61 | --disable-dvdread \ |
| 62 | --disable-dvdnav \ |
| 63 | --disable-cdda \ |
| 64 | --disable-uchardet \ |
| 65 | --disable-rubberband \ |
| 66 | --disable-lcms2 \ |
| 67 | --disable-vapoursynth \ |
| 68 | --disable-vapoursynth-lazy \ |
| 69 | ${PACKAGECONFIG_CONFARGS} \ |
| 70 | " |
| 71 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 72 | adjust_waf_perms() { |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 73 | chmod +x ${S}/waf |
| 74 | } |
| 75 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 76 | do_patch[postfuncs] += "adjust_waf_perms" |
| 77 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 78 | FILES_${PN} += "${datadir}/icons" |