Created attachment 222436 [details]
Patch for moc
Instead of pulling in lib(flac) and libmad utilize ffmpeg which also supports a lot more formats and offers better performance overall.
Can't find a browsable online repo so I'll refer to the source code instead.
decoder_plugins/ffmpeg/ffmpeg.c L325 and below
Also utilize USES= localbase:ldflags instead setting it manually via CPP and LDFLAGS
Compile and runtime-tested on FreeBSD 13.0-BETA2 (amd64) (make, make check-plist)
Build and package info is available at https://gitlab.com/swills/freebsd-ports/pipelines/263179086
I don't want to make ffmpeg a dependency by default. Also I think there is already an option to use ffmpeg so the better performance is there for those that want it.
Any reason for this? It would be very nice if we could move away from abdandomware such as libmad, being abdandomware it's also hard(er) to keep track of security issues such as r517408