Skip to contentSkip to conversation

mpv: Media Player

PATCH Superseded Gary Thomas 1 participant 3 messages Mar 10, 2016

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover mpv: Media Player

mpv is a new media player, based on a fork of Mplayer and mplayer2. libass is updated to the latest version (necessary for fully functioning mpv)

Gary Thomas (2):
libass: Update to latest version
mpv: Media Player

 meta-oe/recipes-multimedia/libass/libass.inc       |  7 +--
 meta-oe/recipes-multimedia/libass/libass_0.10.1.bb |  5 --
 meta-oe/recipes-multimedia/libass/libass_0.13.2.bb |  4 ++
 meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb   | 65 ++++++++++++++++++++++
 4 files changed, 71 insertions(+), 10 deletions(-)
 delete mode 100644 meta-oe/recipes-multimedia/libass/libass_0.10.1.bb
 create mode 100644 meta-oe/recipes-multimedia/libass/libass_0.13.2.bb
 create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb
Signature · 1 line
2.5.0
#1 lore raw

PATCH v2 1/2 libass: Update to latest version

libass has moved from Google to github.com
Also update to the latest version (libass.so.5)

---
 meta-oe/recipes-multimedia/libass/libass.inc       | 7 ++-----
 meta-oe/recipes-multimedia/libass/libass_0.10.1.bb | 5 -----
 meta-oe/recipes-multimedia/libass/libass_0.13.2.bb | 4 ++++
 3 files changed, 6 insertions(+), 10 deletions(-)
 delete mode 100644 meta-oe/recipes-multimedia/libass/libass_0.10.1.bb
 create mode 100644 meta-oe/recipes-multimedia/libass/libass_0.13.2.bb
meta-oe/recipes-multimedia/libass/libass.inc +2 -5
index 328cd14..a394c56 100644
@@ -1,5 +1,5 @@
 DESCRIPTION = "libass is a portable subtitle renderer for the ASS/SSA (Advanced Substation Alpha/Substation Alpha) subtitle format. It is mostly compatible with VSFilter."
-HOMEPAGE = "http://code.google.com/p/libass/"
+HOMEPAGE = "http://github.com/libass/libass/"
 SECTION = "libs/multimedia"
 
 LICENSE = "ISC"
@@ -7,10 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=8ae98663bac55afe5d989919d296f28a"
 
 DEPENDS = "enca fontconfig freetype libpng fribidi"
 
-INC_PR = "r1"
-
-SRC_URI = "http://${BPN}.googlecode.com/files/${BP}.tar.gz"
-
+SRC_URI = "https://github.com/${PN}/${PN}/releases/download/0.13.2/${BP}.tar.gz"
 inherit autotools pkgconfig
 
 PACKAGECONFIG ??= ""
meta-oe/recipes-multimedia/libass/libass_0.10.1.bb deleted +0 -5
deleted file mode 100644
index 0b32276..0000000
@@ -1,5 +0,0 @@
-require ${PN}.inc
-PR = "${INC_PR}.0"
-
-SRC_URI[md5sum] = "6cace482a013a3c4bf3b31a68ac66026"
-SRC_URI[sha256sum] = "629a7e81fff92dea8d0399b818a41fd1b61e381c67a5961b1eaec2efadb14c6c"
meta-oe/recipes-multimedia/libass/libass_0.13.2.bb new file +4 -0
new file mode 100644
index 0000000..123c9dd
@@ -0,0 +1,4 @@
+require ${PN}.inc
+
+SRC_URI[md5sum] = "b4d82616bb18e8e954b18746a105a3b8"
+SRC_URI[sha256sum] = "8baccf663553b62977b1c017d18b3879835da0ef79dc4d3b708f2566762f1d5e"
Signature · 1 line
2.5.0
#2 lore raw

PATCH v2 2/2 mpv: Media Player

In reply to Gary Thomas

mpv is a fork of mplayer2 and MPlayer. It shares some features with the former projects while introducing many more.

---
 meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb | 65 ++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb
meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb new file +65 -0
new file mode 100644
index 0000000..e8c13a4
@@ -0,0 +1,65 @@
+SUMMARY = "Open Source multimedia player"
+SECTION = "multimedia"
+HOMEPAGE = "http://www.mpv.io/"
+DEPENDS = "zlib ffmpeg jpeg virtual/libx11 xsp libxv \
+           libxscrnsaver libv4l libxinerama \
+"
+
+REQUIRED_DISTRO_FEATURES = "x11"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=91f1cb870c1cc2d31351a4d2595441cb"
+
+SRC_URI = "https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz;name=mpv \
+           http://www.freehackers.org/~tnagy/release/waf-1.8.12;name=waf \
+"
+SRC_URI[mpv.md5sum] = "9042bd3fbff2bc8ba0b7fadaa4a22101"
+SRC_URI[mpv.sha256sum] = "7d31217ba8572f364fcea2955733f821374ae6d8c6d8f22f8bc63c44c0400bdc"
+SRC_URI[waf.md5sum] = "cef4ee82206b1843db082d0b0506bf71"
+SRC_URI[waf.sha256sum] = "01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b"
+
+inherit pkgconfig
+
+# Note: both lua and libass are required to get on-screen-display (controls)
+PACKAGECONFIG ??= "lua libass"
+PACKAGECONFIG[lua] = "--enable-lua,--disable-lua,lua luajit"
+PACKAGECONFIG[libass] = "--enable-libass,--disable-libass,libass"
+PACKAGECONFIG[libarchive] = "--enable-libarchive,--disable-libarchive,libarchive"
+
+EXTRA_OECONF = " \
+    --prefix=${D}${prefix} \
+    --target=${SIMPLE_TARGET_SYS} \
+    --disable-manpage-build \
+    --disable-gl \
+    --disable-libsmbclient \
+    --disable-encoding \
+    --disable-libbluray \
+    --disable-dvdread \
+    --disable-dvdnav \
+    --disable-cdda \
+    --disable-enca \
+    --disable-libguess \
+    --disable-uchardet \
+    --disable-rubberband \
+    --disable-lcms2 \
+    --disable-vapoursynth \
+    --disable-vapoursynth-lazy \
+"
+
+do_configure() {
+    if [ ! -L ../waf ]; then
+        chmod a+x ../waf-1.8.12
+	ln -s waf-1.8.12 ../waf
+    fi
+    ../waf configure ${EXTRA_OECONF}
+}
+
+do_compile () {
+    ../waf build
+}
+
+do_install() {
+    ../waf install
+}
+
+FILES_${PN} += "${prefix}"
Signature · 1 line
2.5.0