From 4366f6fa2289c197066861ac0c2ebef6dd72ea50 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 2 Feb 2021 19:17:10 +0100 Subject: [PATCH] TT#99001 Make the with_transcoding builds dependent on build-profiles When we disable transcoding we should completely disable building the rtpengine-recording daemon packages too. We accomplish that by using a build-profile. This also removes the Debianism from the upstream build system and moves the setting to the Debian packaging. Change-Id: Idf7783823d36b49ce03610fb1f4386afe5887029 --- Makefile | 3 --- debian/control | 1 + debian/rules | 4 ++++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index de6c12e2d..0d1030290 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,5 @@ RTPENGINE_ROOT_DIR=. with_transcoding ?= yes -ifneq ($(DEB_WITH_TRANSCODING),) -with_transcoding = $(DEB_WITH_TRANSCODING) -endif include lib/lib.Makefile diff --git a/debian/control b/debian/control index 06a56760d..02b77fc87 100644 --- a/debian/control +++ b/debian/control @@ -58,6 +58,7 @@ Description: proxy for RTP and media streams used in NGCP, userspace part Package: ngcp-rtpengine-recording-daemon Architecture: any +Build-Profiles: Recommends: ngcp-rtpengine-utils, Suggests: diff --git a/debian/rules b/debian/rules index 83dbf34b2..2926441e1 100755 --- a/debian/rules +++ b/debian/rules @@ -21,6 +21,10 @@ PACKAGE=ngcp-rtpengine-kernel XTABLES_DIR:=$(shell pkg-config xtables --variable=xtlibdir || echo /lib/xtables) +ifneq (,$(filter $(DEB_BUILD_PROFILES),pkg.ngcp-rtpengine.no-transcoding)) +export with_transcoding = no +endif + %: dh $@