require 'formula' require Formula.path('sdl') class SdlMixer :optional depends_on 'libmikmod' => :optional #depends_on 'smpeg' => :optional # http://icculus.org/smpeg/ def install Sdl.use_homebrew_prefix 'SDL_mixer.pc.in' system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking" system "make install" end end