require 'formula' class Sox < Formula homepage 'http://sox.sourceforge.net/' url 'http://downloads.sourceforge.net/project/sox/sox/14.4.0/sox-14.4.0.tar.gz' md5 'b0c15cff7a4ba0ec17fdc74e6a1f9cf1' depends_on 'pkg-config' => :build depends_on :libpng depends_on 'mad' depends_on 'libvorbis' => :optional depends_on 'flac' => :optional depends_on 'libsndfile' => :optional depends_on 'libao' => :optional def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--disable-gomp" system "make install" end end