File: find-bcg729.patch

package info (click to toggle)
mediastreamer2 1%3A5.1.64%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,924 kB
  • sloc: ansic: 69,943; cpp: 20,702; objc: 3,364; java: 1,828; makefile: 780; cs: 701; sh: 701; asm: 186; python: 130; xml: 63; awk: 4
file content (20 lines) | stat: -rw-r--r-- 773 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -144,6 +144,7 @@
 include(CheckLibraryExists)
 include(CMakePushCheckState)
 include(GNUInstallDirs)
+include(FindPkgConfig)
 
 if(NOT CMAKE_INSTALL_RPATH AND CMAKE_INSTALL_PREFIX)
 	set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
@@ -367,6 +368,9 @@
 if(ENABLE_G729 OR ENABLE_G729B_CNG)
 	find_package(Bcg729 CONFIG)
 	if(NOT BCG729_FOUND)
+	pkg_search_module(BCG729 REQUIRED libbcg729)
+	endif()
+	if(NOT BCG729_FOUND)
 		message(WARNING "Could not find bcg729, mediastreamer2 will be compiled without G729 codec and G729 AnnexB in RFC3389.")
 		set(ENABLE_G729 OFF CACHE BOOL "Build mediastreamer2 with the G729 codec." FORCE)
 		set(ENABLE_G729B_CNG OFF CACHE BOOL "Build mediastreamer2 with G729 Annex B cng." FORCE)