1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Tool to write CD-Rs in Disk-At-Once Mode
8 HOMEPAGE= http://cdrdao.sourceforge.net
9 CONTACT= Michael_Reim[kraileth@elderlinux.org]
12 SITES[main]= SF/cdrdao
13 DISTFILE[1]= cdrdao-1.2.4.tar.bz2:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILDRUN_DEPENDS= libao:primary:standard
21 libmad:single:standard
22 libvorbis:primary:standard
25 USES= cpe gmake pkgconfig c++:single
27 CPE_VENDOR= andreas_mueller
28 FPC_EQUIVALENT= sysutils/cdrdao
31 CONFIGURE_ARGS= --with-gcdmaster=no
34 --with-posix-threads=no
36 CONFIGURE_ENV= AO_LIBS=-lao
38 VORBISFILE_LIBS=-lvorbisfile
43 .for i in 45libdeflt 45libedc 45libfile 45libhfs_iso 45libparanoia 45libunls \
44 45librscg 55cdda2wav 55cdrecord 55cmd 55mkisofs 55mkisofs!@!diag \
45 55readcd 55scgcheck 55scgskeleton 55rscsi 85man
46 ${RM} ${WRKSRC}/scsilib/TARGETS/${i}
48 .for i in cdrdao.man main.cc
49 ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/dao/${i}
51 ${REINPLACE_CMD} -E -e 's|(^CDRDAO_DATA_DIR.+=).+|\1 ${PREFIX}/share/cdrdao|' \
52 ${WRKSRC}/dao/Makefile.in
53 .for i in toc2cddb.1 toc2cue.1
54 ${REINPLACE_CMD} -e 's|1\.2\.2|1.2.4|g' ${WRKSRC}/utils/${i}
57 post-extract-dragonfly:
58 (cd ${WRKSRC}/scsilib/RULES \
59 && ${CP} -p os-freebsd.id os-dragonfly.id \
60 && ${CP} -p i386-freebsd-cc.rul x86_64-freebsd-cc.rul)
63 ${INSTALL_PROGRAM} ${WRKSRC}/dao/cdrdao ${STAGEDIR}${PREFIX}/bin
64 ${INSTALL_MAN} ${WRKSRC}/dao/cdrdao.man \
65 ${STAGEDIR}${MANPREFIX}/man/man1/cdrdao.1
66 .for f in cue2toc toc2cddb toc2cue
67 ${INSTALL_PROGRAM} ${WRKSRC}/utils/${f} ${STAGEDIR}${PREFIX}/bin
68 ${INSTALL_MAN} ${WRKSRC}/utils/${f}.1 ${STAGEDIR}${MANPREFIX}/man/man1/
70 ${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2mp3 ${STAGEDIR}${PREFIX}/bin
71 ${MKDIR} ${STAGEDIR}${PREFIX}/share/cdrdao
72 ${INSTALL_DATA} ${WRKSRC}/dao/cdrdao.drivers \
73 ${STAGEDIR}${PREFIX}/share/cdrdao/drivers
76 (cd ${WRKSRC}/scsilib/RULES \
77 && ${CP} -p i386-freebsd-cc.rul amd64-freebsd-cc.rul)
79 [FILE:231:descriptions/desc.single]
80 Cdrdao records audio or data CD-R[W]s in disc-at-once (DAO) mode based on
81 textual description of the CD contents (toc-file).
83 Among others, cdrdao can handle the bin/cue format commonly used for VCDs
84 or disks with subchannel data.
88 358d9cb83370ceaecdc60564cbf14c2ea2636eac60a966e2461c011ba09853b4 1442181 cdrdao-1.2.4.tar.bz2
91 [FILE:143:manifests/plist.single]
106 [FILE:1038:patches/patch-configure]
107 --- configure.orig 2018-05-16 10:47:00 UTC
109 @@ -7436,7 +7436,7 @@ if test "$scglib" = yes; then
110 scsilib_objs="ScsiIf-lib.o"
113 - *-freebsd* | *-kfreebsd*-gnu)
114 + *-freebsd* | *-kfreebsd*-gnu | *-dragonfly*)
115 scsilib_libs="$scsilib_libs -lcam"
118 @@ -7454,7 +7454,7 @@ else
119 scsilib_objs="ScsiIf-linux.o sg_err.o"
122 - *-freebsd* | *-kfreebsd*-gnu)
123 + *-freebsd* | *-kfreebsd*-gnu | *-dragonfly*)
125 scsilib_objs="ScsiIf-freebsd-cam.o"
127 @@ -7492,7 +7492,7 @@ case "$host" in
132 + *-freebsd* | *-dragonfly*)
133 if test "$use_pthreads" = yes; then
134 LDFLAGS="-pthread $LDFLAGS"
136 @@ -7508,7 +7508,7 @@ $as_echo "#define _P1003_1B_VISIBLE 1" >
140 - *-linux* | *-freebsd* | *-kfreebsd*-gnu | *-solaris*)
141 + *-linux* | *-freebsd* | *-kfreebsd*-gnu | *-dragonfly* | *-solaris*)
142 sound_if_obj=SoundIF-ao.o
147 [FILE:306:patches/patch-dao_ScsiIf-freebsd-cam.cc]
148 --- dao/ScsiIf-freebsd-cam.cc.orig 2018-05-16 10:46:39 UTC
149 +++ dao/ScsiIf-freebsd-cam.cc
154 +#ifdef __DragonFly__
155 +#include <bus/cam/scsi/scsi_message.h>
157 #include <cam/scsi/scsi_message.h>
164 [FILE:666:patches/patch-dao_cdrdao.man]
165 --- dao/cdrdao.man.orig 2018-05-16 10:46:39 UTC
167 @@ -798,13 +798,9 @@ following locations. The files will be r
172 +1. %%PREFIX%%/etc/cdrdao.conf
174 -2. /etc/defaults/cdrdao
176 -3. /etc/default/cdrdao
182 Command line options will overwrite the loaded settings.
183 @@ -886,4 +882,4 @@ resources may not be released. Use ipcs(
187 -.BR gcdmaster "(1), "cdrecord "(1), "cdda2wav "(1), "cdparanoia "(1), " sox "(1), "ipcs "(8), " ipcrm (8)
188 +.BR gcdmaster "(1), "cdrecord "(1), "cdda2wav "(1), "cdparanoia "(1), " sox "(1), "ipcs "(1), " ipcrm (1)
191 [FILE:661:patches/patch-dao_main.cc]
192 --- dao/main.cc.orig 2018-05-16 10:46:39 UTC
194 @@ -2330,15 +2330,7 @@ int main(int argc, char **argv)
196 Settings* settings = new Settings;
198 - settingsPath = "/etc/cdrdao.conf";
199 - if (settings->read(settingsPath) == 0)
200 - log_message(3, "Read settings from \"%s\".", settingsPath);
202 - settingsPath = "/etc/defaults/cdrdao";
203 - if (settings->read(settingsPath) == 0)
204 - log_message(3, "Read settings from \"%s\".", settingsPath);
206 - settingsPath = "/etc/default/cdrdao";
207 + settingsPath = "%%PREFIX%%/etc/cdrdao.conf";
208 if (settings->read(settingsPath) == 0)
209 log_message(3, "Read settings from \"%s\".", settingsPath);
213 [FILE:1010:patches/patch-scsilib_RULES_i386-freebsd-cc.rul]
214 --- scsilib/RULES/i386-freebsd-cc.rul.orig 2002-10-15 20:43:39 UTC
215 +++ scsilib/RULES/i386-freebsd-cc.rul
216 @@ -24,7 +24,8 @@ include $(SRCROOT)/$(RULESDIR)/rules.prg
217 ###########################################################################
219 CPPFLAGS= $(CPPOPTS) $(CPPOPTX)
220 -CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
222 +CFLAGS= $(COPTS) $(CWARNOPTS) $(XCFLAGS) $(GCCOPTOPT) $(COPTX)
224 CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
226 @@ -57,14 +58,14 @@ LNDYNLIB= @$(SYMLINK) $(TARGET) $(PTARGE
230 -CC= @echo " ==> COMPILING \"$@\""; gcc
231 -LDCC= @echo " ==> LINKING \"$@\""; gcc
232 -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
233 -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
243 -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
248 [FILE:258:patches/patch-scsilib_inc_avoffset.c]
249 --- scsilib/inc/avoffset.c.orig 2018-05-16 10:46:58 UTC
250 +++ scsilib/inc/avoffset.c
251 @@ -61,7 +61,7 @@ main(ac, av)
254 #ifdef HAVE_SCANSTACK
255 - register struct frame *fp;
256 + volatile struct frame *fp;
262 [FILE:472:patches/patch-scsilib_inc_getfp.c]
263 --- scsilib/inc/getfp.c.orig 2003-07-12 23:10:47 UTC
264 +++ scsilib/inc/getfp.c
267 EXPORT void **___fpoff __PR((char *cp));
270 +EXPORT __attribute__ ((noinline)) void **
274 @@ -73,7 +73,7 @@ getfp()
275 * We need this function to fool GCCs check for returning addresses
276 * from outside the functions local address space.
279 +EXPORT __attribute__ ((noinline)) void **
285 [FILE:866:patches/patch-scsilib_include_mconfig.h]
286 --- scsilib/include/mconfig.h.orig 2018-05-16 10:46:58 UTC
287 +++ scsilib/include/mconfig.h
288 @@ -72,12 +72,12 @@ extern "C" {
292 -#if defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || defined(__sparc64__)
293 +#if defined(__aarch64__) || defined(__ia64__) || defined(__mips_n64) || defined(__powerpc64__) || defined(__s390x__) || defined(__sparc64__) || defined(__x86_64__)
294 #define SIZEOF_LONG_INT 8
295 #define SIZEOF_CHAR_P 8
296 #define SIZEOF_UNSIGNED_LONG_INT 8
297 #define SIZEOF_UNSIGNED_CHAR_P 8
298 -#elif defined(__i386__) || defined(__powerpc__) || defined(__s390__) || defined(__sparc__)
299 +#elif defined(__arm__) || defined(__i386__) || defined(__mips__) || defined(__powerpc__) || defined(__s390__) || defined(__sparc__)
300 #define SIZEOF_LONG_INT 4
301 #define SIZEOF_CHAR_P 4
302 #define SIZEOF_UNSIGNED_LONG_INT 4
305 [FILE:539:patches/patch-scsilib_libscg_scsi-bsd.c]
306 --- scsilib/libscg/scsi-bsd.c.orig 2018-05-16 10:46:58 UTC
307 +++ scsilib/libscg/scsi-bsd.c
308 @@ -548,10 +548,17 @@ scgo_send(scgp)
309 #define scsi_sense CAM_scsi_sense
310 #define scsi_inquiry CAM_scsi_inquiry
311 #include <sys/param.h>
312 +#ifdef __DragonFly__
313 +#include <bus/cam/cam.h>
314 +#include <bus/cam/cam_ccb.h>
315 +#include <bus/cam/scsi/scsi_message.h>
316 +#include <bus/cam/scsi/scsi_pass.h>
319 #include <cam/cam_ccb.h>
320 #include <cam/scsi/scsi_message.h>
321 #include <cam/scsi/scsi_pass.h>
328 [FILE:809:patches/patch-scsilib_libschily_format.c]
329 --- scsilib/libschily/format.c.orig 2003-10-18 13:26:50 UTC
330 +++ scsilib/libschily/format.c
331 @@ -166,6 +166,7 @@ format(fun, farg, fmt, args)
339 @@ -432,6 +433,7 @@ format(fun, farg, fmt, args)
340 case 'r': /* recursive printf */
341 case 'R': /* recursive printf */
342 rfmt = va_arg(args, char *);
345 * I don't know any portable way to get an arbitrary
346 * C object from a var arg list so I use a
347 @@ -446,7 +448,8 @@ format(fun, farg, fmt, args)
348 * It would be nice to have something like
349 * __va_arg_list() in stdarg.h
351 - count += format(fun, farg, rfmt, __va_arg_list(args));
352 + count += format(fun, farg, rfmt, vl);
359 [FILE:587:patches/patch-scsilib_libschily_getfp.c]
360 --- scsilib/libschily/getfp.c.orig 2003-07-12 23:10:47 UTC
361 +++ scsilib/libschily/getfp.c
364 #include <standard.h>
366 +#include <sys/cdefs.h>
372 EXPORT void **___fpoff __PR((char *cp));
375 +EXPORT __noinline void **
379 @@ -73,7 +74,7 @@ getfp()
380 * We need this function to fool GCCs check for returning addresses
381 * from outside the functions local address space.
384 +EXPORT __noinline void **
390 [FILE:341:patches/patch-trackdb_FormatMp3.cc]
391 --- trackdb/FormatMp3.cc.orig 2018-05-15 13:30:52 UTC
392 +++ trackdb/FormatMp3.cc
393 @@ -111,6 +111,7 @@ FormatSupport::Status FormatMp3::madInit
395 // Initialize libao for WAV output;
396 ao_sample_format out_format;
397 + memset(&out_format, 0, sizeof(out_format));
398 out_format.bits = 16;
399 out_format.rate = 44100;
400 out_format.channels = 2;
403 [FILE:304:patches/patch-trackdb_FormatOgg.cc]
404 --- trackdb/FormatOgg.cc.orig 2018-05-15 13:30:52 UTC
405 +++ trackdb/FormatOgg.cc
406 @@ -84,6 +84,7 @@ FormatSupport::Status FormatOgg::oggInit
407 return FS_WRONG_FORMAT;
410 + memset(&outFormat_, 0, sizeof(outFormat_));
411 outFormat_.bits = 16;
412 outFormat_.rate = 44100;
413 outFormat_.channels = 2;