homebrew-core/Formula/vorbis-tools.rb
Adrian Bacon 49871fa680 Make flac optional for vorbis-tools
Closes Homebrew/homebrew#23568.

Signed-off-by: Xiyue Deng <manphiz@gmail.com>
2013-10-24 21:41:00 -07:00

27 lines
580 B
Ruby

require 'formula'
class VorbisTools < Formula
homepage 'http://vorbis.com'
url 'http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz'
sha1 'fc6a820bdb5ad6fcac074721fab5c3f96eaf6562'
depends_on 'libogg'
depends_on 'libvorbis'
depends_on 'libao'
depends_on 'flac' => :optional
def install
args = [
"--disable-debug",
"--disable-dependency-tracking",
"--disable-nls",
"--prefix=#{prefix}"
]
args << "--without-flac" unless build.with? 'flac'
system "./configure", *args
system "make install"
end
end