How do I use Mesa drivers on macOS?

Can anybody give me any information on using Mesa under macOS?

I see that Homebrew also contains prebuilt Mesa binaries but I’m unsure how to use them. I know with Windows you simply place the Mesa DLLs (opengl32.dll, etc) next to the application executable and it works but I’m not sure with macOS.

My goal is to use eduke32 [game engine] with the llvmpipe driver. I can compile eduke32 under macOS but again I’m unsure how to implement Mesa.

Thanks for any help!