aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cdparanoia.rb
blob: 9262cb6782804661885c36dd1d6ae8b1c1e54abc (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
30
31
require 'formula'

class Cdparanoia < Formula
  url 'http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-10.2.src.tgz'
  homepage 'http://www.xiph.org/paranoia/'
  md5 'b304bbe8ab63373924a744eac9ebc652'

  depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3

  fails_with :llvm do
    build 2326
    cause '"File too small" error while linking'
  end

  def patches
    [
     "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch",
     "https://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff"
    ]
  end

  def install
    system "autoconf"
    # Libs are installed as keg-only because most software that searches for cdparanoia
    # will fail to link against it cleanly due to our patches
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
           "--prefix=#{prefix}", "--mandir=#{man}", "--libdir=#{libexec}"
    system "make all"
    system "make install"
  end
end