cdrdao stable port information

Package: cdrdao
Version: 1.1.7
Revision: 23
Architecture: powerpc
Distribution: 10.4
GCC: 3.3
Source: mirror:sourceforge:%n/%n-%v.src.tar.bz2
SourceDirectory: %n-%v
Source-MD5: a85c0fa006ad3af64b76fd86b10b2ad4
BuildDepends: pccts, lame-dev, gcc3.3
Depends: lame-shlibs, lame
Patch: %n.patch
UpdateConfigGuessInDirs: scsilib/conf
SetLDFLAGS: -framework IOKit -framework CoreFoundation
SetCC: gcc-3.3
SetCXX: g++-3.3
ConfigureParams: --with-pcctsbin=%p/bin --with-pcctsinc=%p/include/pccts --mandir='${prefix}/share/man' --with-lame-lib=%p/lib --with-lame-include=%p/include/ --disable-gtkmmtest

CompileScript: <<
rm -rf pccts
./configure %c
make
<<

InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/share/doc/cdrdao
mv testtocs %i/share/doc/cdrdao/example-tocs
mv utils/toc2cue utils/toc2mp3 %i/bin
mv contrib %i/share/doc/cdrdao/
<<

DocFiles: COPYING CREDITS README* Release*
Description: Create CDs in disc-at-once (DAO) mode
DescDetail: <<
Writes audio CD-Rs in disc-at-once (DAO) mode allowing control over
pre-gaps (length down to 0, nonzero audio data) and sub-channel
information like ISRC codes. All data that is written to the disc must
be specified with a text file. Audio data may be in WAVE or raw format.
<<
DescPackaging: <<
Changed license from GPL to Restrictive, because it depends on the
restrictive package "lame".

This version is compiled with g++-3.3, even in the 10.4 tree. If it is
ever updated to a more recent compiler, any packages which depend on
this one must be updated at the same time.
<<
License: Restrictive
Maintainer: Chris Zubrzycki
Homepage: http://cdrdao.sourceforge.net/

cdrdao stable port .patch

diff -ruN cdrdao-1.1.7/Makefile.in cdrdao-1.1.7.new/Makefile.in
--- cdrdao-1.1.7/Makefile.in Sun Oct 6 14:53:55 2002
+++ cdrdao-1.1.7.new/Makefile.in Tue Oct 29 11:27:01 2002
@@ -41,8 +41,8 @@
#
#
#
-SUBDIRS = @pccts_target@ @scsilib_dir@ trackdb paranoia dao utils @xdao@
-SUBDIRSINST = trackdb dao utils @xdao@
+SUBDIRS = @pccts_target@ @scsilib_dir@ trackdb paranoia dao utils
+SUBDIRSINST = trackdb dao utils

all:
for d in $(SUBDIRS) ; do \
diff -ruN cdrdao-1.1.7/dao/Makefile.in cdrdao-1.1.7.new/dao/Makefile.in
--- cdrdao-1.1.7/dao/Makefile.in Sun Oct 6 14:53:56 2002
+++ cdrdao-1.1.7.new/dao/Makefile.in Tue Oct 29 11:27:01 2002
@@ -67,14 +67,14 @@
all: $(PRG)

install: all installdirs
- $(INSTALL_PROGRAM) $(PRG) $(bindir)
- $(INSTALL_DATA) cdrdao.man $(man1dir)/cdrdao.1
- $(INSTALL_DATA) cdrdao.drivers $(DRIVER_TABLE_FILE)
+ $(INSTALL_PROGRAM) $(PRG) $(DESTDIR)$(bindir)
+ $(INSTALL_DATA) cdrdao.man $(DESTDIR)$(man1dir)/cdrdao.1
+ $(INSTALL_DATA) cdrdao.drivers $(DESTDIR)$(DRIVER_TABLE_FILE)

installdirs:
- $(srcdir)/../mkinstalldirs $(bindir)
- $(srcdir)/../mkinstalldirs $(man1dir)
- $(srcdir)/../mkinstalldirs $(CDRDAO_DATA_DIR)
+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir)
+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(man1dir)
+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(CDRDAO_DATA_DIR)

clean:
rm -f *.o $(PRG)
diff -ruN cdrdao-1.1.7/dao/main.cc cdrdao-1.1.7.new/dao/main.cc
--- cdrdao-1.1.7/dao/main.cc Sun Oct 6 14:53:56 2002
+++ cdrdao-1.1.7.new/dao/main.cc Tue Oct 29 11:30:12 2002
@@ -105,6 +105,11 @@
static const char *SCSI_DEVICE = "/dev/cdrecorder";
static int FIFO_BUFFERS = 32;

+#elif defined(__APPLE__) && defined(__GNUC__)
+
+static const char *SCSI_DEVICE = "IOCompactDiscServices";
+static int FIFO_BUFFERS = 32;
+
#else

static const char *SCSI_DEVICE = "0,0,0";
diff -ruN cdrdao-1.1.7/utils/Makefile.in cdrdao-1.1.7.new/utils/Makefile.in
--- cdrdao-1.1.7/utils/Makefile.in Sun Oct 6 14:53:56 2002
+++ cdrdao-1.1.7.new/utils/Makefile.in Tue Oct 29 11:27:01 2002
@@ -56,9 +56,9 @@
$(INSTALL_PROGRAM) @utils_targets@ $(bindir)

