...Admittedly, it was a real bitch to compile cgminer of anykind for macOS, so I understand your pain. Keep trying, you'll get there. Just make sure you read the brew install error messages very carefully. Some of the module names are not the same as you have for apt-get in Linux/Ubuntu, so you'll have to try variations in brew to get them to install correctly.
Can't emphasise this enough. It was a breeze setting it up on a Pi (Debian), but on macOS, woowee I remember it feeling like a never-ending game of solve-one-error... then scour the some obscure github comments section for some alternate switch or package update... only to encounter another error, sigh... and repeat
It did work in the end though, so hang in there. Just hope I archived the cobbled how-to txt doc if I need to repeat the process in the future. Fingers crossed I won't as it's been chundling along happily on a pi zero for quite a while now. For the low price, they're a great option worth considering.