Sync Mk with ports
[dports.git] / x11 / kde4-runtime / files / patch-phonon_kcm_CMakeLists.txt
1 Detect libcanberra with CMake, not pkg-config.
2
3 The latter does not produce full paths for libraries, leading to build failures
4 if -L/path/to is not passed to the linker as well.
5 --- phonon/kcm/CMakeLists.txt
6 +++ phonon/kcm/CMakeLists.txt
7 @@ -11,7 +11,11 @@ set_package_properties(GLIB2 PROPERTIES DESCRIPTION "Low-level core library for
8                         TYPE OPTIONAL
9                        )
10  
11 -pkg_check_modules(CANBERRA libcanberra)
12 +find_path(CANBERRA_INCLUDE_DIRS canberra.h)
13 +find_library(CANBERRA_LIBRARIES canberra)
14 +if (CANBERRA_INCLUDE_DIRS AND CANBERRA_LIBRARIES)
15 +  set(CANBERRA_FOUND TRUE)
16 +endif ()
17  add_feature_info ("Audio setup GUI" CANBERRA_FOUND
18                    "libcanberra is needed for audio setup GUI
19                    * http://0pointer.de/lennart/projects/libcanberra"