Revert "Use ECMGeneratePkgConfigFile to create the pkgconfig file."
The pkgconfig file name and the library name don't match for frameworks.
If the LIB_NAME parameter is used, this will also replace the "Name:" content.
This reverts commit 52267908a1e4bc968111e74bffc0cbf7f7f014c7.