% brew list | grep sdl
sdl
sdl_gfx
sdl_image
sdl_net
sdl_ttf
I have all the libraries installed, and rubysdl installs fine, but if I manually run the build I see the following from extconf.rb:
10079 % sdl-config --cflags
-I/usr/local/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE
10080 % sdl-config --libs
-L/usr/local/lib -lSDLmain -lSDL -Wl,-framework,Cocoa
10071 % ruby extconf.rb
checking for SMPEG_new() in -lsmpeg... no
checking for Mix_OpenAudio() in -lSDL_mixer... no
checking for IMG_Load() in -lSDL_image... no
checking for TTF_Init() in -lSDL_ttf... no
checking for sge_Line() in -lSGE... no
checking for TTF_OpenFontIndex()... no
checking for TTF_FontFaces()... no
checking for TTF_FontFaceIsFixedWidth()... no
checking for TTF_FontFaceFamilyName()... no
checking for TTF_FontFaceStyleName()... no
checking for Mix_LoadMUS_RW()... no
checking for rb_thread_blocking_region()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl()... yes
checking for rb_enc_str_new()... yes
checking for rb_str_export_to_enc()... yes
checking for SDLSKK_Context_new() in -lSDLSKK... no
creating Makefile
10077 % rsdl sample/aadraw.rb
sample/aadraw.rb:8:in `<main>': undefined method `draw_line' for #<SDL::Screen:0x007f83539430f8> (NoMethodError)