File belr-fix-pkgconfig.patch of Package belr
Index: belr-5.3.7/belr.pc.in
===================================================================
--- belr-5.3.7.orig/belr.pc.in
+++ belr-5.3.7/belr.pc.in
@@ -4,6 +4,7 @@ prefix=@CMAKE_INSTALL_PREFIX@
Name: @PROJECT_NAME@
Description: Belr is Belledonne Communications' language recognition library
Version: @PROJECT_VERSION@
+Requires.private: bctoolbox
Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lbelr
Libs.private: @LIBS_PRIVATE@
Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@
Index: belr-5.3.7/CMakeLists.txt
===================================================================
--- belr-5.3.7.orig/CMakeLists.txt
+++ belr-5.3.7/CMakeLists.txt
@@ -66,6 +66,11 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/belr.pc.in ${CMAKE_CURRENT_BINARY_DIR}/belr.pc)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/belr.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
+
+
set(STRICT_OPTIONS_CPP )
set(STRICT_OPTIONS_C )
set(STRICT_OPTIONS_CXX )