diff options
| author | Alfred E. Heggestad | 2014-05-21 00:17:30 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2014-06-01 15:40:36 -0700 |
| commit | 3cc12267f47378c5ae7802fa9f7096c6d690a63c (patch) | |
| tree | c57bbaff40e8984ec55a7e7846ff72cb54d73c5f /Library/Formula/librem.rb | |
| parent | b16bf9b13d131c36a5cdea8b134e053caa304d45 (diff) | |
| download | homebrew-3cc12267f47378c5ae7802fa9f7096c6d690a63c.tar.bz2 | |
librem 0.4.6
Librem is an Open Source library for Audio and video processing.
Closes #29437.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/librem.rb')
| -rw-r--r-- | Library/Formula/librem.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/librem.rb b/Library/Formula/librem.rb new file mode 100644 index 000000000..232c3c78b --- /dev/null +++ b/Library/Formula/librem.rb @@ -0,0 +1,24 @@ +require "formula" + +class Librem < Formula + homepage "http://www.creytiv.com" + url "http://www.creytiv.com/pub/rem-0.4.6.tar.gz" + sha1 "9698b48aee5e720e56440f4c660d8bd4dbb7f8fa" + + depends_on "libre" + + def install + system "make", "install", "PREFIX=#{prefix}" + end + + test do + (testpath/'test.c').write <<-EOS.undent + #include <re/re.h> + #include <rem/rem.h> + int main() { + return NULL != vidfmt_name(VID_FMT_YUV420P); + } + EOS + system ENV.cc, "test.c", "-lrem" + end +end |
