aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xvid.rb
blob: da2c3173465957fed861d889a8dda3f221fc891a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'

class Xvid < Formula
  homepage 'http://www.xvid.org'
  url 'http://fossies.org/unix/privat/xvidcore-1.3.3.tar.gz'
  # Official download takes a long time to fail, so set it as the mirror for now
  mirror 'http://downloads.xvid.org/downloads/xvidcore-1.3.3.tar.gz'
  sha1 '465763c92679ca230526d4890d17dbf6d6974b08'

  bottle do
    cellar :any
    revision 1
    sha1 "7909530c342faf017a3182e8393e24eaf11ebd02" => :yosemite
    sha1 "f8c77d6d2ea36943646f6ffcfcc999db50d62bab" => :mavericks
    sha1 "d0df269c7a0ef1e6c1d2a05ef0e8b9cea0b2d461" => :mountain_lion
  end

  def install
    cd 'build/generic' do
      system "./configure", "--disable-assembly", "--prefix=#{prefix}"
      ENV.j1 # Or make fails
      system "make"
      system "make install"
    end
  end
end