- Clone or download QEMU (I went with v5.2.0-rc3 but I don't think it matters)
- Apply the patchseries by Alexander Graf, either manually or using git-pw https://patchwork.kernel.org/project/qemu-devel/list/?series=391797
- Apply the additional patch from below (source)
- Install required packages for building:
brew install libffi gettext pkg-config autoconf automake pixman