First you need to install pkg-config
brew install pkg-config
The official guide tell you that:
Installation in /usr/local:
./autogen.sh
make
(as root) make install
(as root) make desktop-install
Installation in $HOME:
./autogen.sh
./configure --prefix=$HOME
make
make install
make home-desktop-install
However, first you need to install dependencies:
No package ‘gtk±2.0’ found
No package ‘libgnomecanvas-2.0’ found
No package ‘poppler-glib’ found
No package ‘pangoft2’ found
brew install gtk+
brew install libgnomecanvas
brew install poppler
brew install pango
After this, you can go ahead to follow the official guide installation instructions. Good luck.