The media-autobuild_suite prepared support for liblensfun to be built into ffmpeg, but did not yet activate it.
I did so (with some manual editing, for testing purposes) and had to discover that there are issues with pkg-config files under MSYS2. In general, ffmpeg seems to have specific naming conventions and may expect the package configuration file to be named lib/pkgconfig/liblensfun.pc instead of lib/pkgconfig/lensfun.pc to match liblensfun.a in the file name to be linked – according to one of the main developers of MABS.
There is a linker error reported in ffmpeg's configure log:
The reason may be similar to MINGW-packages issue 988 where a GCC flag
was recommended.
The issue has been solved in the media-autobuild suite; both separate naming and correct static compilation are handled well now.
This issue can be closed.