XQuartz 2.7.11.0 or above (needed for OSMesa)
https://www.xquartz.org
LibPNG version 1.6.35 or above
http://www.libpng.org
GL2PS version 1.4.0 or above
http://geuz.org/gl2ps
LibJPEG version 9c or above
http://www.ijg.org
TinyXML version 2.6.2 or above
http://www.grinninglizard.com/tinyxml/
MiniZIP version 1.2.11 or above
http://www.winimage.com/zLibDll/minizip.html
XQuartz 2.7.11.0 or above (needed for X11)
https://www.xquartz.org
LibTIFF version 4.0.10 or above
http://www.libtiff.org
OpenEXR version 2.2.0 or above
http://www.openexr.com
SDL2 version 2.0.9 or above (used for the experimental display preview)
http://www.libsdl.org
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
$ brew reinstall libpng
$ brew install tinyxml gl2ps libjpeg minizip openexr sdl2 libtiff
$ brew install --cask xquartz
$ otool -L $(brew list libpng | grep dylib$)
/usr/local/Cellar/libpng/1.6.35/lib/libpng.dylib:
/usr/local/opt/libpng/lib/libpng16.16.dylib (compatibility version 52.0.0, current version 52.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)