sdl2

Cross-platform library for low-level access to audio, keyboard, mouse, and graphics

brewmacoslinux
Try with needOr install directly
Source

About

Low-level access to audio, keyboard, mouse, joystick, and graphics

Commands

sdl2-config

Examples

Get SDL2 compiler flags and libraries for compilation$ sdl2-config --cflags --libs
Check SDL2 installation version$ sdl2-config --version
Compile a C program using SDL2$ gcc myprogram.c $(sdl2-config --cflags --libs) -o myprogram