# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= ffmpeg VERSION= 7.0 KEYWORDS= multimedia audio net VARIANTS= standard SDESC[standard]= Play, record, convert, and stream audio and video HOMEPAGE= https://www.ffmpeg.org/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= http://ffmpeg.org/releases/ DISTFILE[1]= ffmpeg-7.0.tar.xz:main DF_INDEX= 1 SPKGS[standard]= complete primary tools examples dev man docs OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= libdrm:dev:standard libvpx:dev:standard gettext:solinks:standard gmp:static:standard gnutls:dev:standard nasm:primary:standard x264:dev:standard x265:dev:standard libass:dev:standard libva:dev:standard libgcrypt:dev:standard libvorbis:dev:standard WebP:dev:standard frei0r:dev:standard rtmpdump:dev:standard xvid:dev:standard libtheora:dev:standard libvdpau:dev:standard BUILDRUN_DEPENDS= gmp:shared:standard libass:primary:standard frei0r:primary:standard libgcrypt:primary:standard gnutls:primary:standard rtmpdump:primary:standard libtheora:primary:standard libva:primary:standard libvdpau:primary:standard libvorbis:primary:standard libvpx:primary:standard libdrm:primary:standard WebP:primary:standard x264:primary:standard x265:primary:standard xvid:primary:standard EXRUN[tools]= primary EXRUN[dev]= libdrm:dev:standard libgcrypt:dev:standard libvpx:dev:standard libass:dev:standard libva:dev:standard libvorbis:dev:standard libtheora:dev:standard libvdpau:dev:standard x264:dev:standard x265:dev:standard xvid:dev:standard WebP:dev:standard librsvg:dev:standard libxml2:dev:standard glib:dev:standard zlib:dev:standard sdl2:dev:standard gnutls:dev:standard rtmpdump:dev:standard gdk-pixbuf:dev:standard pango:dev:standard USES= cpe gmake iconv zlib perl:build pkgconfig gettext:build shebangfix GNOME_COMPONENTS= libxml2 librsvg SDL_COMPONENTS= sdl2 DISTNAME= ffmpeg-7.0 LICENSE= LGPL3+:primary GPLv3+:primary LICENSE_TERMS= primary:{{WRKSRC}}/LICENSE.md LICENSE_FILE= LGPL3+:{{WRKSRC}}/COPYING.LGPLv3 GPLv3+:{{WRKSRC}}/COPYING.GPLv3 LICENSE_SCHEME= multi FPC_EQUIVALENT= multimedia/ffmpeg SHEBANG_ADD_SH= ffbuild/libversion.sh SHEBANG_FILES= doc/texi2pod.pl MUST_CONFIGURE= yes CONFIGURE_ARGS= --cc="{{CC}}" --prefix="{{PREFIX}}" --mandir="{{MANPREFIX}}/man" --datadir="{{PREFIX}}/share/ffmpeg" --pkgconfigdir="{{PREFIX}}/lib/pkgconfig" --enable-shared --enable-pic --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --disable-alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libbs2b --disable-libcaca --disable-libcdio --disable-libcelt --disable-chromaprint --disable-libdc1394 --disable-debug --disable-htmlpages --disable-libfdk-aac --disable-libflite --disable-libgme --disable-libgsm --disable-libilbc --disable-libkvazaar --disable-ladspa --disable-libmp3lame --disable-libbluray --disable-libmodplug --disable-openal --disable-opencl --disable-opengl --disable-libopenh264 --disable-libopenjpeg --disable-openssl --disable-libopus --disable-libpulse --disable-librubberband --disable-libsmbclient --disable-libsnappy --disable-sndio --disable-libsoxr --disable-libspeex --disable-libssh --disable-libtesseract --disable-libtwolame --disable-libvo-amrwbenc --disable-libvidstab --disable-libxcb --disable-outdev=xv --disable-libzimg --disable-libzmq --disable-libzvbi --disable-libmysofa --disable-libv4l2 --disable-indev=v4l2 --disable-outdev=v4l2 --enable-libass --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-libfribidi --enable-gcrypt --enable-gnutls --enable-gmp --enable-iconv --enable-optimizations --enable-runtime-cpudetect --enable-librtmp --enable-sdl2 --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libdrm --enable-librsvg --enable-libxml2 INSTALL_TARGET= install-progs install-doc install-data install-libs install-headers install-examples PLIST_SUB= AVCODEC_SO=61.3.100 AVCODEC_MAJOR=61 AVDEVICE_SO=61.1.100 AVDEVICE_MAJOR=61 AVFILTER_SO=10.1.100 AVFILTER_MAJOR=10 AVFORMAT_SO=61.1.100 AVFORMAT_MAJOR=61 AVUTIL_SO=59.8.100 AVUTIL_MAJOR=59 POSTPROC_SO=58.1.100 POSTPROC_MAJOR=58 SWRESAMPLE_SO=5.1.100 SWRESAMPLE_MAJOR=5 SCALE_SO=8.1.100 SCALE_MAJOR=8 post-install: @${MKDIR} ${STAGEDIR}${STD_DOCDIR} .for DF in CREDITS LICENSE.md MAINTAINERS README.md RELEASE_NOTES ${INSTALL_DATA} ${WRKSRC}/${DF} ${STAGEDIR}${STD_DOCDIR} .endfor ${INSTALL_DATA} ${WRKSRC}/doc/APIchanges ${STAGEDIR}${STD_DOCDIR} ${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${STD_DOCDIR} post-patch-sunos: ${REINPLACE_CMD} -e '/^enabled libxvid/ s/$$/ -lrt/' \ -e '/append SHFLAGS.*version_script/d' \ ${WRKSRC}/configure [FILE:843:descriptions/desc.primary] FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations. It contains libavcodec, libavutil, libavformat, libavfilter, libavdevice, libswscale and libswresample which can be used by applications. As well as ffmpeg, ffserver, ffplay and ffprobe which can be used by end users for transcoding, streaming and playing. [FILE:40:descriptions/desc.tools] This package contains the ffmeg6 tools. [FILE:96:distinfo] 4426a94dd2c814945456600c8adfc402bee65ec14a70e8c531ec9a2cd651da7b 10791240 ffmpeg-7.0.tar.xz [FILE:529:manifests/plist.primary] lib/ libavcodec.so.%%AVCODEC_MAJOR%% libavcodec.so.%%AVCODEC_SO%% libavdevice.so.%%AVDEVICE_MAJOR%% libavdevice.so.%%AVDEVICE_SO%% libavfilter.so.%%AVFILTER_MAJOR%% libavfilter.so.%%AVFILTER_SO%% libavformat.so.%%AVFORMAT_MAJOR%% libavformat.so.%%AVFORMAT_SO%% libavutil.so.%%AVUTIL_MAJOR%% libavutil.so.%%AVUTIL_SO%% libpostproc.so.%%POSTPROC_MAJOR%% libpostproc.so.%%POSTPROC_SO%% libswresample.so.%%SWRESAMPLE_MAJOR%% libswresample.so.%%SWRESAMPLE_SO%% libswscale.so.%%SCALE_MAJOR%% libswscale.so.%%SCALE_SO%% [FILE:30:manifests/plist.tools] bin/ ffmpeg ffplay ffprobe [FILE:437:manifests/plist.examples] share/ffmpeg/examples/ Makefile README avio_http_serve_files.c avio_list_dir.c avio_read_callback.c decode_audio.c decode_filter_audio.c decode_filter_video.c decode_video.c demux_decode.c encode_audio.c encode_video.c extract_mvs.c filter_audio.c hw_decode.c mux.c qsv_decode.c qsv_transcode.c remux.c resample_audio.c scale_video.c show_metadata.c transcode.c transcode_aac.c vaapi_encode.c vaapi_transcode.c [FILE:2493:manifests/plist.dev] include/libavcodec/ ac3_parser.h adts_parser.h avcodec.h avdct.h avfft.h bsf.h codec.h codec_desc.h codec_id.h codec_par.h d3d11va.h defs.h dirac.h dv_profile.h dxva2.h jni.h mediacodec.h packet.h qsv.h vdpau.h version.h version_major.h videotoolbox.h vorbis_parser.h include/libavdevice/ avdevice.h version.h version_major.h include/libavfilter/ avfilter.h buffersink.h buffersrc.h version.h version_major.h include/libavformat/ avformat.h avio.h version.h version_major.h include/libavutil/ adler32.h aes.h aes_ctr.h ambient_viewing_environment.h attributes.h audio_fifo.h avassert.h avconfig.h avstring.h avutil.h base64.h blowfish.h bprint.h bswap.h buffer.h camellia.h cast5.h channel_layout.h common.h cpu.h crc.h csp.h des.h detection_bbox.h dict.h display.h dovi_meta.h downmix_info.h encryption_info.h error.h eval.h executor.h ffversion.h fifo.h file.h film_grain_params.h frame.h hash.h hdr_dynamic_metadata.h hdr_dynamic_vivid_metadata.h hmac.h hwcontext.h hwcontext_cuda.h hwcontext_d3d11va.h hwcontext_d3d12va.h hwcontext_drm.h hwcontext_dxva2.h hwcontext_mediacodec.h hwcontext_opencl.h hwcontext_qsv.h hwcontext_vaapi.h hwcontext_vdpau.h hwcontext_videotoolbox.h hwcontext_vulkan.h iamf.h imgutils.h intfloat.h intreadwrite.h lfg.h log.h lzo.h macros.h mastering_display_metadata.h mathematics.h md5.h mem.h motion_vector.h murmur3.h opt.h parseutils.h pixdesc.h pixelutils.h pixfmt.h random_seed.h rational.h rc4.h replaygain.h ripemd.h samplefmt.h sha.h sha512.h spherical.h stereo3d.h tea.h threadmessage.h time.h timecode.h timestamp.h tree.h twofish.h tx.h uuid.h version.h video_enc_params.h video_hint.h xtea.h include/libpostproc/ postprocess.h version.h version_major.h include/libswresample/ swresample.h version.h version_major.h include/libswscale/ swscale.h version.h version_major.h lib/ libavcodec.a libavcodec.so libavdevice.a libavdevice.so libavfilter.a libavfilter.so libavformat.a libavformat.so libavutil.a libavutil.so libpostproc.a libpostproc.so libswresample.a libswresample.so libswscale.a libswscale.so lib/pkgconfig/ libavcodec.pc libavdevice.pc libavfilter.pc libavformat.pc libavutil.pc libpostproc.pc libswresample.pc libswscale.pc share/ffmpeg/ ffprobe.xsd libvpx-1080p.ffpreset libvpx-1080p50_60.ffpreset libvpx-360p.ffpreset libvpx-720p.ffpreset libvpx-720p50_60.ffpreset [FILE:447:manifests/plist.man] share/man/man1/ ffmpeg-all.1.gz ffmpeg-bitstream-filters.1.gz ffmpeg-codecs.1.gz ffmpeg-devices.1.gz ffmpeg-filters.1.gz ffmpeg-formats.1.gz ffmpeg-protocols.1.gz ffmpeg-resampler.1.gz ffmpeg-scaler.1.gz ffmpeg-utils.1.gz ffmpeg.1.gz ffplay-all.1.gz ffplay.1.gz ffprobe-all.1.gz ffprobe.1.gz share/man/man3/ libavcodec.3.gz libavdevice.3.gz libavfilter.3.gz libavformat.3.gz libavutil.3.gz libswresample.3.gz libswscale.3.gz [FILE:251:patches/patch-configure] --- configure.orig 2024-04-04 23:22:59 UTC +++ configure @@ -5728,7 +5728,7 @@ case $target_os in dragonfly) disable symver ;; - freebsd) + freebsd|midnightbsd) enable section_data_rel_ro ;; bsd/os) [FILE:287:patches/patch-doc_Makefile] --- doc/Makefile.orig 2023-11-11 00:25:17 UTC +++ doc/Makefile @@ -123,7 +123,7 @@ install-html: $(HTMLPAGES) endif ifdef CONFIG_MANPAGES -install-progs-$(CONFIG_DOC): install-man +#install-progs-$(CONFIG_DOC): install-man install-man: $(MANPAGES) $(Q)mkdir -p "$(MANDIR)/man1" [FILE:1819:patches/patch-libavformat_rtsp.c] --- libavformat/rtsp.c.orig 2024-04-04 23:23:00 UTC +++ libavformat/rtsp.c @@ -1675,7 +1675,12 @@ int ff_rtsp_make_setup_request(AVFormatC } if (ttl > 0) snprintf(optbuf, sizeof(optbuf), "?ttl=%d", ttl); - getnameinfo((struct sockaddr*) &addr, sizeof(addr), + getnameinfo((struct sockaddr*) &addr, +#if HAVE_STRUCT_SOCKADDR_SA_LEN + ((struct sockaddr*) &addr)->sa_len, +#else + sizeof(addr), +#endif namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST); ff_url_join(url, sizeof(url), "rtp", NULL, namebuf, port, "%s", optbuf); @@ -1909,8 +1914,13 @@ redirect: goto fail; } if (!getpeername(tcp_fd, (struct sockaddr*) &peer, &peer_len)) { - getnameinfo((struct sockaddr*) &peer, peer_len, host, sizeof(host), - NULL, 0, NI_NUMERICHOST); + getnameinfo((struct sockaddr*) &peer, +#if HAVE_STRUCT_SOCKADDR_SA_LEN + ((struct sockaddr*) &peer)->sa_len, +#else + peer_len, +#endif + host, sizeof(host), NULL, 0, NI_NUMERICHOST); } /* request options supported by the server; this also detects server @@ -2425,7 +2435,11 @@ static int sdp_read_header(AVFormatConte const char *p; err = getnameinfo((struct sockaddr*) &rtsp_st->sdp_ip, +#if HAVE_STRUCT_SOCKADDR_SA_LEN + ((struct sockaddr*) &rtsp_st->sdp_ip)->sa_len, +#else sizeof(rtsp_st->sdp_ip), +#endif namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST); if (err) { av_log(s, AV_LOG_ERROR, "getnameinfo: %s\n", gai_strerror(err)); [FILE:349:patches/patch-libavutil_common.h] --- libavutil/common.h.orig 2024-04-04 23:23:00 UTC +++ libavutil/common.h @@ -50,6 +50,10 @@ # include "internal.h" #endif /* HAVE_AV_CONFIG_H */ +#ifndef UINT64_C +#define UINT64_C(c) (c ## UL) +#endif + //rounded division & shift #define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b)) /* assume b>0 */