multimedia/ffmpeg: Add NETWORK DEFAULT OPTION

Details:
Disabling the NETWORK OPTION (DEFAULT) allows users to compile ffmpeg
without networking code in libavcodec.

PR:		268786
Reported by:	Alexander Ushakov <alexander@polyvizor.com>
MFH:		2023Q1
This commit is contained in:
Thomas Zander 2023-01-08 17:07:43 +01:00
parent 27c2e64634
commit 8855990a69
No known key found for this signature in database
GPG Key ID: 856D8ED47C7EAFA5

View File

@ -1,6 +1,6 @@
PORTNAME= ffmpeg
PORTVERSION= 4.4.3
PORTREVISION= 3
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= multimedia audio net
MASTER_SITES= https://ffmpeg.org/releases/
@ -35,7 +35,7 @@ OPTIONS_DEFINE= ALSA AMR_NB AMR_WB AOM ARIBB24 ASM ASS BS2B CACA CDIO \
CODEC2 DAV1D DAVS2 DC1394 DEBUG DOCS DRM FDK_AAC FLITE \
FONTCONFIG FREETYPE FREI0R FRIBIDI GLSLANG GME GSM ICONV ILBC \
JACK KLVANC KVAZAAR LADSPA LAME LENSFUN LIBBLURAY LIBRSVG2 \
LIBXML2 LTO LV2 MODPLUG MYSOFA NVENC OPENAL OPENCL OPENGL \
LIBXML2 LTO LV2 MODPLUG MYSOFA NETWORK NVENC OPENAL OPENCL OPENGL \
OPENH264 OPENJPEG OPENMPT OPENVINO OPTIMIZED_CFLAGS OPUS POCKETSPHINX \
PULSEAUDIO RAV1E RABBITMQ RIST RTCPU RUBBERBAND SDL SMB SNAPPY \
SNDIO SOXR SPEEX SRT SSH SVTAV1 SVTHEVC SVTVP9 TENSORFLOW \
@ -47,8 +47,9 @@ OPTIONS_DEFINE_amd64= MFX
OPTIONS_DEFINE_i386= MFX
OPTIONS_DEFAULT= AOM ASM ASS DAV1D DRM FONTCONFIG FREETYPE FREI0R GMP \
GNUTLS ICONV LAME LIBXML2 OPTIMIZED_CFLAGS OPUS RTCPU \
SVTAV1 V4L VAAPI VDPAU VMAF VORBIS VPX WEBP X264 X265 XCB
GNUTLS ICONV LAME LIBXML2 NETWORK OPTIMIZED_CFLAGS OPUS \
RTCPU SVTAV1 V4L VAAPI VDPAU VMAF VORBIS VPX WEBP X264 \
X265 XCB
OPTIONS_DEFAULT_amd64= NVENC
OPTIONS_DEFAULT_i386= NVENC
@ -113,6 +114,7 @@ LICENSE_DESC= Licensing options
LV2_DESC= LV2 audio filtering
MFX_DESC= Intel MediaSDK (aka Quick Sync Video)
MYSOFA_DESC= SOFAlizer binaural filter
NETWORK_DESC= Networking support
NONFREE_DESC= Allow use of nonfree code
NVENC_DESC= NVIDIA decoder/encoder with CUDA support
OPENMPT_DESC= Decoding tracked files via libopenmpt
@ -350,6 +352,9 @@ MODPLUG_CONFIGURE_ENABLE= libmodplug
MYSOFA_LIB_DEPENDS= libmysofa.so:audio/libmysofa
MYSOFA_CONFIGURE_ENABLE= libmysofa
# network
NETWORK_CONFIGURE_ENABLE= network
# nvenc
NVENC_BUILD_DEPENDS= ${LOCALBASE}/include/ffnvcodec/nvEncodeAPI.h:multimedia/ffnvcodec-headers
NVENC_CONFIGURE_ENABLE= nvenc