freeglut

Open-source OpenGL window toolkit for 3D graphics applications

brewmacoslinux
Try with needOr install directly
Source

About

Open-source alternative to the OpenGL Utility Toolkit (GLUT) library

Examples

compile C program that uses OpenGL graphics$ gcc myprogram.c -o myprogram -lglut -lGL -lm
link freeglut library when building 3D application$ pkg-config --cflags --libs glut
check if freeglut development files are installed$ brew list freeglut
find freeglut header files on system$ find $(brew --prefix freeglut) -name glut.h
build OpenGL project with CMake using freeglut$ cmake -DCMAKE_PREFIX_PATH=$(brew --prefix freeglut) .