File mediastreamer2-fix-pkgconfig.patch of Package mediastreamer2
Index: mediastreamer2-5.3.7/CMakeLists.txt
===================================================================
--- mediastreamer2-5.3.7.orig/CMakeLists.txt
+++ mediastreamer2-5.3.7/CMakeLists.txt
@@ -125,6 +125,8 @@ option(ENABLE_JPEG "Enable JPEG support"
cmake_dependent_option(ENABLE_QRCODE "Enable QRCode support" YES "ENABLE_VIDEO" NO)
cmake_dependent_option(ENABLE_AV1 "Build mediastreamer2 with AV1 support." YES "ENABLE_VIDEO" NO)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/mediastreamer.pc.in ${CMAKE_CURRENT_BINARY_DIR}/mediastreamer.pc)
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mediastreamer.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS NO)