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/'
|
2014-02-27 14:19:55 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/cdrdao/cdrdao/1.2.3/cdrdao-1.2.3.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '70d6547795a1342631c7ab56709fd1940c2aff9f'
|
2010-09-22 14:37:34 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libao'
|
|
|
|
depends_on 'libvorbis'
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'lame'
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2326
|
|
|
|
cause "Segfault while linking"
|
|
|
|
end
|
2012-03-11 16:11:51 +00:00
|
|
|
|
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
|
2014-03-17 00:35:06 +00:00
|
|
|
patch do
|
|
|
|
url "http://sourceforge.net/tracker/download.php?group_id=2171&atid=302171&file_id=369387&aid=2981804"
|
|
|
|
sha1 "1c0663d13d0f0b7ebbb281f69751eff0afed7c8c"
|
|
|
|
end
|
|
|
|
|
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
|
2014-03-17 00:35:06 +00:00
|
|
|
patch :p0, :DATA
|
2010-09-22 14:37:34 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}", "--mandir=#{man}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-11-26 20:29:13 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
--- dao/main.cc 2013-11-26 12:00:00.000000000 -0400
|
|
|
|
+++ dao/main.cc 2013-11-26 12:00:00.000000000 -0400
|
|
|
|
@@ -1242,7 +1242,7 @@
|
|
|
|
const char* getDefaultDevice(DaoDeviceType req)
|
|
|
|
{
|
|
|
|
int i, len;
|
|
|
|
- static char buf[128];
|
|
|
|
+ static char buf[1024];
|
|
|
|
|
|
|
|
// This function should not be called if the command issues
|
|
|
|
// doesn't actually require a device.
|
|
|
|
@@ -1270,7 +1270,7 @@
|
|
|
|
if (req == NEED_CDRW_W && !rww)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
- strncpy(buf, sdata[i].dev.c_str(), 128);
|
|
|
|
+ strncpy(buf, sdata[i].dev.c_str(), 1024);
|
|
|
|
delete[] sdata;
|
|
|
|
return buf;
|
|
|
|
}
|