2010-09-22 14:37:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cdrdao < Formula
|
2010-09-22 14:37:34 +00:00
|
|
|
homepage 'http://cdrdao.sourceforge.net/'
|
2012-03-11 16:11:51 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/cdrdao/cdrdao/1.2.3/cdrdao-1.2.3.tar.bz2'
|
2010-09-22 14:37:34 +00:00
|
|
|
md5 '8d15ba6280bb7ba2f4d6be31d28b3c0c'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libao'
|
|
|
|
depends_on 'libvorbis'
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'lame'
|
|
|
|
|
2012-03-11 16:11:51 +00:00
|
|
|
fails_with_llvm "Segfault while linking", :build => 2326
|
|
|
|
|
2012-02-22 04:50:29 +00:00
|
|
|
# first patch fixes build problems under 10.6
|
2010-09-22 14:37:34 +00:00
|
|
|
# see http://sourceforge.net/tracker/index.php?func=detail&aid=2981804&group_id=2171&atid=302171
|
2012-02-22 04:50:29 +00:00
|
|
|
# second patch fixes device autodetection on OS X
|
|
|
|
# see http://trac.macports.org/ticket/27819
|
|
|
|
# upstream bug report:
|
|
|
|
# http://sourceforge.net/tracker/?func=detail&aid=3381672&group_id=2171&atid=102171
|
2010-09-22 14:37:34 +00:00
|
|
|
def patches
|
2012-02-22 04:50:29 +00:00
|
|
|
{ :p1 => "http://sourceforge.net/tracker/download.php?group_id=2171&atid=302171&file_id=369387&aid=2981804",
|
|
|
|
:p0 => "http://trac.macports.org/export/90637/trunk/dports/sysutils/cdrdao/files/cdrdao-device-default-bufsize.patch" }
|
2010-09-22 14:37:34 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}", "--mandir=#{man}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|