postgresql_16:9.10.2.2 Installation on FreeBSD
PostgreSQL 16 > Appendixes > Documentation > Tool Sets > Installation on FreeBSD
To install the required packages with pkg, use: pkg install docbook-xml docbook-xsl libxslt fop
When building the documentation from the doc directory you'll need to use gmake, because the makefile provided is not suitable for FreeBSD's make.