Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2023 09:09:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   [Bug 261302] multimedia/ffmpeg: update to 6.0
Message-ID:  <bug-261302-12827-ywJROiy5Pc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-261302-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-261302-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261302

--- Comment #73 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Daniel Engberg from comment #72)
> it doesn't necessarily mean that it'll pick up the legacy version first

override.mk was designed primarily for Meson which standardized pkg-config =
but
should also work for autotools where pkg-config is common. Unfortunately, C=
Make
prefers its own module system instead of pkg-config with standard modules b=
eing
those shipped with CMake itself. To support USES=3Dcmake in override.mk som=
eone
needs to catalogue third-party CMake modules used to find FFmpeg and figure=
 out
the common workaround.

$ pkg info -l cmake-core | fgrep .cmake | xargs fgrep -Hi avcodec || echo E=
xit
$?
Exit 1

Note, USES=3Dlocalbase in override.mk reorders -I/usr/local/include if adde=
d by
another dependency to the end of the search order but it doesn't affect
-L/usr/local/lib as there's no equivalent for -I vs. -isystem i.e., to enfo=
rce
-L/path -lfoo one is supposed to pass /path/libfoo.so instead.=20

> Perhaps temporarily "hide" one version somehow?

Depends on what is used to find ffmpeg. If pkg-config then PKG_CONFIG_LIBDIR
can override the primary location for *.pc files. However, doing so will br=
eak
search for other dependencies via pkg-config and not necessary because
PKG_CONFIG_PATH *prepends* the location e.g.,

$ pkg install ffmpeg ffmpeg4
$ pkg-config --path libavcodec
/usr/local/libdata/pkgconfig/libavcodec.pc
$ PKG_CONFIG_PATH=3D/usr/local/ffmpeg4/libdata/pkgconfig pkg-config --path
libavcodec
/usr/local/ffmpeg4/libdata/pkgconfig/libavcodec.pc

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261302-12827-ywJROiy5Pc>