From 549b07f598406edfc02d884cedb6de4055962666 Mon Sep 17 00:00:00 2001 From: wxf Date: Wed, 23 Jun 2021 09:44:37 +0800 Subject: [PATCH] spec: Enable WebRTC --- package/rpm/ZLMediaKit.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/rpm/ZLMediaKit.spec b/package/rpm/ZLMediaKit.spec index 58b2b633..27685f7d 100644 --- a/package/rpm/ZLMediaKit.spec +++ b/package/rpm/ZLMediaKit.spec @@ -2,10 +2,12 @@ %global use_devtoolset 0 %bcond_without faac %bcond_without x264 +%bcond_without webrtc %else %global use_devtoolset 1 %bcond_with faac %bcond_with x264 +%bcond_with webrtc %endif %bcond_without openssl @@ -37,6 +39,10 @@ BuildRequires: faac-devel BuildRequires: x264-devel %endif +%if %{with webrtc} +BuildRequires: libsrtp-devel >= 2.0 +%endif + %if 0%{?use_devtoolset} BuildRequires: devtoolset-8-gcc-c++ %endif @@ -88,6 +94,7 @@ pushd %{_target_platform} -DENABLE_MYSQL:BOOL=%{with mysql} \ -DENABLE_FAAC:BOOL=%{with faac} \ -DENABLE_X264:BOOL=%{with x264} \ + -DENABLE_WEBRTC:BOOL=%{with webrtc} \ -DENABLE_MP4:BOOL=ON \ -DENABLE_RTPPROXY:BOOL=ON \ -DENABLE_API:BOOL=ON \