2010-08-26 18:07:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libvpx < Formula
|
2011-03-26 20:23:22 +00:00
|
|
|
url 'http://webm.googlecode.com/files/libvpx-v0.9.6.tar.bz2'
|
|
|
|
sha1 'a3522bd2b73d52381ba767ded1cbf4760e9cc6f8'
|
2010-08-26 18:07:32 +00:00
|
|
|
homepage 'http://www.webmproject.org/code/'
|
|
|
|
|
2011-03-26 20:23:22 +00:00
|
|
|
depends_on 'yasm' => :build
|
|
|
|
|
2010-08-26 18:07:32 +00:00
|
|
|
def install
|
2011-04-13 19:30:02 +00:00
|
|
|
args = "--prefix=#{prefix}"
|
|
|
|
# Configure detects 32-bit CPUs incorrectly.
|
|
|
|
args << "--target=generic-gnu" unless MacOS.prefer_64_bit?
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-08-29 12:05:32 +00:00
|
|
|
system "make install"
|
2010-08-26 18:07:32 +00:00
|
|
|
end
|
|
|
|
end
|