[Bug 275266] multimedia/mpv: 0.37 build fail

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 22 Nov 2023 16:57:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275266

            Bug ID: 275266
           Summary: multimedia/mpv: 0.37 build fail
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: multimedia@FreeBSD.org
          Reporter: rozhuk.im@gmail.com
             Flags: maintainer-feedback?(multimedia@FreeBSD.org)
          Assignee: multimedia@FreeBSD.org

Looks like libplacebo.so:graphics/libplacebo need for build in any case.
Also some options not implemented in port Makefile.

===>  Cleaning for mpv-0.37.0,1
===>  License GPLv2+ LGPL21+ accepted by the user
===>   mpv-0.37.0,1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by mpv-0.37.0,1 for building
===>  Extracting for mpv-0.37.0,1
=> SHA256 Checksum OK for mpv-player-mpv-v0.37.0_GH0.tar.gz.
===>  Patching for mpv-0.37.0,1
===>  Applying FreeBSD patches for mpv-0.37.0,1 from
/usr/ports/multimedia/mpv/files
===>   mpv-0.37.0,1 depends on package: ffmpeg>=4.0.2,1 - found
===>   mpv-0.37.0,1 depends on file: /usr/local/include/linux/dvb/dmx.h - found
===>   mpv-0.37.0,1 depends on executable: update-desktop-database - found
===>   mpv-0.37.0,1 depends on package: libiconv>=1.14_11 - found
===>   mpv-0.37.0,1 depends on executable: meson - found
===>   mpv-0.37.0,1 depends on executable: ninja - found
===>   mpv-0.37.0,1 depends on package: pkgconf>=1.3.0_1 - found
===>   mpv-0.37.0,1 depends on file: /usr/local/bin/python3.9 - found
===>   mpv-0.37.0,1 depends on package: xorgproto>=0 - found
===>   mpv-0.37.0,1 depends on file: /usr/local/libdata/pkgconfig/x11.pc -
found
===>   mpv-0.37.0,1 depends on file: /usr/local/libdata/pkgconfig/xext.pc -
found
===>   mpv-0.37.0,1 depends on file: /usr/local/libdata/pkgconfig/xinerama.pc -
found
===>   mpv-0.37.0,1 depends on file: /usr/local/libdata/pkgconfig/xpresent.pc -
found
===>   mpv-0.37.0,1 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc -
found
===>   mpv-0.37.0,1 depends on file: /usr/local/libdata/pkgconfig/xscrnsaver.pc
- found
===>   mpv-0.37.0,1 depends on file: /usr/local/libdata/pkgconfig/xv.pc - found
===>   mpv-0.37.0,1 depends on file: /usr/local/libdata/pkgconfig/xxf86vm.pc -
found
===>   mpv-0.37.0,1 depends on file: /usr/local/bin/ccache - found
===>   mpv-0.37.0,1 depends on shared library: libavcodec.so - found
(/usr/local/lib/libavcodec.so)
===>   mpv-0.37.0,1 depends on shared library: libass.so - found
(/usr/local/lib/libass.so)
===>   mpv-0.37.0,1 depends on shared library: libva.so - found
(/usr/local/lib/libva.so)
===>   mpv-0.37.0,1 depends on shared library: libvdpau.so - found
(/usr/local/lib/libvdpau.so)
===>   mpv-0.37.0,1 depends on shared library: libjpeg.so - found
(/usr/local/lib/libjpeg.so)
===>   mpv-0.37.0,1 depends on shared library: libarchive.so.13 - found
(/usr/local/lib/libarchive.so.13)
===>   mpv-0.37.0,1 depends on shared library: liblua-5.2.so - found
(/usr/local/lib/liblua-5.2.so)
===>   mpv-0.37.0,1 depends on shared library: libEGL.so - found
(/usr/local/lib/libEGL.so)
===>   mpv-0.37.0,1 depends on shared library: libgbm.so - found
(/usr/local/lib/libgbm.so)
===>  Configuring for mpv-0.37.0,1
WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using
both is redundant since they override each other. See:
https://mesonbuild.com/Builtin-options.html#build-type-options
The Meson build system
Version: 1.3.0
Source dir: /tmp/ports/usr/ports/multimedia/mpv/work/mpv-0.37.0
Build dir: /tmp/ports/usr/ports/multimedia/mpv/work/mpv-0.37.0/_build
Build type: native build
Project name: mpv
Project version: 0.37.0
C compiler for the host machine: cc (clang 16.0.6 "FreeBSD clang version 16.0.6
(https://github.com/llvm/llvm-project.git llvmorg-16.0.6-0-g7cbf1a259152)")
C linker for the host machine: cc ld.lld 16.0.6
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program python3 found: YES (/usr/local/bin/python3)
Found pkg-config: YES (/usr/local/bin/pkgconf) 2.0.3
Run-time dependency libavcodec found: YES 60.31.102
Run-time dependency libavfilter found: YES 9.12.100
Run-time dependency libavformat found: YES 60.16.100
Run-time dependency libavutil found: YES 58.29.100
Run-time dependency libswresample found: YES 4.12.100
Run-time dependency libswscale found: YES 7.5.100
Found CMake: /usr/local/bin/cmake (3.27.7)
Run-time dependency libplacebo found: NO (tried pkgconfig and cmake)

meson.build:26:13: ERROR: Dependency "libplacebo" not found, tried pkgconfig
and cmake

A full log can be found at
/tmp/ports/usr/ports/multimedia/mpv/work/mpv-0.37.0/_build/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup
[options]` is ambiguous and deprecated.
===>  Script "configure" failed unexpectedly.
Please report the problem to multimedia@FreeBSD.org [maintainer] and attach
the
"/tmp/ports/usr/ports/multimedia/mpv/work/mpv-0.37.0/_build/meson-logs/meson-log.txt"
including the output of the failure of your make command. Also, it might be
a good idea to provide an overview of all packages installed on your system
(e.g. a /usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1


# make showconfig
===> The following configuration options are available for mpv-0.37.0,1:
     ARCHIVE=on: bzip2/zip/iso9660 archive support
     DOCS=off: Build and/or install documentation
     EXAMPLES=off: Build and/or install examples
     LCMS2=off: Little CMS 2.x support
     MANPAGES=off: Build and/or install manual pages
     MUJS=off: Use MuJS for Javascript language support
     RUBBERBAND=off: High quality pitch correction with librubberband
     UCHARDET=off: Guess subtitle encoding via uchardet
     ZIMG=off: High quality software scaling via "z" library
====> Input
     CDIO=off: CDIO support via libcdio
     DVDNAV=off: DVD menu navigation
     LIBBLURAY=off: Blu-ray discs support via libbluray
     V4L=on: Video 4 Linux support
     VAPOURSYNTH=off: VapourSynth filter bridge
====> Video Output
     CACA=off: libcaca graphics library support
     NVDEC=off: NVIDIA decoder with CUDA support
     OPENGL=on: 2D/3D rendering support via OpenGL
     SIXEL=off: Sixel graphics support
     VAAPI=on: VAAPI (GPU video acceleration) support
     VDPAU=on: VDPAU (GPU video acceleration) support
     VULKAN=off: Vulkan output support
     WAYLAND=off: Wayland (graphics) support
     X11=on: X11 (graphics) support
====> Audio Output
     ALSA=off: ALSA audio architecture support
     JACK=off: JACK audio server support
     OPENAL=off: Audio support via OpenAL
     PIPEWIRE=off: PipeWire multimedia server support
     PULSEAUDIO=off: PulseAudio sound server support
     SDL=off: Simple Direct Media Layer support
     SNDIO=off: Sndio audio support
====> Lua scripting language support: you have to select exactly one of them
     LUA=on: Lua scripting language support
     LUAJIT=off: Use LuaJIT instead of Lua scripting language support
     LUA_NONE=off: Disable Lua scripting language support
====> Options available for the radio YOUTUBE: you can only select none or one
of them
     YTDL=off: Install youtube-dl
     YTDLP=on: Install yt-dlp (youtube-dl fork)
===> Use 'make config' to modify these settings

-- 
You are receiving this mail because:
You are the assignee for the bug.