homebrew-core/Formula/kvazaar.rb

26 lines
673 B
Ruby
Raw Normal View History

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