If MacPorts is compiling from source, you're either using a non-default varient, on a very old version of OS X (MacPorts supports Tiger, but doesn't build binaries), or have some other unusual configuration option set.
If MacPorts is compiling from source, you're either using a non-default varient, on a very old version of OS X (MacPorts supports Tiger, but doesn't build binaries), or have some other unusual configuration option set.
> sh ~ % sudo port install ffmpeg
---> Computing dependencies for ffmpeg
The following dependencies will be installed:
Xft2
XviD
aom
autoconf
automake
brotli
cairo
cargo
cargo-bootstrap
cargo-c
cctools
cmake
... etc
Does the list change if you specify the +gpl2 varient?
Heavenly Lord, he just keeps coming back with more rules lawyering. The macport for git goes through patching, configuring, building routine that is common in source code installs. Give me peace of mind, strength, and patience in dealing with internet trolls.
I suggested the +gpl2 varient because I noticed it was present for all the ffmpeg binaries on MacPorts's build server. This is probably why. http://packages.macports.org/ffmpeg/
Now, if adding +gpl2 still causes MacPorts to pull in cmake, that's interesting, and I would like to bring that up on MacPorts's mailing list in case there's a bug. But I suspect adding +gpl2 will make it go away.
Also, for instance, OpenJDK is a port that is offered and we do not compile that in any way on any system because that way lies madness.
The other reason that macports will build from source is when there isn’t a binary like early on in Big Sur.
With your example of ffmpeg, you can check yourself that ffmpeg-4.3.2_0+gpl2.darwin_18.x86_64.tbz2 exists as a binary archive and will be used on a standard install on macOS 10.14. MacPorts will definitely not build ffmpeg from source by default.
I recommend you test again with something simpler than ffmpeg, for example bzip2 or less.