1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
6 KEYWORDS= multimedia audio net
8 SDESC[standard]= Play, record, convert, and stream audio and video
9 HOMEPAGE= https://www.ffmpeg.org/
13 SITES[main]= http://ffmpeg.org/releases/
14 DISTFILE[1]= ffmpeg-5.1.2.tar.xz:main
16 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= none
22 OPTIONS_STANDARD= none
24 BUILD_DEPENDS= nasm:primary:standard
25 libgpg-error: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
40 libvdpau:single:standard
41 libvorbis:primary:standard
42 libvpx:single:standard
43 libdrm:single:standard
44 librsvg:primary:standard
50 USES= cpe gmake iconv zlib perl:build fontconfig pkgconfig
51 gettext:build shebangfix
52 GNOME_COMPONENTS= libxml2
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
61 FPC_EQUIVALENT= multimedia/ffmpeg
62 SHEBANG_ADD_SH= ffbuild/libversion.sh
63 SHEBANG_FILES= doc/texi2pod.pl
66 CONFIGURE_ARGS= --cc="{{CC}}"
68 --mandir="{{MANPREFIX}}/man"
69 --datadir="{{PREFIX}}/share/ffmpeg"
70 --pkgconfigdir="{{PREFIX}}/lib/pkgconfig"
79 --disable-libopencore-amrnb
80 --disable-libopencore-amrwb
102 --disable-libopenh264
103 --disable-libopenjpeg
107 --disable-librubberband
108 --disable-libsmbclient
114 --disable-libtesseract
116 --disable-libvo-amrwbenc
126 --disable-outdev=v4l2
136 --enable-optimizations
137 --enable-runtime-cpudetect
153 INSTALL_TARGET= install-progs install-doc install-data install-libs
154 install-headers install-examples
155 PLIST_SUB= AVCODEC_SO=59.37.100
161 AVFORMAT_SO=59.27.100
167 SWRESAMPLE_SO=4.7.100
171 RC_SUBR= ffserver:primary
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}
178 ${INSTALL_DATA} ${WRKSRC}/doc/APIchanges ${STAGEDIR}${STD_DOCDIR}
179 ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${STD_DOCDIR}
182 ${REINPLACE_CMD} -e '/^enabled libxvid/ s/$$/ -lrt/' \
183 -e '/append SHFLAGS.*version_script/d' \
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
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.
204 619e706d662c8420859832ddc259cd4d4096a48a2ce1eefd052db9e440eef3dc 10004956 ffmpeg-5.1.2.tar.xz
207 [FILE:3491:manifests/plist.primary]
290 hdr_dynamic_metadata.h
291 hdr_dynamic_vivid_metadata.h
298 hwcontext_mediacodec.h
303 hwcontext_videotoolbox.h
312 mastering_display_metadata.h
349 include/libswresample/
360 libavcodec.so.%%AVCODEC_MAJOR%%
361 libavcodec.so.%%AVCODEC_SO%%
364 libavdevice.so.%%AVDEVICE_MAJOR%%
365 libavdevice.so.%%AVDEVICE_SO%%
368 libavfilter.so.%%AVFILTER_MAJOR%%
369 libavfilter.so.%%AVFILTER_SO%%
372 libavformat.so.%%AVFORMAT_MAJOR%%
373 libavformat.so.%%AVFORMAT_SO%%
376 libavutil.so.%%AVUTIL_MAJOR%%
377 libavutil.so.%%AVUTIL_SO%%
380 libpostproc.so.%%POSTPROC_MAJOR%%
381 libpostproc.so.%%POSTPROC_SO%%
384 libswresample.so.%%SWRESAMPLE_MAJOR%%
385 libswresample.so.%%SWRESAMPLE_SO%%
388 libswscale.so.%%SCALE_MAJOR%%
389 libswscale.so.%%SCALE_SO%%
401 libvpx-1080p.ffpreset
402 libvpx-1080p50_60.ffpreset
405 libvpx-720p50_60.ffpreset
406 share/ffmpeg/examples/
412 ffmpeg-bitstream-filters.1.gz
417 ffmpeg-protocols.1.gz
418 ffmpeg-resampler.1.gz
436 [FILE:357:manifests/plist.examples]
437 share/ffmpeg/examples/
462 [FILE:287:patches/patch-doc_Makefile]
463 --- doc/Makefile.orig 2022-07-22 17:58:38 UTC
465 @@ -122,7 +122,7 @@ install-html: $(HTMLPAGES)
468 ifdef CONFIG_MANPAGES
469 -install-progs-$(CONFIG_DOC): install-man
470 +#install-progs-$(CONFIG_DOC): install-man
472 install-man: $(MANPAGES)
473 $(Q)mkdir -p "$(MANDIR)/man1"
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
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,
490 namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
491 ff_url_join(url, sizeof(url), "rtp", NULL, namebuf,
493 @@ -1907,8 +1912,13 @@ redirect:
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,
505 + host, sizeof(host), NULL, 0, NI_NUMERICHOST);
508 /* request options supported by the server; this also detects server
509 @@ -2423,7 +2433,11 @@ static int sdp_read_header(AVFormatConte
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,
516 sizeof(rtsp_st->sdp_ip),
518 namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
520 av_log(s, AV_LOG_ERROR, "getnameinfo: %s\n", gai_strerror(err));
523 [FILE:338:patches/patch-libavutil_common.h]
524 --- libavutil/common.h.orig 2022-07-22 17:58:39 UTC
525 +++ libavutil/common.h
527 #include "attributes.h"
531 +#define UINT64_C(c) (c ## UL)
534 //rounded division & shift
535 #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))
539 [FILE:398:files/ffserver.in]
543 # REQUIRE: NETWORKING
547 # Add the following lines to /etc/rc.conf to enable ffserver:
549 #ffserver_enable="YES"
551 ffserver_enable="${ffserver_enable-NO}"
556 rcvar=ffserver_enable
558 command="%%PREFIX%%/bin/${name}"
560 required_files=%%PREFIX%%/etc/ffserver.conf
562 load_rc_config ${name}