require 'formula' class Mednafen :build depends_on 'sdl' depends_on 'sdl_net' depends_on 'libcdio' depends_on 'libsndfile' def install # someone with more C++ juice than me can undertake to patch the # crasher in Blip_Synth<8, 1>::offset_resampled that happens with # even minimal optimizations turned on (in LLVM or GCC 4.2) ENV.no_optimization system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make install" end end