Building from source without homebrew or any other package manager.
Download the latest version of the [https://pkg-config.freedesktop.org/releases/?C=M;O=A](pkg-config source).
LDFLAGS="-framework CoreFoundation -framework Carbon" ./configure --with-internal-glib
make
sudo make install
https://opensource.ncsa.illinois.edu/confluence/display/DESDM/Installing+pkg-config+from+source+for+OSX
try this!