installdirs:
- $(srcdir)/../mkinstalldirs $(bindir)
-# $(srcdir)/../mkinstalldirs $(man1dir)
-# $(srcdir)/../mkinstalldirs $(CDRDAO_DATA_DIR)
+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir)
+# $(srcdir)/../mkinstalldirs $(DESTDIR)$(man1dir)
+# $(srcdir)/../mkinstalldirs $(DESTDIR)$(CDRDAO_DATA_DIR)

clean:
rm -f *.o toc2cue toc2mp3
diff -ruN cdrdao-1.1.7/xdao/CdDevice.cc cdrdao-1.1.7.new/xdao/CdDevice.cc
--- cdrdao-1.1.7/xdao/CdDevice.cc Sun Oct 6 14:53:56 2002
+++ cdrdao-1.1.7.new/xdao/CdDevice.cc Tue Oct 29 11:27:01 2002
@@ -22,7 +22,11 @@
#include
#include
#include
+
+#ifdef HAVE_MALLOC_H
#include
+#endif
+
#include
#include
#include
diff -ruN cdrdao-1.1.7/xdao/Makefile.in cdrdao-1.1.7.new/xdao/Makefile.in
--- cdrdao-1.1.7/xdao/Makefile.in Sun Oct 6 14:53:56 2002
+++ cdrdao-1.1.7.new/xdao/Makefile.in Tue Oct 29 11:27:01 2002
@@ -71,32 +71,32 @@
all: $(PRG)

install: all installdirs
- $(INSTALL_PROGRAM) $(PRG) $(bindir)
- $(INSTALL_DATA) xcdrdao.man $(man1dir)/xcdrdao.1
- $(INSTALL_DATA) gcdmaster.png $(PIXMAPS_DIR)/gcdmaster.png
- $(INSTALL_DATA) pixmap_audiocd.png $(PIXMAPS_DIR)/pixmap_audiocd.png
- $(INSTALL_DATA) pixmap_copycd.png $(PIXMAPS_DIR)/pixmap_copycd.png
- $(INSTALL_DATA) pixmap_datacd.png $(PIXMAPS_DIR)/pixmap_datacd.png
- $(INSTALL_DATA) pixmap_dumpcd.png $(PIXMAPS_DIR)/pixmap_dumpcd.png
- $(INSTALL_DATA) pixmap_help.png $(PIXMAPS_DIR)/pixmap_help.png
- $(INSTALL_DATA) pixmap_mixedcd.png $(PIXMAPS_DIR)/pixmap_mixedcd.png
- $(INSTALL_DATA) pixmap_open.png $(PIXMAPS_DIR)/pixmap_open.png
- $(INSTALL_DATA) pixmap_play-start.xpm $(PIXMAPS_DIR)/pixmap_play-start.xpm
- $(INSTALL_DATA) pixmap_play-pause.xpm $(PIXMAPS_DIR)/pixmap_play-pause.xpm
- $(INSTALL_DATA) pixmap_play-stop.xpm $(PIXMAPS_DIR)/pixmap_play-stop.xpm
- $(INSTALL_DATA) pixmap_cursor-tool.xpm $(PIXMAPS_DIR)/pixmap_cursor-tool.xpm
- $(INSTALL_DATA) pixmap_zoom-tool.xpm $(PIXMAPS_DIR)/pixmap_zoom-tool.xpm
- $(INSTALL_DATA) pixmap_zoom-in.xpm $(PIXMAPS_DIR)/pixmap_zoom-in.xpm
- $(INSTALL_DATA) pixmap_zoom-out.xpm $(PIXMAPS_DIR)/pixmap_zoom-out.xpm
- $(INSTALL_DATA) pixmap_zoom-selection.xpm $(PIXMAPS_DIR)/pixmap_zoom-selection.xpm
- $(INSTALL_DATA) pixmap_zoom-fit.xpm $(PIXMAPS_DIR)/pixmap_zoom-fit.xpm
- $(INSTALL_DATA) gcdmaster.desktop $(datadir)/gnome/apps/Applications/gcdmaster.desktop
+ $(INSTALL_PROGRAM) $(PRG) $(DESTDIR)$(bindir)
+ $(INSTALL_DATA) xcdrdao.man $(DESTDIR)$(man1dir)/xcdrdao.1
+ $(INSTALL_DATA) gcdmaster.png $(DESTDIR)$(PIXMAPS_DIR)/gcdmaster.png
+ $(INSTALL_DATA) pixmap_audiocd.png $(DESTDIR)$(PIXMAPS_DIR)/pixmap_audiocd.png
+ $(INSTALL_DATA) pixmap_copycd.png $(DESTDIR)$(PIXMAPS_DIR)/pixmap_copycd.png
+ $(INSTALL_DATA) pixmap_datacd.png $(DESTDIR)$(PIXMAPS_DIR)/pixmap_datacd.png
+ $(INSTALL_DATA) pixmap_dumpcd.png $(DESTDIR)$(PIXMAPS_DIR)/pixmap_dumpcd.png
+ $(INSTALL_DATA) pixmap_help.png $(DESTDIR)$(PIXMAPS_DIR)/pixmap_help.png
+ $(INSTALL_DATA) pixmap_mixedcd.png $(DESTDIR)$(PIXMAPS_DIR)/pixmap_mixedcd.png
+ $(INSTALL_DATA) pixmap_open.png $(DESTDIR)$(PIXMAPS_DIR)/pixmap_open.png
+ $(INSTALL_DATA) pixmap_play-start.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_play-start.xpm
+ $(INSTALL_DATA) pixmap_play-pause.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_play-pause.xpm
+ $(INSTALL_DATA) pixmap_play-stop.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_play-stop.xpm
+ $(INSTALL_DATA) pixmap_cursor-tool.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_cursor-tool.xpm
+ $(INSTALL_DATA) pixmap_zoom-tool.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_zoom-tool.xpm
+ $(INSTALL_DATA) pixmap_zoom-in.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_zoom-in.xpm
+ $(INSTALL_DATA) pixmap_zoom-out.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_zoom-out.xpm
+ $(INSTALL_DATA) pixmap_zoom-selection.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_zoom-selection.xpm
+ $(INSTALL_DATA) pixmap_zoom-fit.xpm $(DESTDIR)$(PIXMAPS_DIR)/pixmap_zoom-fit.xpm
+ $(INSTALL_DATA) gcdmaster.desktop $(DESTDIR)$(datadir)/gnome/apps/Applications/gcdmaster.desktop

