Skip to contentSkip to conversation

mpv: new package

PATCH Superseded Gustavo Zacarias 3 participants 7 messages Apr 27, 2016 – Apr 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mpv: new package

---
Changes for v2:
* As pointed by Arnout add missing inherited nios2 exclusion (ffmpeg)

 package/Config.in                                  |   1 +
 ...ript-don-t-check-for-fork-on-POSIX-checks.patch |  31 +++
 package/mpv/Config.in                              |  17 ++
 package/mpv/mpv.hash                               |   3 +
 package/mpv/mpv.mk                                 | 255 +++++++++++++++++++++
 5 files changed, 307 insertions(+)
 create mode 100644 package/mpv/0001-wscript-don-t-check-for-fork-on-POSIX-checks.patch
 create mode 100644 package/mpv/Config.in
 create mode 100644 package/mpv/mpv.hash
 create mode 100644 package/mpv/mpv.mk
package/Config.in +1 -0
index 1a5b267..c49f219 100644
@@ -29,6 +29,7 @@ menu "Audio and video applications"
 	source "package/mpd-mpc/Config.in"
 	source "package/mpg123/Config.in"
 	source "package/mplayer/Config.in"
+	source "package/mpv/Config.in"
 	source "package/multicat/Config.in"
 	source "package/musepack/Config.in"
 	source "package/ncmpc/Config.in"
package/mpv/0001-wscript-don-t-check-for-fork-on-POSIX-checks.patch new file +31 -0
new file mode 100644
index 0000000..544c03c
@@ -0,0 +1,31 @@
+From 61aea32efe675e584121295452fc7ab2a652d021 Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <[email protected]>
+Date: Wed, 20 Apr 2016 09:39:30 -0300
+Subject: [PATCH] wscript: don't check for fork() on POSIX checks
+
+It's not being used, and in fact prevents mpv from being built in nommu
+architectures (cortex M, blackfin, ...)
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+---
+Status: pull request https://github.com/mpv-player/mpv/pull/3068
+
+ wscript | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/wscript b/wscript
+index a4ffce6..40328e4 100644
+--- a/wscript
++++ b/wscript
+@@ -127,7 +127,7 @@ main_dependencies = [
+         'desc': 'POSIX environment',
+         # This should be good enough.
+         'func': check_statement(['poll.h', 'unistd.h', 'sys/mman.h'],
+-            'struct pollfd pfd; poll(&pfd, 1, 0); fork(); int f[2]; pipe(f); munmap(f,0)'),
++            'struct pollfd pfd; poll(&pfd, 1, 0); int f[2]; pipe(f); munmap(f,0)'),
+     }, {
+         'name': 'posix-or-mingw',
+         'desc': 'development environment',
+-- 
+2.7.3
+
package/mpv/Config.in new file +17 -0
new file mode 100644
index 0000000..0f5aa97
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_MPV
+	bool "mpv"
+	depends on !BR2_nios2 # ffmpeg
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
+	select BR2_PACKAGE_FFMPEG
+	select BR2_PACKAGE_FFMPEG_SWSCALE
+	select BR2_PACKAGE_ZLIB
+	help
+	  mpv is a fork of mplayer2 and MPlayer. It shares some features
+	  with the former projects while introducing many more.
+
+	  https://mpv.io/
+
+comment "mpv needs a toolchain w/ threads"
+	depends on !BR2_nios2
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/mpv/mpv.hash new file +3 -0
new file mode 100644
index 0000000..da51f3a
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256	602cd2b0f5fc7e43473234fbb96e3f7bbb6418f15eb8fa720d9433cce31eba6e	v0.17.0.tar.gz
+sha256	01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b	waf-1.8.12
package/mpv/mpv.mk new file +255 -0

255 lines not on this page · raw message

Signature · 1 line
2.7.3
#1 lore raw

PATCH v2 1/1 mpv: new package

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

---
Changes for v2:
* As pointed by Arnout add missing inherited nios2 exclusion (ffmpeg)

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH v2 1/1 mpv: new package

In reply to Thomas Petazzoni
Quoted 7 lines · Thomas Petazzoni

Hello,

Quoted 1 line · Gustavo Zacarias

This new package is causing a few build failures:

Quoted 7 lines
   http://autobuild.buildroot.org/?reason=mpv-0.17.0

Could you have a look?

Thanks!

Thomas

Also keep in mind that these failures are because of the need for updated toolchains for the autobuilders (XSI_MATH):
http://autobuild.buildroot.net/results/dbd/dbdaf0b856129ce84a6291b1afe4acfec4c2777f/build-end.log

Regards.

#5 lore raw

PATCH v2 1/1 mpv: new package

Hello,

Quoted 3 lines · Gustavo Zacarias

Also keep in mind that these failures are because of the need for updated toolchains for the autobuilders (XSI_MATH):
http://autobuild.buildroot.net/results/dbd/dbdaf0b856129ce84a6291b1afe4acfec4c2777f/build-end.log

The ones related to j1() being not available, I guess so. But many of the failures are related to the detection of wayland, sdl1, sdl2. Are those also related to the XSI_MATH thing?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#6 lore raw

PATCH v2 1/1 mpv: new package

Quoted 5 lines · Thomas Petazzoni

The ones related to j1() being not available, I guess so. But many of the failures are related to the detection of wayland, sdl1, sdl2. Are those also related to the XSI_MATH thing?

Thomas

No, wayland requires xkbcommon, i've already sent a patch, i'm looking at the sdl failures shortly.
Regards.