git: 5594d5eafe14 - main - multimedia/mpv: unbreak with --auto-features=enabled

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 20 Mar 2023 20:31:35 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5594d5eafe146fdd07a26e10801fa73a716d356c

commit 5594d5eafe146fdd07a26e10801fa73a716d356c
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-20 20:04:28 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-20 20:31:07 +0000

    multimedia/mpv: unbreak with --auto-features=enabled
    
    meson.build:363:0: ERROR: Feature win32-internal-pthreads cannot be enabled: the os is not win32!
    meson.build:391:0: ERROR: Dependency "appleframeworks" not found, tried framework
    meson.build:710:0: ERROR: Feature sdl2-gamepad cannot be enabled: sdl2 was not found!
    meson.build:772:0: ERROR: Dependency "appleframeworks" not found, tried framework
    meson.build:784:0: ERROR: Dependency "appleframeworks" not found, tried framework
    meson.build:817:0: ERROR: C shared or static library 'OpenSLES' not found
    meson.build:848:0: ERROR: Feature sdl2-audio cannot be enabled: sdl2 was not found!
    meson.build:864:0: ERROR: C symbol IAudioClient not found in header audioclient.h
    meson.build:885:0: ERROR: Feature direct3d cannot be enabled: the build is not GPL or this is not a win32 desktop!
    meson.build:941:0: ERROR: Feature sdl2-video cannot be enabled: sdl2 was not found!
    meson.build:964:0: ERROR: Dependency "spirv-cross-c-shared" not found, tried pkgconfig and cmake
    meson.build:970:0: ERROR: Feature d3d11 cannot be enabled: Either is not a win32 desktop or shaderc nor spirv-cross were found!
    meson.build:1067:0: ERROR: Feature gl-cocoa cannot be enabled: cocoa and GL were not found!
    meson.build:1078:0: ERROR: Feature gl-win32 cannot be enabled: GL and win32 desktop were not found!
    meson.build:1104:0: ERROR: Feature gl-dxinterop cannot be enabled: gl-dxinterop could not be found!
    meson.build:1113:0: ERROR: Feature egl-angle cannot be enabled: egl-angle could not be found!
    meson.build:1124:0: ERROR: Feature egl-angle-lib cannot be enabled: egl-angle-lib could not be found!
    meson.build:1131:0: ERROR: Feature egl-angle-win32 cannot be enabled: either this is not a win32 desktop or egl-angle was not found!
    meson.build:1150:0: ERROR: Feature egl-android cannot be enabled: the OS is not android!
    meson.build:1268:0: ERROR: Feature android-media-ndk cannot be enabled
    meson.build:1298:0: ERROR: Feature d3d-hwaccel cannot be enabled: the os is not win32!
    meson.build:1315:0: ERROR: Feature d3d9-hwaccel cannot be enabled: d3d-hwaccel was not found!
    meson.build:1327:0: ERROR: Feature gl-dxinterop-d3d9 cannot be enabled: gl-dxinterop and d3d9-hwaccel were not found!
    meson.build:1336:0: ERROR: C symbol GL_RGB32F not found in header OpenGLES/ES3/glext.h
    meson.build:1342:0: ERROR: Feature rpi-mmal cannot be enabled: rpi was not found!
    meson.build:1431:0: ERROR: Feature videotoolbox-gl cannot be enabled: gl-cocoa nor ios-gl could be found!
    meson.build:1462:0: ERROR: Feature macos-10-11-features cannot be enabled: a suitable macos sdk version could not be found!
    meson.build:1467:0: ERROR: Feature macos-10-12-2-features cannot be enabled: a suitable macos sdk version could not be found!
    meson.build:1472:0: ERROR: Feature macos-10-14-features cannot be enabled: a suitable macos sdk version could not be found!
    meson.build:1477:0: ERROR: Program 'xcrun' not found or not executable
    meson.build:1512:0: ERROR: Feature macos-cocoa-cb cannot be enabled: Either cocoa or swift could not be found!
    meson.build:1522:0: ERROR: Feature macos-media-player cannot be enabled: Either the macos sdk version is not at least 10.12.2 or swift was not found!
    meson.build:1535:0: ERROR: Feature macos-touchbar cannot be enabled: Either cocoa could not be found or the macos-touchbar check failed!
    
    PR:             270361
---
 multimedia/mpv/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/multimedia/mpv/Makefile b/multimedia/mpv/Makefile
index 7adada462107..599f281242c2 100644
--- a/multimedia/mpv/Makefile
+++ b/multimedia/mpv/Makefile
@@ -28,7 +28,8 @@ SHEBANG_FILES=	*.py TOOLS/*.py
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	mpv-player
-MESON_ARGS=	-Dshaderc=disabled \
+MESON_ARGS=	--auto-features=auto \
+		-Dshaderc=disabled \
 		-Dlibmpv=true
 
 OPTIONS_DEFINE=		ARCHIVE DOCS LCMS2 MANPAGES MUJS RUBBERBAND TEST UCHARDET EXAMPLES ZIMG