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= gmake pkgconfig c++:single
27 FPC_EQUIVALENT= sysutils/cdrdao
30 CONFIGURE_ARGS= --with-gcdmaster=no
33 --with-posix-threads=no
35 CONFIGURE_ENV= AO_LIBS=-lao
37 VORBISFILE_LIBS=-lvorbisfile
42 .for i in 45libdeflt 45libedc 45libfile 45libhfs_iso 45libparanoia 45libunls \
43 45librscg 55cdda2wav 55cdrecord 55cmd 55mkisofs 55mkisofs!@!diag \
44 55readcd 55scgcheck 55scgskeleton 55rscsi 85man
45 ${RM} ${WRKSRC}/scsilib/TARGETS/${i}
47 .for i in cdrdao.man main.cc
48 ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/dao/${i}
50 ${REINPLACE_CMD} -E -e 's|(^CDRDAO_DATA_DIR.+=).+|\1 ${PREFIX}/share/cdrdao|' \
51 ${WRKSRC}/dao/Makefile.in
52 .for i in toc2cddb.1 toc2cue.1
53 ${REINPLACE_CMD} -e 's|1\.2\.2|1.2.4|g' ${WRKSRC}/utils/${i}
56 post-extract-dragonfly:
57 (cd ${WRKSRC}/scsilib/RULES \
58 && ${CP} -p os-freebsd.id os-dragonfly.id \
59 && ${CP} -p i386-freebsd-cc.rul x86_64-freebsd-cc.rul)
62 ${INSTALL_PROGRAM} ${WRKSRC}/dao/cdrdao ${STAGEDIR}${PREFIX}/bin
63 ${INSTALL_MAN} ${WRKSRC}/dao/cdrdao.man \
64 ${STAGEDIR}${MANPREFIX}/man/man1/cdrdao.1
65 .for f in cue2toc toc2cddb toc2cue
66 ${INSTALL_PROGRAM} ${WRKSRC}/utils/${f} ${STAGEDIR}${PREFIX}/bin
67 ${INSTALL_MAN} ${WRKSRC}/utils/${f}.1 ${STAGEDIR}${MANPREFIX}/man/man1/
69 ${INSTALL_PROGRAM} ${WRKSRC}/utils/toc2mp3 ${STAGEDIR}${PREFIX}/bin
70 ${MKDIR} ${STAGEDIR}${PREFIX}/share/cdrdao
71 ${INSTALL_DATA} ${WRKSRC}/dao/cdrdao.drivers \
72 ${STAGEDIR}${PREFIX}/share/cdrdao/drivers
75 (cd ${WRKSRC}/scsilib/RULES \
76 && ${CP} -p i386-freebsd-cc.rul amd64-freebsd-cc.rul)
78 [FILE:231:descriptions/desc.single]
79 Cdrdao records audio or data CD-R[W]s in disc-at-once (DAO) mode based on
80 textual description of the CD contents (toc-file).
82 Among others, cdrdao can handle the bin/cue format commonly used for VCDs
83 or disks with subchannel data.
87 358d9cb83370ceaecdc60564cbf14c2ea2636eac60a966e2461c011ba09853b4 1442181 cdrdao-1.2.4.tar.bz2
90 [FILE:143:manifests/plist.single]
105 [FILE:1038:patches/patch-configure]
106 --- configure.orig 2018-05-16 10:47:00 UTC
108 @@ -7436,7 +7436,7 @@ if test "$scglib" = yes; then
109 scsilib_objs="ScsiIf-lib.o"
112 - *-freebsd* | *-kfreebsd*-gnu)
113 + *-freebsd* | *-kfreebsd*-gnu | *-dragonfly*)
114 scsilib_libs="$scsilib_libs -lcam"
117 @@ -7454,7 +7454,7 @@ else
118 scsilib_objs="ScsiIf-linux.o sg_err.o"
121 - *-freebsd* | *-kfreebsd*-gnu)
122 + *-freebsd* | *-kfreebsd*-gnu | *-dragonfly*)
124 scsilib_objs="ScsiIf-freebsd-cam.o"
126 @@ -7492,7 +7492,7 @@ case "$host" in
131 + *-freebsd* | *-dragonfly*)
132 if test "$use_pthreads" = yes; then
133 LDFLAGS="-pthread $LDFLAGS"
135 @@ -7508,7 +7508,7 @@ $as_echo "#define _P1003_1B_VISIBLE 1" >
139 - *-linux* | *-freebsd* | *-kfreebsd*-gnu | *-solaris*)
140 + *-linux* | *-freebsd* | *-kfreebsd*-gnu | *-dragonfly* | *-solaris*)
141 sound_if_obj=SoundIF-ao.o
146 [FILE:306:patches/patch-dao_ScsiIf-freebsd-cam.cc]
147 --- dao/ScsiIf-freebsd-cam.cc.orig 2018-05-16 10:46:39 UTC
148 +++ dao/ScsiIf-freebsd-cam.cc
153 +#ifdef __DragonFly__
154 +#include <bus/cam/scsi/scsi_message.h>
156 #include <cam/scsi/scsi_message.h>
163 [FILE:666:patches/patch-dao_cdrdao.man]
164 --- dao/cdrdao.man.orig 2018-05-16 10:46:39 UTC
166 @@ -798,13 +798,9 @@ following locations. The files will be r
171 +1. %%PREFIX%%/etc/cdrdao.conf
173 -2. /etc/defaults/cdrdao
175 -3. /etc/default/cdrdao
181 Command line options will overwrite the loaded settings.
182 @@ -886,4 +882,4 @@ resources may not be released. Use ipcs(
186 -.BR gcdmaster "(1), "cdrecord "(1), "cdda2wav "(1), "cdparanoia "(1), " sox "(1), "ipcs "(8), " ipcrm (8)
187 +.BR gcdmaster "(1), "cdrecord "(1), "cdda2wav "(1), "cdparanoia "(1), " sox "(1), "ipcs "(1), " ipcrm (1)
190 [FILE:661:patches/patch-dao_main.cc]
191 --- dao/main.cc.orig 2018-05-16 10:46:39 UTC
193 @@ -2330,15 +2330,7 @@ int main(int argc, char **argv)
195 Settings* settings = new Settings;
197 - settingsPath = "/etc/cdrdao.conf";
198 - if (settings->read(settingsPath) == 0)
199 - log_message(3, "Read settings from \"%s\".", settingsPath);
201 - settingsPath = "/etc/defaults/cdrdao";
202 - if (settings->read(settingsPath) == 0)
203 - log_message(3, "Read settings from \"%s\".", settingsPath);
205 - settingsPath = "/etc/default/cdrdao";
206 + settingsPath = "%%PREFIX%%/etc/cdrdao.conf";
207 if (settings->read(settingsPath) == 0)
208 log_message(3, "Read settings from \"%s\".", settingsPath);
212 [FILE:1010:patches/patch-scsilib_RULES_i386-freebsd-cc.rul]
213 --- scsilib/RULES/i386-freebsd-cc.rul.orig 2002-10-15 20:43:39 UTC
214 +++ scsilib/RULES/i386-freebsd-cc.rul
215 @@ -24,7 +24,8 @@ include $(SRCROOT)/$(RULESDIR)/rules.prg
216 ###########################################################################
218 CPPFLAGS= $(CPPOPTS) $(CPPOPTX)
219 -CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
221 +CFLAGS= $(COPTS) $(CWARNOPTS) $(XCFLAGS) $(GCCOPTOPT) $(COPTX)
223 CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
225 @@ -57,14 +58,14 @@ LNDYNLIB= @$(SYMLINK) $(TARGET) $(PTARGE
229 -CC= @echo " ==> COMPILING \"$@\""; gcc
230 -LDCC= @echo " ==> LINKING \"$@\""; gcc
231 -DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
232 -RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
242 -MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
247 [FILE:258:patches/patch-scsilib_inc_avoffset.c]
248 --- scsilib/inc/avoffset.c.orig 2018-05-16 10:46:58 UTC
249 +++ scsilib/inc/avoffset.c
250 @@ -61,7 +61,7 @@ main(ac, av)
253 #ifdef HAVE_SCANSTACK
254 - register struct frame *fp;
255 + volatile struct frame *fp;
261 [FILE:472:patches/patch-scsilib_inc_getfp.c]
262 --- scsilib/inc/getfp.c.orig 2003-07-12 23:10:47 UTC
263 +++ scsilib/inc/getfp.c
266 EXPORT void **___fpoff __PR((char *cp));
269 +EXPORT __attribute__ ((noinline)) void **
273 @@ -73,7 +73,7 @@ getfp()
274 * We need this function to fool GCCs check for returning addresses
275 * from outside the functions local address space.
278 +EXPORT __attribute__ ((noinline)) void **
284 [FILE:866:patches/patch-scsilib_include_mconfig.h]
285 --- scsilib/include/mconfig.h.orig 2018-05-16 10:46:58 UTC
286 +++ scsilib/include/mconfig.h
287 @@ -72,12 +72,12 @@ extern "C" {
291 -#if defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__s390x__) || defined(__sparc64__)
292 +#if defined(__aarch64__) || defined(__ia64__) || defined(__mips_n64) || defined(__powerpc64__) || defined(__s390x__) || defined(__sparc64__) || defined(__x86_64__)
293 #define SIZEOF_LONG_INT 8
294 #define SIZEOF_CHAR_P 8
295 #define SIZEOF_UNSIGNED_LONG_INT 8
296 #define SIZEOF_UNSIGNED_CHAR_P 8
297 -#elif defined(__i386__) || defined(__powerpc__) || defined(__s390__) || defined(__sparc__)
298 +#elif defined(__arm__) || defined(__i386__) || defined(__mips__) || defined(__powerpc__) || defined(__s390__) || defined(__sparc__)
299 #define SIZEOF_LONG_INT 4
300 #define SIZEOF_CHAR_P 4
301 #define SIZEOF_UNSIGNED_LONG_INT 4
304 [FILE:539:patches/patch-scsilib_libscg_scsi-bsd.c]
305 --- scsilib/libscg/scsi-bsd.c.orig 2018-05-16 10:46:58 UTC
306 +++ scsilib/libscg/scsi-bsd.c
307 @@ -548,10 +548,17 @@ scgo_send(scgp)
308 #define scsi_sense CAM_scsi_sense
309 #define scsi_inquiry CAM_scsi_inquiry
310 #include <sys/param.h>
311 +#ifdef __DragonFly__
312 +#include <bus/cam/cam.h>
313 +#include <bus/cam/cam_ccb.h>
314 +#include <bus/cam/scsi/scsi_message.h>
315 +#include <bus/cam/scsi/scsi_pass.h>
318 #include <cam/cam_ccb.h>
319 #include <cam/scsi/scsi_message.h>
320 #include <cam/scsi/scsi_pass.h>
327 [FILE:809:patches/patch-scsilib_libschily_format.c]
328 --- scsilib/libschily/format.c.orig 2003-10-18 13:26:50 UTC
329 +++ scsilib/libschily/format.c
330 @@ -166,6 +166,7 @@ format(fun, farg, fmt, args)
338 @@ -432,6 +433,7 @@ format(fun, farg, fmt, args)
339 case 'r': /* recursive printf */
340 case 'R': /* recursive printf */
341 rfmt = va_arg(args, char *);
344 * I don't know any portable way to get an arbitrary
345 * C object from a var arg list so I use a
346 @@ -446,7 +448,8 @@ format(fun, farg, fmt, args)
347 * It would be nice to have something like
348 * __va_arg_list() in stdarg.h
350 - count += format(fun, farg, rfmt, __va_arg_list(args));
351 + count += format(fun, farg, rfmt, vl);
358 [FILE:587:patches/patch-scsilib_libschily_getfp.c]
359 --- scsilib/libschily/getfp.c.orig 2003-07-12 23:10:47 UTC
360 +++ scsilib/libschily/getfp.c
363 #include <standard.h>
365 +#include <sys/cdefs.h>
371 EXPORT void **___fpoff __PR((char *cp));
374 +EXPORT __noinline void **
378 @@ -73,7 +74,7 @@ getfp()
379 * We need this function to fool GCCs check for returning addresses
380 * from outside the functions local address space.
383 +EXPORT __noinline void **
389 [FILE:341:patches/patch-trackdb_FormatMp3.cc]
390 --- trackdb/FormatMp3.cc.orig 2018-05-15 13:30:52 UTC
391 +++ trackdb/FormatMp3.cc
392 @@ -111,6 +111,7 @@ FormatSupport::Status FormatMp3::madInit
394 // Initialize libao for WAV output;
395 ao_sample_format out_format;
396 + memset(&out_format, 0, sizeof(out_format));
397 out_format.bits = 16;
398 out_format.rate = 44100;
399 out_format.channels = 2;
402 [FILE:304:patches/patch-trackdb_FormatOgg.cc]
403 --- trackdb/FormatOgg.cc.orig 2018-05-15 13:30:52 UTC
404 +++ trackdb/FormatOgg.cc
405 @@ -84,6 +84,7 @@ FormatSupport::Status FormatOgg::oggInit
406 return FS_WRONG_FORMAT;
409 + memset(&outFormat_, 0, sizeof(outFormat_));
410 outFormat_.bits = 16;
411 outFormat_.rate = 44100;
412 outFormat_.channels = 2;