2010-01-09 20:05:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Celt < Formula
|
2010-01-09 20:05:59 +00:00
|
|
|
homepage 'http://www.celt-codec.org/'
|
2013-01-27 02:14:23 +00:00
|
|
|
url 'http://downloads.xiph.org/releases/celt/celt-0.11.1.tar.gz'
|
2012-01-26 00:03:49 +00:00
|
|
|
sha256 '01c2579fba8b283c9068cb704a70a6e654aa74ced064c091cafffbe6fb1d4cbf'
|
2010-01-09 20:05:59 +00:00
|
|
|
|
2010-06-05 18:04:37 +00:00
|
|
|
depends_on 'libogg' => :optional
|
2010-01-09 20:05:59 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2335
|
|
|
|
cause "'make check' fails"
|
|
|
|
end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2014-05-11 16:28:36 +00:00
|
|
|
option :universal
|
|
|
|
|
2010-01-09 20:05:59 +00:00
|
|
|
def install
|
2014-05-11 16:28:36 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2010-10-21 03:18:10 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2012-01-26 00:03:49 +00:00
|
|
|
"--prefix=#{prefix}"
|
2010-01-09 20:05:59 +00:00
|
|
|
system "make check"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|