package/mpv: fix reproducible build issues
PATCH 1/4 package/mpv: fix reproducible build issues
Do not include the build date when creating reproducible builds.
--- package/mpv/mpv.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/mpv/mpv.mk +4 -0
@@ -28,6 +28,10 @@ MPV_CONF_OPTS = \ --disable-uchardet \ --disable-vapoursynth +ifeq ($(BR2_REPRODUCIBLE),y) +MPV_CONF_OPTS += --disable-build-date +endif + ifeq ($(BR2_STATIC_LIBS),y) MPV_CONF_OPTS += --disable-libmpv-shared --enable-libmpv-static else
Signature · 1 line
2.30.2
PATCH 2/4 package/mpv: Add optional support for OpenGLES
mpv also supports OpenGLES:
https://github.com/mpv-player/mpv/blob/master/video/out/opengl/egl_helpers.c#L98
Runtime-tested using mesa3d iris driver on a non-x11 system.
--- package/mpv/mpv.mk | 3 +++ 1 file changed, 3 insertions(+)
package/mpv/mpv.mk +3 -0
@@ -140,6 +140,9 @@ endif ifeq ($(BR2_PACKAGE_HAS_LIBGL),y) MPV_CONF_OPTS += --enable-gl MPV_DEPENDENCIES += libgl +else ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y) +MPV_CONF_OPTS += --enable-gl +MPV_DEPENDENCIES += libgles else MPV_CONF_OPTS += --disable-gl endif
Signature · 1 line
2.30.2
PATCH 3/4 package/mpv: Add optional support for OpenGL DRM EGL Backend
In reply to Bernd KuhlsReference: https://github.com/mpv-player/mpv/blob/master/wscript#L571
--- package/mpv/mpv.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
package/mpv/mpv.mk +6 -1
@@ -50,8 +50,13 @@ endif ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y) MPV_CONF_OPTS += --enable-gbm MPV_DEPENDENCIES += mesa3d +ifeq ($(BR2_PACKAGE_LIBDRM),y) +MPV_CONF_OPTS += --enable-egl-drm +else +MPV_CONF_OPTS += --disable-egl-drm +endif else -MPV_CONF_OPTS += --disable-gbm +MPV_CONF_OPTS += --disable-gbm --disable-egl-drm endif # jack support
Signature · 1 line
2.30.2
PATCH 4/4 package/mpv: Add optional support for DRM/EGL-based vaapi acceleration
In reply to Bernd Kuhlshttps://github.com/mpv-player/mpv/blob/master/wscript#L647
Runtime-tested using mesa3d iris driver on a non-x11 system.
--- package/mpv/Config.in | 6 ++++++ package/mpv/mpv.mk | 11 +++++------ 2 files changed, 11 insertions(+), 6 deletions(-)
package/mpv/Config.in +6 -0
@@ -1,3 +1,9 @@ +config BR2_PACKAGE_MPV_SUPPORTS_VAAPI + bool + default y if BR2_PACKAGE_LIBDRM && BR2_PACKAGE_MESA3D_OPENGL_EGL + default y if BR2_PACKAGE_WAYLAND + default y if BR2_PACKAGE_XORG7 + config BR2_PACKAGE_MPV bool "mpv" depends on BR2_INSTALL_LIBSTDCPP # libass
package/mpv/mpv.mk +5 -6
@@ -178,17 +178,16 @@ MPV_CONF_OPTS += --disable-rpi endif # va-api support -# This requires one or more of the egl-drm, wayland, x11 backends -# For now we support wayland and x11 -ifeq ($(BR2_PACKAGE_LIBVA),y) -ifneq ($(BR2_PACKAGE_WAYLAND)$(BR2_PACKAGE_XORG7),) +ifeq ($(BR2_PACKAGE_LIBVA)$(BR2_PACKAGE_MPV_SUPPORTS_VAAPI),yy) MPV_CONF_OPTS += --enable-vaapi MPV_DEPENDENCIES += libva +ifeq ($(BR2_PACKAGE_LIBDRM),y) +MPV_CONF_OPTS += --enable-vaapi-drm else -MPV_CONF_OPTS += --disable-vaapi +MPV_CONF_OPTS += --disable-vaapi-drm endif else -MPV_CONF_OPTS += --disable-vaapi +MPV_CONF_OPTS += --disable-vaapi --disable-vaapi-drm endif # wayland support
Signature · 1 line
2.30.2
PATCH 1/4 package/mpv: fix reproducible build issues
In reply to Bernd KuhlsQuoted 6 lines · On Fri, 18 Jun 2021 21:22:34 +0200 Bernd Kuhls <[email protected]> wrote:
Do not include the build date when creating reproducible builds.
Signed-off-by Bernd Kuhls <[email protected]>--- package/mpv/mpv.mk | 4 ++++ 1 file changed, 4 insertions(+)
Series applied, thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Do not include the build date when creating reproducible builds.
Signed-off-by Bernd Kuhls <[email protected]>
Committed to 2021.02.x and 2021.05.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] http://lists.busybox.net/mailman/listinfo/buildroot