2010-08-26 18:07:32 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libvpx < Formula
|
2011-08-06 11:08:38 +00:00
|
|
|
url 'http://webm.googlecode.com/files/libvpx-v0.9.7.tar.bz2'
|
|
|
|
sha1 '639596df7182a93db83f61af8f5bb5b6a13dcf63'
|
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-14 16:38:43 +00:00
|
|
|
args = ["--prefix=#{prefix}"]
|
2011-04-13 19:30:02 +00:00
|
|
|
# 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
|