2010-08-28 20:14:15 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cdparanoia < Formula
|
2010-08-28 20:14:15 +00:00
|
|
|
url 'http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-10.2.src.tgz'
|
|
|
|
homepage 'http://www.xiph.org/paranoia/'
|
|
|
|
md5 'b304bbe8ab63373924a744eac9ebc652'
|
|
|
|
|
|
|
|
def patches
|
|
|
|
[
|
|
|
|
"http://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/osx_interface.patch",
|
|
|
|
"http://trac.macports.org/export/70964/trunk/dports/audio/cdparanoia/files/patch-paranoia_paranoia.c.10.4.diff"
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
fails_with_llvm '"File too small" error while linking', :build => 2326
|
|
|
|
|
2010-08-28 20:14:15 +00:00
|
|
|
def install
|
|
|
|
system "autoconf"
|
2011-08-26 14:39:51 +00:00
|
|
|
# Libs are installed as keg-only because most software that searches for cdparanoia
|
|
|
|
# will fail to link against it cleanly due to our patches
|
2010-08-28 20:14:15 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2011-08-30 16:40:32 +00:00
|
|
|
"--prefix=#{prefix}", "--mandir=#{man}", "--libdir=#{libexec}"
|
2010-08-28 20:14:15 +00:00
|
|
|
system "make all"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|