* Update buildroot-patches for 2020.11-rc1 buildroot * Update buildroot to 2020.11-rc1 Signed-off-by: Stefan Agner <stefan@agner.ch> * Don't rely on sfdisk --list-free output The --list-free (-F) argument does not allow machine readable mode. And it seems that the output format changes over time (different spacing, using size postfixes instead of raw blocks). Use sfdisk json output and calculate free partition space ourselfs. This works for 2.35 and 2.36 and is more robust since we rely on output which is meant for scripts to parse. * Migrate defconfigs for Buildroot 2020.11-rc1 In particular, rename BR2_TARGET_UBOOT_BOOT_SCRIPT(_SOURCE) to BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT(_SOURCE). * Rebase/remove systemd patches for systemd 246 * Drop apparmor/libapparmor from buildroot-external * hassos-persists: use /run as directory for lockfiles The U-Boot tools use /var/lock by default which is not created any more by systemd by default (it is under tmpfiles legacy.conf, which we no longer install). * Disable systemd-update-done.service The service is not suited for pure read-only systems. In particular the service needs to be able to write a file in /etc and /var. Remove the service. Note: This is a static service and cannot be removed using systemd-preset. * Disable apparmor.service for now The service loads all default profiles. Some might actually cause problems. E.g. the profile for ping seems not to match our setup for /etc/resolv.conf: [85503.634653] audit: type=1400 audit(1605286002.684:236): apparmor="DENIED" operation="open" profile="ping" name="/run/resolv.conf" pid=27585 comm="ping" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
222 lines
4.9 KiB
Makefile
222 lines
4.9 KiB
Makefile
################################################################################
|
|
#
|
|
# mpv
|
|
#
|
|
################################################################################
|
|
|
|
MPV_VERSION = 0.32.0
|
|
MPV_SITE = $(call github,mpv-player,mpv,v$(MPV_VERSION))
|
|
MPV_DEPENDENCIES = \
|
|
host-pkgconf ffmpeg zlib \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
MPV_LICENSE = GPL-2.0+
|
|
MPV_LICENSE_FILES = LICENSE.GPL
|
|
|
|
MPV_NEEDS_EXTERNAL_WAF = YES
|
|
|
|
# Some of these options need testing and/or tweaks
|
|
MPV_CONF_OPTS = \
|
|
--prefix=/usr \
|
|
--disable-android \
|
|
--disable-caca \
|
|
--disable-cocoa \
|
|
--disable-coreaudio \
|
|
--disable-cuda-hwaccel \
|
|
--disable-opensles \
|
|
--disable-rsound \
|
|
--disable-rubberband \
|
|
--disable-uchardet \
|
|
--disable-vapoursynth
|
|
|
|
# ALSA support requires pcm+mixer
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yy)
|
|
MPV_CONF_OPTS += --enable-alsa
|
|
MPV_DEPENDENCIES += alsa-lib
|
|
else
|
|
MPV_CONF_OPTS += --disable-alsa
|
|
endif
|
|
|
|
# GBM support is provided by mesa3d when EGL=y
|
|
ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
|
|
MPV_CONF_OPTS += --enable-gbm
|
|
MPV_DEPENDENCIES += mesa3d
|
|
else
|
|
MPV_CONF_OPTS += --disable-gbm
|
|
endif
|
|
|
|
# jack support
|
|
# It also requires 64-bit sync intrinsics
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_8)$(BR2_PACKAGE_JACK2),yy)
|
|
MPV_CONF_OPTS += --enable-jack
|
|
MPV_DEPENDENCIES += jack2
|
|
else
|
|
MPV_CONF_OPTS += --disable-jack
|
|
endif
|
|
|
|
# jpeg support
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
MPV_CONF_OPTS += --enable-jpeg
|
|
MPV_DEPENDENCIES += jpeg
|
|
else
|
|
MPV_CONF_OPTS += --disable-jpeg
|
|
endif
|
|
|
|
# lcms2 support
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
MPV_CONF_OPTS += --enable-lcms2
|
|
MPV_DEPENDENCIES += lcms2
|
|
else
|
|
MPV_CONF_OPTS += --disable-lcms2
|
|
endif
|
|
|
|
# libarchive support
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
|
|
MPV_CONF_OPTS += --enable-libarchive
|
|
MPV_DEPENDENCIES += libarchive
|
|
else
|
|
MPV_CONF_OPTS += --disable-libarchive
|
|
endif
|
|
|
|
# libass subtitle support
|
|
ifeq ($(BR2_PACKAGE_LIBASS),y)
|
|
MPV_CONF_OPTS += --enable-libass
|
|
MPV_DEPENDENCIES += libass
|
|
else
|
|
MPV_CONF_OPTS += --disable-libass
|
|
endif
|
|
|
|
# bluray support
|
|
ifeq ($(BR2_PACKAGE_LIBBLURAY),y)
|
|
MPV_CONF_OPTS += --enable-libbluray
|
|
MPV_DEPENDENCIES += libbluray
|
|
else
|
|
MPV_CONF_OPTS += --disable-libbluray
|
|
endif
|
|
|
|
# libcdio-paranoia
|
|
ifeq ($(BR2_PACKAGE_LIBCDIO_PARANOIA),y)
|
|
MPV_CONF_OPTS += --enable-cdda
|
|
MPV_DEPENDENCIES += libcdio-paranoia
|
|
else
|
|
MPV_CONF_OPTS += --disable-cdda
|
|
endif
|
|
|
|
# libdvdnav
|
|
ifeq ($(BR2_PACKAGE_LIBDVDNAV),y)
|
|
MPV_CONF_OPTS += --enable-dvdnav
|
|
MPV_DEPENDENCIES += libdvdnav
|
|
else
|
|
MPV_CONF_OPTS += --disable-dvdnav
|
|
endif
|
|
|
|
# libdrm
|
|
ifeq ($(BR2_PACKAGE_LIBDRM),y)
|
|
MPV_CONF_OPTS += --enable-drm
|
|
MPV_DEPENDENCIES += libdrm
|
|
else
|
|
MPV_CONF_OPTS += --disable-drm
|
|
endif
|
|
|
|
# libvdpau
|
|
ifeq ($(BR2_PACKAGE_LIBVDPAU),y)
|
|
MPV_CONF_OPTS += --enable-vdpau
|
|
MPV_DEPENDENCIES += libvdpau
|
|
else
|
|
MPV_CONF_OPTS += --disable-vdpau
|
|
endif
|
|
|
|
# LUA support, only for lua51/lua52/luajit
|
|
# This enables the controller (OSD) together with libass
|
|
ifeq ($(BR2_PACKAGE_LUA_5_1)$(BR2_PACKAGE_LUAJIT),y)
|
|
MPV_CONF_OPTS += --enable-lua
|
|
MPV_DEPENDENCIES += luainterpreter
|
|
else
|
|
MPV_CONF_OPTS += --disable-lua
|
|
endif
|
|
|
|
# OpenGL support
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
MPV_CONF_OPTS += --enable-gl
|
|
MPV_DEPENDENCIES += libgl
|
|
else
|
|
MPV_CONF_OPTS += --disable-gl
|
|
endif
|
|
|
|
# pulseaudio support
|
|
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
|
|
MPV_CONF_OPTS += --enable-pulse
|
|
MPV_DEPENDENCIES += pulseaudio
|
|
else
|
|
MPV_CONF_OPTS += --disable-pulse
|
|
endif
|
|
|
|
# samba support
|
|
ifeq ($(BR2_PACKAGE_SAMBA4),y)
|
|
MPV_CONF_OPTS += --enable-libsmbclient
|
|
MPV_DEPENDENCIES += samba4
|
|
else
|
|
MPV_CONF_OPTS += --disable-libsmbclient
|
|
endif
|
|
|
|
# SDL support
|
|
# Sdl2 requires 64-bit sync intrinsics
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_SYNC_8)$(BR2_PACKAGE_SDL2),yy)
|
|
MPV_CONF_OPTS += --enable-sdl2
|
|
MPV_DEPENDENCIES += sdl2
|
|
else
|
|
MPV_CONF_OPTS += --disable-sdl2
|
|
endif
|
|
|
|
# Raspberry Pi support
|
|
ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
|
|
MPV_CONF_OPTS += --enable-rpi --enable-gl
|
|
MPV_DEPENDENCIES += rpi-userland
|
|
else
|
|
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),)
|
|
MPV_CONF_OPTS += --enable-vaapi
|
|
MPV_DEPENDENCIES += libva
|
|
else
|
|
MPV_CONF_OPTS += --disable-vaapi
|
|
endif
|
|
else
|
|
MPV_CONF_OPTS += --disable-vaapi
|
|
endif
|
|
|
|
# wayland support
|
|
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
|
MPV_CONF_OPTS += --enable-wayland
|
|
MPV_DEPENDENCIES += libxkbcommon wayland wayland-protocols
|
|
else
|
|
MPV_CONF_OPTS += --disable-wayland
|
|
endif
|
|
|
|
# Base X11 support. Config.in ensures that if BR2_PACKAGE_XORG7 is
|
|
# enabled, xlib_libX11, xlib_libXext, xlib_libXinerama,
|
|
# xlib_libXrandr, xlib_libXScrnSaver.
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
MPV_CONF_OPTS += --enable-x11
|
|
MPV_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXinerama xlib_libXrandr xlib_libXScrnSaver
|
|
# XVideo
|
|
ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y)
|
|
MPV_CONF_OPTS += --enable-xv
|
|
MPV_DEPENDENCIES += xlib_libXv
|
|
else
|
|
MPV_CONF_OPTS += --disable-xv
|
|
endif
|
|
else
|
|
MPV_CONF_OPTS += --disable-x11
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
MPV_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -latomic"
|
|
endif
|
|
|
|
$(eval $(waf-package))
|