homebrew-core/Formula/kvazaar.rb
Dirk Gadsden 8d2a2ce7a7 kvazaar 0.2.0 (new formula)
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>

Closes Homebrew/homebrew#26276.
2014-01-31 18:43:39 +01:00

25 lines
673 B
Ruby

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