Ravenports generated: 17 Jun 2018 23:16
[ravenports.git] / bucket_03 / ffmpeg
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               ffmpeg
4 VERSION=                4.0.1
5 KEYWORDS=               multimedia audio net
6 VARIANTS=               standard
7 SDESC[standard]=        Play, record, convert, and stream audio and video
8 HOMEPAGE=               https://www.ffmpeg.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            http://ffmpeg.org/releases/
13 DISTFILE[1]=            ffmpeg-4.0.1.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         examples
18                         docs
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 BUILD_DEPENDS=          nasm:primary:standard
24                         video4linux:headers:standard
25                         gmp:static:standard
26 BUILDRUN_DEPENDS=       gmp:shared:standard
27                         libass:single:standard
28                         fontconfig:primary:standard
29                         freetype:primary:standard
30                         frei0r:single:standard
31                         fribidi:single:standard
32                         libgcrypt:single:standard
33                         gnutls:single:standard
34                         video4linux:primary:standard
35                         rtmpdump:library:standard
36                         libtheora:single:standard
37                         libva:single:standard
38                         libvdpau:single:standard
39                         libvorbis:primary:standard
40                         libvpx:single:standard
41                         libdrm:single:standard
42                         librsvg:primary:standard
43                         wavpack:single:standard
44                         WebP:single:standard
45                         x264:library:standard
46                         x265:single:standard
47                         xvid:single:standard
48
49 USES=                   cpe gmake iconv perl:build pkgconfig shebangfix
50 GNOME_COMPONENTS=       libxml2
51 SDL_COMPONENTS=         sdl2
52
53 LICENSE=                LGPL3+:primary GPLv3+:primary
54 LICENSE_TERMS=          primary:{{WRKSRC}}/LICENSE.md
55 LICENSE_FILE=           LGPL3+:{{WRKSRC}}/COPYING.LGPLv3
56                         GPLv3+:{{WRKSRC}}/COPYING.GPLv3
57 LICENSE_SCHEME=         multi
58
59 FPC_EQUIVALENT=         multimedia/ffmpeg
60 SHEBANG_FILES=          doc/texi2pod.pl
61
62 MUST_CONFIGURE=         yes
63 CONFIGURE_ARGS=         --cc="{{CC}}"
64                         --prefix="{{PREFIX}}"
65                         --mandir="{{MANPREFIX}}/man"
66                         --datadir="{{PREFIX}}/share/ffmpeg"
67                         --pkgconfigdir="{{PREFIX}}/lib/pkgconfig"
68                         --enable-shared
69                         --enable-pic
70                         --enable-gpl
71                         --enable-version3
72                         --enable-postproc
73                         --enable-avfilter
74                         --enable-avresample
75                         --enable-pthreads
76                         --disable-alsa
77                         --disable-libopencore-amrnb
78                         --disable-libopencore-amrwb
79                         --disable-libbs2b
80                         --disable-libcaca
81                         --disable-libcdio
82                         --disable-libcelt
83                         --disable-chromaprint
84                         --disable-libdc1394
85                         --disable-debug
86                         --disable-htmlpages
87                         --disable-libfdk-aac
88                         --disable-libflite
89                         --disable-libgme
90                         --disable-libgsm
91                         --disable-libilbc
92                         --disable-libkvazaar
93                         --disable-ladspa
94                         --disable-libmp3lame
95                         --disable-libbluray
96                         --disable-libmodplug
97                         --disable-openal
98                         --disable-opencl
99                         --disable-opengl
100                         --disable-libopenh264
101                         --disable-libopenjpeg
102                         --disable-openssl
103                         --disable-libopus
104                         --disable-libpulse
105                         --disable-librubberband
106                         --disable-libsmbclient
107                         --disable-libsnappy
108                         --disable-sndio
109                         --disable-libsoxr
110                         --disable-libspeex
111                         --disable-libssh
112                         --disable-libtesseract
113                         --disable-libtwolame
114                         --disable-libvo-amrwbenc
115                         --disable-libvidstab
116                         --disable-libxcb
117                         --disable-outdev=xv
118                         --disable-libzimg
119                         --disable-libzmq
120                         --disable-libzvbi
121                         --disable-libmysofa
122                         --enable-libass
123                         --enable-fontconfig
124                         --enable-libfreetype
125                         --enable-frei0r
126                         --enable-libfribidi
127                         --enable-gcrypt
128                         --enable-gnutls
129                         --enable-gmp
130                         --enable-iconv
131                         --enable-libv4l2
132                         --enable-optimizations
133                         --enable-runtime-cpudetect
134                         --enable-librtmp
135                         --enable-sdl2
136                         --enable-libtheora
137                         --enable-vaapi
138                         --enable-vdpau
139                         --enable-libvorbis
140                         --enable-libvpx
141                         --enable-libwavpack
142                         --enable-libwebp
143                         --enable-libx264
144                         --enable-libx265
145                         --enable-libxvid
146                         --enable-libdrm
147                         --enable-librsvg
148                         --enable-libxml2
149
150 INSTALL_TARGET=         install-progs install-doc install-data install-libs
151                         install-headers install-examples
152 PLIST_SUB=              AVCODEC_SO=58.18.100
153                         AVCODEC_MAJOR=58
154                         AVDEVICE_SO=58.3.100
155                         AVDEVICE_MAJOR=58
156                         AVFILTER_SO=7.16.100
157                         AVFILTER_MAJOR=7
158                         AVFORMAT_SO=58.12.100
159                         AVFORMAT_MAJOR=58
160                         AVRESAMPLE_SO=4.0.0
161                         AVRESAMPLE_MAJOR=4
162                         AVUTIL_SO=56.14.100
163                         AVUTIL_MAJOR=56
164                         POSTPROC_SO=55.1.100
165                         POSTPROC_MAJOR=55
166                         SWRESAMPLE_SO=3.1.100
167                         SWRESAMPLE_MAJOR=3
168                         SCALE_SO=5.1.100
169                         SCALE_MAJOR=5
170 RC_SUBR=                ffserver:primary
171
172 post-install:
173         @${MKDIR} ${STAGEDIR}${STD_DOCDIR}
174 .for DF in CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES
175         ${INSTALL_DATA} ${WRKSRC}/${DF} ${STAGEDIR}${STD_DOCDIR}
176 .endfor
177         ${INSTALL_DATA} ${WRKSRC}/doc/APIchanges ${STAGEDIR}${STD_DOCDIR}
178         ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${STD_DOCDIR}
179
180 [FILE:843:descriptions/desc.primary]
181 FFmpeg is the leading multimedia framework, able to decode, encode,
182 transcode, mux, demux, stream, filter and play pretty much anything that
183 humans and machines have created. It supports the most obscure ancient
184 formats up to the cutting edge. No matter if they were designed by some
185 standards committee, the community or a corporation. It is also highly
186 portable: FFmpeg compiles, runs, and passes our testing infrastructure
187 FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc.
188 under a wide variety of build environments, machine architectures, and
189 configurations.
190
191 It contains libavcodec, libavutil, libavformat, libavfilter, libavdevice,
192 libswscale and libswresample which can be used by applications. As well
193 as ffmpeg, ffserver, ffplay and ffprobe which can be used by end users
194 for transcoding, streaming and playing.
195
196
197 [FILE:98:distinfo]
198 605f5c01c60db35d3b617a79cabb2c7032412be243554602eeed1b628125c0ee      8663660 ffmpeg-4.0.1.tar.xz
199
200
201 [FILE:3280:manifests/plist.primary]
202 bin/
203  ffmpeg
204  ffplay
205  ffprobe
206 include/libavcodec/
207  ac3_parser.h
208  adts_parser.h
209  avcodec.h
210  avdct.h
211  avfft.h
212  d3d11va.h
213  dirac.h
214  dv_profile.h
215  dxva2.h
216  jni.h
217  mediacodec.h
218  qsv.h
219  vaapi.h
220  vdpau.h
221  version.h
222  videotoolbox.h
223  vorbis_parser.h
224  xvmc.h
225 include/libavdevice/
226  avdevice.h
227  version.h
228 include/libavfilter/
229  avfilter.h
230  buffersink.h
231  buffersrc.h
232  version.h
233 include/libavformat/
234  avformat.h
235  avio.h
236  version.h
237 include/libavresample/
238  avresample.h
239  version.h
240 include/libavutil/
241  adler32.h
242  aes.h
243  aes_ctr.h
244  attributes.h
245  audio_fifo.h
246  avassert.h
247  avconfig.h
248  avstring.h
249  avutil.h
250  base64.h
251  blowfish.h
252  bprint.h
253  bswap.h
254  buffer.h
255  camellia.h
256  cast5.h
257  channel_layout.h
258  common.h
259  cpu.h
260  crc.h
261  des.h
262  dict.h
263  display.h
264  downmix_info.h
265  encryption_info.h
266  error.h
267  eval.h
268  ffversion.h
269  fifo.h
270  file.h
271  frame.h
272  hash.h
273  hmac.h
274  hwcontext.h
275  hwcontext_cuda.h
276  hwcontext_d3d11va.h
277  hwcontext_drm.h
278  hwcontext_dxva2.h
279  hwcontext_mediacodec.h
280  hwcontext_qsv.h
281  hwcontext_vaapi.h
282  hwcontext_vdpau.h
283  hwcontext_videotoolbox.h
284  imgutils.h
285  intfloat.h
286  intreadwrite.h
287  lfg.h
288  log.h
289  lzo.h
290  macros.h
291  mastering_display_metadata.h
292  mathematics.h
293  md5.h
294  mem.h
295  motion_vector.h
296  murmur3.h
297  opt.h
298  parseutils.h
299  pixdesc.h
300  pixelutils.h
301  pixfmt.h
302  random_seed.h
303  rational.h
304  rc4.h
305  replaygain.h
306  ripemd.h
307  samplefmt.h
308  sha.h
309  sha512.h
310  spherical.h
311  stereo3d.h
312  tea.h
313  threadmessage.h
314  time.h
315  timecode.h
316  timestamp.h
317  tree.h
318  twofish.h
319  version.h
320  xtea.h
321 include/libpostproc/
322  postprocess.h
323  version.h
324 include/libswresample/
325  swresample.h
326  version.h
327 include/libswscale/
328  swscale.h
329  version.h
330 lib/
331  libavcodec.a
332  libavcodec.so
333  libavcodec.so.%%AVCODEC_MAJOR%%
334  libavcodec.so.%%AVCODEC_SO%%
335  libavdevice.a
336  libavdevice.so
337  libavdevice.so.%%AVDEVICE_MAJOR%%
338  libavdevice.so.%%AVDEVICE_SO%%
339  libavfilter.a
340  libavfilter.so
341  libavfilter.so.%%AVFILTER_MAJOR%%
342  libavfilter.so.%%AVFILTER_SO%%
343  libavformat.a
344  libavformat.so
345  libavformat.so.%%AVFORMAT_MAJOR%%
346  libavformat.so.%%AVFORMAT_SO%%
347  libavresample.a
348  libavresample.so
349  libavresample.so.%%AVRESAMPLE_MAJOR%%
350  libavresample.so.%%AVRESAMPLE_SO%%
351  libavutil.a
352  libavutil.so
353  libavutil.so.%%AVUTIL_MAJOR%%
354  libavutil.so.%%AVUTIL_SO%%
355  libpostproc.a
356  libpostproc.so
357  libpostproc.so.%%POSTPROC_MAJOR%%
358  libpostproc.so.%%POSTPROC_SO%%
359  libswresample.a
360  libswresample.so
361  libswresample.so.%%SWRESAMPLE_MAJOR%%
362  libswresample.so.%%SWRESAMPLE_SO%%
363  libswscale.a
364  libswscale.so
365  libswscale.so.%%SCALE_MAJOR%%
366  libswscale.so.%%SCALE_SO%%
367 lib/pkgconfig/
368  libavcodec.pc
369  libavdevice.pc
370  libavfilter.pc
371  libavformat.pc
372  libavresample.pc
373  libavutil.pc
374  libpostproc.pc
375  libswresample.pc
376  libswscale.pc
377 share/ffmpeg/
378  ffprobe.xsd
379  libvpx-1080p.ffpreset
380  libvpx-1080p50_60.ffpreset
381  libvpx-360p.ffpreset
382  libvpx-720p.ffpreset
383  libvpx-720p50_60.ffpreset
384 share/ffmpeg/examples/
385  vaapi_encode.c
386  vaapi_transcode.c
387 share/man/man1/
388  ffmpeg-all.1.gz
389  ffmpeg-bitstream-filters.1.gz
390  ffmpeg-codecs.1.gz
391  ffmpeg-devices.1.gz
392  ffmpeg-filters.1.gz
393  ffmpeg-formats.1.gz
394  ffmpeg-protocols.1.gz
395  ffmpeg-resampler.1.gz
396  ffmpeg-scaler.1.gz
397  ffmpeg-utils.1.gz
398  ffmpeg.1.gz
399  ffplay-all.1.gz
400  ffplay.1.gz
401  ffprobe-all.1.gz
402  ffprobe.1.gz
403 share/man/man3/
404  libavcodec.3.gz
405  libavdevice.3.gz
406  libavfilter.3.gz
407  libavformat.3.gz
408  libavutil.3.gz
409  libswresample.3.gz
410  libswscale.3.gz
411
412
413 [FILE:373:manifests/plist.examples]
414 share/ffmpeg/examples/
415  Makefile
416  README
417  avio_dir_cmd.c
418  avio_reading.c
419  decode_audio.c
420  decode_video.c
421  demuxing_decoding.c
422  encode_audio.c
423  encode_video.c
424  extract_mvs.c
425  filter_audio.c
426  filtering_audio.c
427  filtering_video.c
428  http_multiclient.c
429  hw_decode.c
430  metadata.c
431  muxing.c
432  qsvdec.c
433  remuxing.c
434  resampling_audio.c
435  scaling_video.c
436  transcode_aac.c
437  transcoding.c
438
439
440 [FILE:707:patches/patch-configure]
441 --- configure.orig      2018-04-20 10:02:55 UTC
442 +++ configure
443 @@ -492,7 +492,7 @@ log(){
444  
445  log_file(){
446      log BEGIN $1
447 -    pr -n -t $1 >> $logfile
448 +    cat $1 >> $logfile
449      log END $1
450  }
451  
452 @@ -3516,12 +3516,7 @@ target_os_default=$(tolower $(uname -s))
453  host_os=$target_os_default
454  
455  # machine
456 -if test "$target_os_default" = aix; then
457 -    arch_default=$(uname -p)
458 -    strip_default="strip -X32_64"
459 -else
460 -    arch_default=$(uname -m)
461 -fi
462 +arch_default=$(uname -p)
463  cpu="generic"
464  intrinsics="none"
465  
466 @@ -3701,7 +3696,7 @@ die_unknown(){
467  
468  print_in_columns() {
469      cols=$(expr $ncols / 24)
470 -    cat | tr ' ' '\n' | sort | pr -r "-$cols" -w $ncols -t
471 +    cat | tr ' ' '\n' | sort 
472  }
473  
474  show_list() {
475
476
477 [FILE:287:patches/patch-doc_Makefile]
478 --- doc/Makefile.orig   2018-04-20 10:02:55 UTC
479 +++ doc/Makefile
480 @@ -119,7 +119,7 @@ install-html: $(HTMLPAGES)
481  endif
482  
483  ifdef CONFIG_MANPAGES
484 -install-progs-$(CONFIG_DOC): install-man
485 +#install-progs-$(CONFIG_DOC): install-man
486  
487  install-man: $(MANPAGES)
488         $(Q)mkdir -p "$(MANDIR)/man1"
489
490
491 [FILE:199:patches/patch-ffbuild_libversion.sh]
492 --- ffbuild/libversion.sh.orig  2018-04-20 10:02:55 UTC
493 +++ ffbuild/libversion.sh
494 @@ -1,3 +1,5 @@
495 +#!/bin/sh
496 +
497  toupper(){
498      echo "$@" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
499  }
500
501
502 [FILE:1842:patches/patch-libavformat_rtsp.c]
503 --- libavformat/rtsp.c.orig     2018-04-20 10:02:58 UTC
504 +++ libavformat/rtsp.c
505 @@ -1618,7 +1618,12 @@ int ff_rtsp_make_setup_request(AVFormatC
506              }
507              if (ttl > 0)
508                  snprintf(optbuf, sizeof(optbuf), "?ttl=%d", ttl);
509 -            getnameinfo((struct sockaddr*) &addr, sizeof(addr),
510 +            getnameinfo((struct sockaddr*) &addr,
511 +#if HAVE_STRUCT_SOCKADDR_SA_LEN
512 +                        ((struct sockaddr*) &addr)->sa_len,
513 +#else
514 +                        sizeof(addr),
515 +#endif
516                          namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
517              ff_url_join(url, sizeof(url), "rtp", NULL, namebuf,
518                          port, "%s", optbuf);
519 @@ -1834,8 +1839,13 @@ redirect:
520          goto fail;
521      }
522      if (!getpeername(tcp_fd, (struct sockaddr*) &peer, &peer_len)) {
523 -        getnameinfo((struct sockaddr*) &peer, peer_len, host, sizeof(host),
524 -                    NULL, 0, NI_NUMERICHOST);
525 +        getnameinfo((struct sockaddr*) &peer,
526 +#if HAVE_STRUCT_SOCKADDR_SA_LEN
527 +                    ((struct sockaddr*) &peer)->sa_len,
528 +#else
529 +                    peer_len,
530 +#endif
531 +                    host, sizeof(host), NULL, 0, NI_NUMERICHOST);
532      }
533  
534      /* request options supported by the server; this also detects server
535 @@ -2348,7 +2358,11 @@ static int sdp_read_header(AVFormatConte
536              AVDictionary *opts = map_to_opts(rt);
537  
538              err = getnameinfo((struct sockaddr*) &rtsp_st->sdp_ip,
539 +#if HAVE_STRUCT_SOCKADDR_SA_LEN
540 +                              ((struct sockaddr*) &rtsp_st->sdp_ip)->sa_len,
541 +#else
542                                sizeof(rtsp_st->sdp_ip),
543 +#endif
544                                namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
545              if (err) {
546                  av_log(s, AV_LOG_ERROR, "getnameinfo: %s\n", gai_strerror(err));
547
548
549 [FILE:331:patches/patch-libavutil_common.h]
550 --- libavutil/common.h.orig     2018-04-20 10:02:58 UTC
551 +++ libavutil/common.h
552 @@ -50,6 +50,10 @@
553  #   define AV_NE(be, le) (le)
554  #endif
555  
556 +#ifndef        UINT64_C
557 +#define        UINT64_C(c)     (c ## UL)
558 +#endif
559 +
560  //rounded division & shift
561  #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
562  /* assume b>0 */
563
564
565 [FILE:398:files/ffserver.in]
566 #!/bin/sh
567 #
568 # PROVIDE: ffserver
569 # REQUIRE: NETWORKING
570 # KEYWORD: shutdown
571
572 #
573 # Add the following lines to /etc/rc.conf to enable ffserver:
574 #
575 #ffserver_enable="YES"
576 #
577 ffserver_enable="${ffserver_enable-NO}"
578
579 . /etc/rc.subr
580
581 name=ffserver
582 rcvar=ffserver_enable
583
584 command="%%PREFIX%%/bin/${name}"
585 command_args="&"
586 required_files=%%PREFIX%%/etc/ffserver.conf
587
588 load_rc_config ${name}
589 run_rc_command "$1"
590