From bbc10a27f343b1a3cd34139498cfca70ac43580a Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Sun, 8 Jan 2023 17:07:43 +0100 Subject: [PATCH] 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 MFH: 2023Q1 (cherry picked from commit 8855990a698ea489ad155282471df4ce864b8fad) --- multimedia/ffmpeg/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index 45ae795c537d..22e18bacaa20 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -1,6 +1,6 @@ PORTNAME= ffmpeg PORTVERSION= 4.4.3 -PORTREVISION= 1 +PORTREVISION= 2 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,8 @@ 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 \ - V4L VAAPI VDPAU VMAF VORBIS VPX WEBP X264 X265 XCB + GNUTLS ICONV LAME LIBXML2 NETWORK OPTIMIZED_CFLAGS OPUS \ + RTCPU V4L VAAPI VDPAU VMAF VORBIS VPX WEBP X264 X265 XCB OPTIONS_DEFAULT_amd64= NVENC SVTAV1 OPTIONS_DEFAULT_i386= NVENC @@ -113,6 +113,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 +351,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