Added pkg-config generation patch to solve issue #28072

I added a patch to generate the `.pc` file in CMake to solve issue https://github.com/Homebrew/homebrew/issues/28072