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