aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lame.rb
blob: 6afe8b22724d7a9b10e530963c5e6cfe7a8c820b (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
27
28
29
class Lame < Formula
  homepage "http://lame.sourceforge.net/"
  url "https://downloads.sourceforge.net/sourceforge/lame/lame-3.99.5.tar.gz"
  sha1 "03a0bfa85713adcc6b3383c12e2cc68a9cfbf4c4"

  bottle do
    cellar :any
    revision 1
    sha1 "6e0b0c061c85bff64ac8359227d75133e6eb4234" => :yosemite
    sha1 "7ce12008e94a451c7564e6b966d9c088e4934082" => :mavericks
    sha1 "5e14b56d3bd8d6b93e8245bdf8ed4b01fd3899a3" => :mountain_lion
  end

  option :universal

  def install
    ENV.universal_binary if build.universal?

    system "./configure", "--disable-dependency-tracking",
                          "--disable-debug",
                          "--prefix=#{prefix}",
                          "--enable-nasm"
    system "make", "install"
  end

  test do
    system "#{bin}/lame", "--genre-list", test_fixtures("test.mp3")
  end
end