- brew install postgresql@11
- go to https://postgis.net/ and download 2.5.x
- extract
- cd into folder
- brew install proj pcre json-c
- use brew info proj / pcre / json-c to find the following directories
./configure --with-projdir=/usr/local/Cellar/proj/7.0.0 --with-jsondir=/usr/local/Cellar/json-c/0.13.1 --with-pcredir=/usr/local/Cellar/pcre/8.44
make
make install