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