2010-01-21 04:29:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mednafen < Formula
|
2010-01-21 04:29:15 +00:00
|
|
|
homepage 'http://mednafen.sourceforge.net/'
|
2010-10-17 16:59:34 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/mednafen/Mednafen/0.8.D.3/mednafen-0.8.D.3.tar.bz2'
|
|
|
|
md5 '57d22805071becd81858b0c088a275e5'
|
|
|
|
version '0.8.D.3'
|
2010-01-21 04:29:15 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-01-21 04:29:15 +00:00
|
|
|
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
|