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