require 'formula' class Madplay "http://svn.macports.org/repository/macports/trunk/dports/audio/madplay/files/patch-audio_carbon.c"} end def install configure_flags = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"] # Avoid "error: CPU you selected does not support x86-64 instruction set" configure_flags << "--build=x86_64" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6 system "./configure", *configure_flags system "make install" end end