Ravenports generated: 11 Apr 2020 00:24
[ravenports.git] / bucket_8D / cdrdao
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               cdrdao
4 VERSION=                1.2.4
5 KEYWORDS=               sysutils
6 VARIANTS=               standard
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]
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            SF/cdrdao
13 DISTFILE[1]=            cdrdao-1.2.4.tar.bz2:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILDRUN_DEPENDS=       libao:primary:standard
21                         libmad:single:standard
22                         libvorbis:primary:standard
23                         lame:primary:standard
24
25 USES=                   gmake pkgconfig c++:single
26
27 FPC_EQUIVALENT=         sysutils/cdrdao
28
29 MUST_CONFIGURE=         gnu
30 CONFIGURE_ARGS=         --with-gcdmaster=no
31                         --without-pcctsbin
32                         --without-pcctsinc
33                         --with-posix-threads=no
34                         --with-scglib
35 CONFIGURE_ENV=          AO_LIBS=-lao
36                         MAD_LIBS=-lmad
37                         VORBISFILE_LIBS=-lvorbisfile
38
39 MAKE_ENV=               CCOM=cc
40
41 post-patch:
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}
46 .endfor
47 .for i in cdrdao.man main.cc
48         ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/dao/${i}
49 .endfor
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}
54 .endfor
55
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)
60
61 do-install:
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/
68 .endfor
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
73
74 post-extract-freebsd:
75         (cd ${WRKSRC}/scsilib/RULES \
76                 && ${CP} -p i386-freebsd-cc.rul amd64-freebsd-cc.rul)
77
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).
81
82 Among others, cdrdao can handle the bin/cue format commonly used for VCDs
83 or disks with subchannel data.
84
85
86 [FILE:99:distinfo]
87 358d9cb83370ceaecdc60564cbf14c2ea2636eac60a966e2461c011ba09853b4      1442181 cdrdao-1.2.4.tar.bz2
88
89
90 [FILE:143:manifests/plist.single]
91 bin/
92  cdrdao
93  cue2toc
94  toc2cddb
95  toc2cue
96  toc2mp3
97 share/cdrdao/drivers
98 share/man/man1/
99  cdrdao.1.gz
100  cue2toc.1.gz
101  toc2cddb.1.gz
102  toc2cue.1.gz
103
104
105 [FILE:1038:patches/patch-configure]
106 --- configure.orig      2018-05-16 10:47:00 UTC
107 +++ configure
108 @@ -7436,7 +7436,7 @@ if test "$scglib" = yes; then
109    scsilib_objs="ScsiIf-lib.o"
110  
111    case "$host" in
112 -    *-freebsd* | *-kfreebsd*-gnu)
113 +    *-freebsd* | *-kfreebsd*-gnu | *-dragonfly*)
114                                scsilib_libs="$scsilib_libs -lcam"
115                                ;;
116    esac
117 @@ -7454,7 +7454,7 @@ else
118                scsilib_objs="ScsiIf-linux.o sg_err.o"
119                ;;
120  
121 -    *-freebsd* | *-kfreebsd*-gnu)
122 +    *-freebsd* | *-kfreebsd*-gnu | *-dragonfly*)
123                scsilib_libs="-lcam"
124                scsilib_objs="ScsiIf-freebsd-cam.o"
125                ;;
126 @@ -7492,7 +7492,7 @@ case "$host" in
127  esac
128  
129  case "$host" in
130 -  *-freebsd*)
131 +  *-freebsd* | *-dragonfly*)
132               if test "$use_pthreads" = yes; then
133                 LDFLAGS="-pthread $LDFLAGS"
134                 thread_libs=""
135 @@ -7508,7 +7508,7 @@ $as_echo "#define _P1003_1B_VISIBLE 1" >
136  esac
137  
138  case "$host" in
139 -  *-linux* | *-freebsd* | *-kfreebsd*-gnu | *-solaris*)
140 +  *-linux* | *-freebsd* | *-kfreebsd*-gnu | *-dragonfly* | *-solaris*)
141              sound_if_obj=SoundIF-ao.o
142              ;;
143  
144
145
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
149 @@ -28,7 +28,11 @@
150  #include <string.h>
151  
152  #include <camlib.h>
153 +#ifdef __DragonFly__
154 +#include <bus/cam/scsi/scsi_message.h>
155 +#else
156  #include <cam/scsi/scsi_message.h>
157 +#endif
158  
159  #include "ScsiIf.h"
160  #include "log.h"
161
162
163 [FILE:666:patches/patch-dao_cdrdao.man]
164 --- dao/cdrdao.man.orig 2018-05-16 10:46:39 UTC
165 +++ dao/cdrdao.man
166 @@ -798,13 +798,9 @@ following locations. The files will be r
167  .I cdrdao
168  in that order:
169  
170 -1. /etc/cdrdao.conf
171 +1. %%PREFIX%%/etc/cdrdao.conf
172  
173 -2. /etc/defaults/cdrdao
174 -
175 -3. /etc/default/cdrdao
176 -
177 -4. $HOME/.cdrdao
178 +2. $HOME/.cdrdao
179  
180  
181  Command line options will overwrite the loaded settings.
182 @@ -886,4 +882,4 @@ resources may not be released. Use ipcs(
183  .ft R
184  .fi
185  .SH SEE ALSO
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) 
188
189
190 [FILE:661:patches/patch-dao_main.cc]
191 --- dao/main.cc.orig    2018-05-16 10:46:39 UTC
192 +++ dao/main.cc
193 @@ -2330,15 +2330,7 @@ int main(int argc, char **argv)
194  
195      Settings* settings = new Settings;
196  
197 -    settingsPath = "/etc/cdrdao.conf";
198 -    if (settings->read(settingsPath) == 0)
199 -       log_message(3, "Read settings from \"%s\".", settingsPath);
200 -
201 -    settingsPath = "/etc/defaults/cdrdao";
202 -    if (settings->read(settingsPath) == 0)
203 -       log_message(3, "Read settings from \"%s\".", settingsPath);
204 -
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);
209  
210
211
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  ###########################################################################
217  
218  CPPFLAGS=      $(CPPOPTS) $(CPPOPTX)
219 -CFLAGS=                $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
220 +XCFLAGS:=      $(CFLAGS)
221 +CFLAGS=                $(COPTS) $(CWARNOPTS) $(XCFLAGS) $(GCCOPTOPT) $(COPTX)
222  
223  CPPOPTS=       -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
224  COPTS=
225 @@ -57,14 +58,14 @@ LNDYNLIB=   @$(SYMLINK) $(TARGET) $(PTARGE
226  
227  FLOAT_OPTIONS= 
228  
229 -CC=            @echo " ==> COMPILING \"$@\""; gcc
230 -LDCC=          @echo " ==> LINKING \"$@\""; gcc
231 -DYNLD=         @echo " ==> LINKING dynamic library \"$@\""; gcc
232 -RANLIB=                @echo " ==> RANDOMIZING ARCHIVE \"$@\""; ranlib
233 +CCCOM=         $(CC)
234 +LDCC=          $(CCCOM)
235 +DYNLD=         $(CCCOM)
236 +RANLIB=                ranlib
237  ARFLAGS=       cr
238  LORDER=                lorder
239  TSORT=         tsort
240  
241  RMDEP=         :
242 -MKDEP=         @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
243 +MKDEP=         $(CCCOM) -M
244  MKDEP_OUT=
245
246
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)
251  {
252         int             stdir;
253  #ifdef HAVE_SCANSTACK
254 -       register struct frame *fp;
255 +       volatile struct frame *fp;
256         register int    i = 0;
257         register int    o = 0;
258  
259
260
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
264 @@ -56,7 +56,7 @@
265  
266  EXPORT void    **___fpoff      __PR((char *cp));
267  
268 -EXPORT void **
269 +EXPORT __attribute__ ((noinline)) void **
270  getfp()
271  {
272                 long    **dummy[1];
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.
276   */
277 -EXPORT void **
278 +EXPORT __attribute__ ((noinline)) void **
279  ___fpoff(cp)
280         char    *cp;
281  {
282
283
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" {
288   * Types/Keywords
289   */
290  
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
302
303
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>
316 +#else
317  #include <cam/cam.h>
318  #include <cam/cam_ccb.h>
319  #include <cam/scsi/scsi_message.h>
320  #include <cam/scsi/scsi_pass.h>
321 +#endif
322  #include <camlib.h>
323  
324  /*
325
326
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)
331         Ulong res;
332         char *rfmt;
333         f_args  fa;
334 +       va_list vl;
335  
336         fa.outf = fun;
337         fa.farg = farg;
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 *);
342 +                       va_copy(vl, args);
343                         /*
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
349                          */
350 -                       count += format(fun, farg, rfmt, __va_arg_list(args));
351 +                       count += format(fun, farg, rfmt, vl);
352 +                       va_end(vl);
353                         continue;
354  
355                 case 'n':
356
357
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
361 @@ -23,6 +23,7 @@
362  #include <mconfig.h>
363  #include <standard.h>
364  #include <schily.h>
365 +#include <sys/cdefs.h>
366  
367  #ifndef        IS_AVOFFSET
368  /*
369 @@ -56,7 +57,7 @@
370  
371  EXPORT void    **___fpoff      __PR((char *cp));
372  
373 -EXPORT void **
374 +EXPORT __noinline void **
375  getfp()
376  {
377                 long    **dummy[1];
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.
381   */
382 -EXPORT void **
383 +EXPORT __noinline void **
384  ___fpoff(cp)
385         char    *cp;
386  {
387
388
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
393  
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;
400
401
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;
407    }
408  
409 +  memset(&outFormat_, 0, sizeof(outFormat_));
410    outFormat_.bits = 16;
411    outFormat_.rate = 44100;
412    outFormat_.channels = 2;
413