Building XCA on macOS from source

brew install pkg-config autoconf automake openssl qt libtool
mkdir ~/src
cd ~/src
git clone https://github.com/chris2511/xca.git
cd xca
./bootstrap
mkdir build && cd build
../configure --prefix=/tmp/xca --with-openssl=/usr/local/opt/openssl --with-qt=/usr/local/Cellar/qt/5.13.1/

replace in Makefile (near bottom):
    - -codesign --force --deep --signature-size=96000 -s "Christian Hohnstaedt" $(DMGSTAGE)/xca.app --timestamp
    + -codesign --force --deep --signature-size=96000 -s "YOUR SIGNING IDENTITY" $(DMGSTAGE)/xca.app --timestamp

make -j$(sysctl -n hw.logicalcpu)