Review very welcome. I'm not sure if my changes to the pkg-config provides system are acceptable.
Closes #10076