2014-09-25 16:14:25 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Libebur128 < Formula
|
|
|
|
homepage "https://github.com/jiixyj/libebur128"
|
|
|
|
url "https://github.com/jiixyj/libebur128/archive/v1.0.2.tar.gz"
|
|
|
|
sha1 "b1e2949e6598053edb8aeaf71614a26efcb38bd0"
|
|
|
|
|
2014-09-29 17:39:39 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-23 22:44:15 +00:00
|
|
|
revision 2
|
|
|
|
sha1 "69b35529f8165ed8cac324b10d52ce3671e7ab66" => :yosemite
|
|
|
|
sha1 "5d44054e39a6f9c9ad27754ea94bd785e913847e" => :mavericks
|
|
|
|
sha1 "f064843d5ebf08a42d5e02809e398907a242e37d" => :mountain_lion
|
2014-09-29 17:39:39 +00:00
|
|
|
end
|
|
|
|
|
2014-09-25 16:14:25 +00:00
|
|
|
depends_on "cmake" => :build
|
2014-10-23 22:26:52 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-10-13 16:17:36 +00:00
|
|
|
depends_on "speex" => :recommended
|
2014-09-25 16:14:25 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"test.c").write <<-EOS.undent
|
|
|
|
#include <ebur128.h>
|
|
|
|
int main() {
|
|
|
|
ebur128_init(5, 44100, EBUR128_MODE_I);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
EOS
|
|
|
|
system ENV.cc, "test.c", "-lebur128", "-o", "test"
|
|
|
|
system "./test"
|
|
|
|
end
|
|
|
|
end
|