diff options
| author | Dirk Gadsden | 2014-01-31 18:43:21 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-31 18:43:39 +0100 |
| commit | b43dcebcf849f1818b5c87fa7866d7196a57551f (patch) | |
| tree | 539fe6c8fdfdc9b3fd7cb1bf0797253c1308e280 /Library/Formula | |
| parent | ce202c6d4af9bad2549abce2523feb48847d0d86 (diff) | |
| download | homebrew-b43dcebcf849f1818b5c87fa7866d7196a57551f.tar.bz2 | |
kvazaar 0.2.0 (new formula)
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Closes #26276.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/kvazaar.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/kvazaar.rb b/Library/Formula/kvazaar.rb new file mode 100644 index 000000000..a703c5445 --- /dev/null +++ b/Library/Formula/kvazaar.rb @@ -0,0 +1,25 @@ +require "formula" + +class Kvazaar < Formula + homepage "https://github.com/ultravideo/kvazaar" + url "https://github.com/ultravideo/kvazaar/archive/v0.2.0.tar.gz" + sha1 "b0f23dc0d421e64183deba8fdcd2347863d711d5" + + depends_on 'yasm' => :build + + def install + cd 'src' do + # Have to manually change these right now; see: + # https://github.com/ultravideo/kvazaar/issues/2 + inreplace 'Makefile', 'elf64', 'macho64' + inreplace 'Makefile', 'elf', 'macho32' + inreplace 'x64/test64.asm', 'cpuId64', '_cpuId64' + system 'make' + end + bin.install 'src/kvazaar' + end + + test do + system "kvazaar 2>&1 | grep 'HEVC Encoder v. 0.2'" + end +end |