installdirs:
- $(srcdir)/../mkinstalldirs $(bindir)
- $(srcdir)/../mkinstalldirs $(man1dir)
- $(srcdir)/../mkinstalldirs $(PIXMAPS_DIR)
- $(srcdir)/../mkinstalldirs $(datadir)/gnome/apps/Applications
+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir)
+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(man1dir)
+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(PIXMAPS_DIR)
+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(datadir)/gnome/apps/Applications

uninstall:
rm -f $(bindir)/$(PRG) $(man1dir)/xcdrdao.1

cdrdao _unstable_ port information

Package: cdrdao
Version: 1.2.1
Revision: 1000
GCC: 4.0
Source: mirror:sourceforge:%n/%n-%v.tar.gz
SourceDirectory: %n-%v
Source-MD5: d959c98e08105b5b8380de275bac1413
BuildDepends: lame-dev, libao2, libmad, libvorbis0, libogg, pkgconfig
Depends: libmad-shlibs, libogg-shlibs, libao2-shlibs, libvorbis0-shlibs, lame-shlibs
Patch: %n.patch
UpdateConfigGuessInDirs: scsilib/conf
NoSetLDFLAGS: true
SetLDFLAGS: -L%p/lib -Wl,-search_paths_first -framework IOKit -framework CoreFoundation
ConfigureParams: --mandir='${prefix}/share/man' --with-lame-lib=%p/lib --with-lame-include=%p/include/ --without-xdao --disable-dependency-tracking

CompileScript: <<
cp scsilib/RULES/power-macintosh-darwin-cc.rul scsilib/RULES/i386-darwin-cc.rul
cp scsilib/RULES/power-macintosh-darwin-gcc.rul scsilib/RULES/i386-darwin-gcc.rul
./configure %c
make
<<

InstallScript: <<
make install DESTDIR=%d
mkdir -p %i/share/doc/cdrdao
mv testtocs %i/share/doc/cdrdao/example-tocs
mv utils/toc2cue utils/toc2mp3 %i/bin
mv contrib %i/share/doc/cdrdao/
<<

DocFiles: COPYING CREDITS README* AUTHORS ChangeLog NEWS
Description: Create CDs in disc-at-once (DAO) mode
DescDetail: <<
Writes audio CD-Rs in disc-at-once (DAO) mode allowing control over
pre-gaps (length down to 0, nonzero audio data) and sub-channel
information like ISRC codes. All data that is written to the disc must
be specified with a text file. Audio data may be in WAVE or raw format.
<<
DescPackaging: <<
Changed license from GPL to Restrictive, because it depends on the
restrictive package "lame".
<<
License: Restrictive
Maintainer: Chris Zubrzycki
Homepage: http://cdrdao.sourceforge.net/

cdrdao _unstable_ port .patch

diff -ruN cdrdao-1.2.0/dao/main.cc cdrdao-1.2.0.new/dao/main.cc
--- cdrdao-1.2.0/dao/main.cc 2005-05-09 11:48:40.000000000 -0400
+++ cdrdao-1.2.0.new/dao/main.cc 2005-09-14 10:23:30.000000000 -0400
@@ -122,6 +122,11 @@
static const char *SCSI_DEVICE = "/dev/cdrecorder";
static int FIFO_BUFFERS = 32;

+#elif defined(__APPLE__) && defined(__GNUC__)
+
+static const char *SCSI_DEVICE = "IOCompactDiscServices";
+static int FIFO_BUFFERS = 32;
+
#else

static const char *SCSI_DEVICE = "0,0,0";