2011-03-10 05:11:03 +00:00
|
|
|
class Cdrdao < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Record CDs in Disk-At-Once mode"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://cdrdao.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/cdrdao/cdrdao/1.2.3/cdrdao-1.2.3.tar.bz2"
|
|
|
|
sha256 "8193cb8fa6998ac362c55807e89ad0b3c63edc6b01afaeb3d5042519527fb75e"
|
2010-09-22 14:37:34 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libao"
|
|
|
|
depends_on "libvorbis"
|
|
|
|
depends_on "mad"
|
|
|
|
depends_on "lame"
|
2010-09-22 14:37:34 +00:00
|
|
|
|
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
|
2015-10-08 13:25:03 +00:00
|
|
|
# see https://sourceforge.net/p/cdrdao/patches/23/
|
2014-03-17 00:35:06 +00:00
|
|
|
patch do
|
2015-10-07 16:46:21 +00:00
|
|
|
url "https://sourceforge.net/p/cdrdao/patches/_discuss/thread/205354b0/141e/attachment/cdrdao-mac.patch"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "ee1702dfd9156ebb69f5d84dcab04197e11433dd823e80923fd497812041179e"
|
2014-03-17 00:35:06 +00:00
|
|
|
end
|
|
|
|
|
2012-02-22 04:50:29 +00:00
|
|
|
# second patch fixes device autodetection on OS X
|
2015-10-07 16:46:21 +00:00
|
|
|
# see https://trac.macports.org/ticket/27819
|
2012-02-22 04:50:29 +00:00
|
|
|
# upstream bug report:
|
2015-10-08 13:25:03 +00:00
|
|
|
# https://sourceforge.net/p/cdrdao/bugs/175/
|
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}"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2010-09-22 14:37:34 +00:00
|
|
|
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;
|
|
|
|
}
|