aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libvpx.rb
blob: f3f17d011bdec44c8dcbf4b043913d6110c47c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Libvpx < Formula
  url 'http://webm.googlecode.com/files/libvpx-v0.9.6.tar.bz2'
  sha1 'a3522bd2b73d52381ba767ded1cbf4760e9cc6f8'
  homepage 'http://www.webmproject.org/code/'

  depends_on 'yasm' => :build

  def install
    args = ["--prefix=#{prefix}"]
    # Configure detects 32-bit CPUs incorrectly.
    args << "--target=generic-gnu" unless MacOS.prefer_64_bit?

    system "./configure", *args
    system "make install"
  end
end