diff options
| author | john muhl | 2014-09-25 11:14:25 -0500 |
|---|---|---|
| committer | Tim D. Smith | 2014-09-29 10:47:20 -0700 |
| commit | edac5819786e7dfda9fa2d5a2322eb7630b46651 (patch) | |
| tree | b7a86e06c298068259777b07bad5b1044cbb433d /Library | |
| parent | a0d9ecf1ce73acee32de0eca937d25dfa80b0cd5 (diff) | |
| download | homebrew-edac5819786e7dfda9fa2d5a2322eb7630b46651.tar.bz2 | |
libebur128 1.0.2 (new formula)
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libebur128.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/libebur128.rb b/Library/Formula/libebur128.rb new file mode 100644 index 000000000..a09c6b5b6 --- /dev/null +++ b/Library/Formula/libebur128.rb @@ -0,0 +1,27 @@ +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" + + depends_on "cmake" => :build + depends_on "speex" => [:recommended, "with-libogg"] + + 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 |
