Source: mediastreamer2 Version: 1:4.4.21-1 Severity: serious tags: patch Hello, kopete does use pkgconfig to find the mediastreamer2, and the new version with the cmake switch dropped the pkgconfig installation.
I did craft a patch to install the pkgconfig file in cmake builds too (as it is done with autoconf). It might be not the best patch to fix the issue, but it should work (the variables are called differently in cmake/autotools, so I had to set includedir manually in cmake before configuring the .pc.in file). Please have a look and apply / forward upstream if you like it. G. Description: Add pkgconfig file to help kopete find the library Author: Gianfranco Costamagna <locutusofb...@debian.org> Forwarded: no Last-Update: 2020-12-28 Index: mediastreamer2-4.4.21/CMakeLists.txt =================================================================== --- mediastreamer2-4.4.21.orig/CMakeLists.txt +++ mediastreamer2-4.4.21/CMakeLists.txt @@ -666,8 +666,12 @@ set(PACKAGE_DATA_DIR "${CMAKE_INSTALL_DATADIR}") endif() +set(libdir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}) +set(includedir ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/mediastreamer-config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/mediastreamer-config.h) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mediastreamer-config.h PROPERTIES GENERATED ON) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/mediastreamer.pc.in ${CMAKE_CURRENT_BINARY_DIR}/mediastreamer.pc) +set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/mediastreamer.pc PROPERTIES GENERATED ON) add_definitions("-DHAVE_CONFIG_H") if(ENABLE_DOC) @@ -699,6 +703,11 @@ NO_SET_AND_CHECK_MACRO ) +install(FILES + "${CMAKE_CURRENT_BINARY_DIR}/mediastreamer.pc" + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig +) + install(EXPORT ${EXPORT_TARGETS_NAME}Targets FILE Mediastreamer2Targets.cmake DESTINATION ${CONFIG_PACKAGE_LOCATION}