You need the Gentoo package libpqxx for this.
In the src directory there are a few shell scripts:
- make.sh - makes the ready-for-installation version
- make-inter.sh - makes a locally running (see the next one) non-daemonising version
- make-local.sh - makes a locally runnable version (writes logs and gets configs from the current directory)