Bug 277971

Summary: emulators/vice: configure fails with FFMPEG option set
Product: Ports & Packages Reporter: Ale <discipline>
Component: Individual Port(s)Assignee: Dirk Meyer <dinoex>
Status: Closed FIXED    
Severity: Affects Only Me Flags: dinoex: maintainer-feedback+
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ale 2024-03-26 08:12:24 UTC
checking for FFMPEG support... checking pkg-config is at least version 0.9.0... yes
via pkg-config
checking for FFMPEG_AV... yes
checking for libavformat/avformat.h... yes
checking for FFMPEG_SWSCALE... yes
checking for FFMPEG_SWRESAMPLE... yes
configure: error: ffmpeg version is not compatible. Use 4.x
===>  Script "configure" failed unexpectedly.

It seems that vice wants ffmpeg 4.x but configure finds compiler and linker flags for ffmpeg which is ffmpeg 6.x (multimedia/ffmpeg and multimedia/ffmpeg4 ports are both installed).
Also note that multimedia/ffmpeg is unconditionally listed in LIB_DEPENDS.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-03-27 14:42:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b23f3c86cb474dc98e2edc9cbef2743c27302f2

commit 3b23f3c86cb474dc98e2edc9cbef2743c27302f2
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2024-03-27 14:42:17 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2024-03-27 14:42:17 +0000

    emulators/vice: fix option FFMPEG

    PR: 277971

 emulators/vice/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Comment 2 Dirk Meyer freebsd_committer freebsd_triage 2024-03-27 18:27:52 UTC
Thanks for the report.
The option FFMPEG was disabled on my testbuilds.