Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/phonon-gstreamer/files: 4.5.1-fix-searching-for-phonon.patch
Date: Fri, 30 Dec 2011 11:25:19
Message-Id: 20111230112509.B5FC42004B@flycatcher.gentoo.org
1 scarabeus 11/12/30 11:25:09
2
3 Added: 4.5.1-fix-searching-for-phonon.patch
4 Log:
5 Fix linking failure with new phonon. Fixes bug #396109.
6
7 (Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 media-libs/phonon-gstreamer/files/4.5.1-fix-searching-for-phonon.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/phonon-gstreamer/files/4.5.1-fix-searching-for-phonon.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/phonon-gstreamer/files/4.5.1-fix-searching-for-phonon.patch?rev=1.1&content-type=text/plain
14
15 Index: 4.5.1-fix-searching-for-phonon.patch
16 ===================================================================
17 diff -urN phonon-backend-gstreamer-4.5.1.old/cmake/FindPhonon.cmake phonon-backend-gstreamer-4.5.1/cmake/FindPhonon.cmake
18 --- phonon-backend-gstreamer-4.5.1.old/cmake/FindPhonon.cmake 2011-05-04 06:34:52.000000000 +0200
19 +++ phonon-backend-gstreamer-4.5.1/cmake/FindPhonon.cmake 2011-12-30 12:22:03.623333200 +0100
20 @@ -1,53 +1,16 @@
21 # Find Phonon
22
23 # Copyright (c) 2010, Harald Sitter <sitter@×××.org>
24 +# Copyright (c) 2011, Alexander Neundorf <neundorf@×××.org>
25 #
26 # Redistribution and use is allowed according to the terms of the BSD license.
27 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
28
29 -if (NOT PHONON_BUILDSYSTEM_DIR)
30 - find_program(PC_EXECUTABLE NAMES pkg-config
31 - PATH_SUFFIXES bin
32 - HINTS
33 - ${CMAKE_INSTALL_PREFIX}
34 - ONLY_CMAKE_FIND_ROOT_PATH
35 - )
36 -
37 - if (NOT PC_EXECUTABLE)
38 - if (Phonon_FIND_REQUIRED)
39 - message(FATAL_ERROR "ERROR: Could not find pkg-config [required to find Phonon].")
40 - endif (Phonon_FIND_REQUIRED)
41 - endif (NOT PC_EXECUTABLE)
42 -
43 - if (PC_EXECUTABLE)
44 - execute_process(COMMAND "${PC_EXECUTABLE}" --variable=buildsystemdir phonon
45 - OUTPUT_VARIABLE _data_DIR
46 - ERROR_QUIET
47 - OUTPUT_STRIP_TRAILING_WHITESPACE)
48 - file(TO_CMAKE_PATH "${_data_DIR}" _data_DIR)
49 - find_path(PHONON_BUILDSYSTEM_DIR FindPhononInternal.cmake HINTS ${_data_DIR})
50 - endif (PC_EXECUTABLE)
51 -endif (NOT PHONON_BUILDSYSTEM_DIR)
52 -
53 -if (PHONON_BUILDSYSTEM_DIR)
54 +find_package(Phonon NO_MODULE)
55 +if(PHONON_FOUND)
56 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PHONON_BUILDSYSTEM_DIR})
57 +endif()
58
59 - if (Phonon_FIND_REQUIRED)
60 - set(_req REQUIRED)
61 - endif (Phonon_FIND_REQUIRED)
62 - if (PHONON_FIND_QUIETLY)
63 - set(_quiet QUIET)
64 - endif (PHONON_FIND_QUIETLY)
65 +include(FindPackageHandleStandardArgs)
66
67 - find_package(PhononInternal ${_req} ${_quiet})
68 -else (PHONON_BUILDSYSTEM_DIR)
69 - if (_data_DIR)
70 - if (Phonon_FIND_REQUIRED)
71 - message(FATAL_ERROR "ERROR: FindPhonon.cmake not found in ${_data_DIR}")
72 - endif (Phonon_FIND_REQUIRED)
73 - else (_data_DIR)
74 - if (Phonon_FIND_REQUIRED)
75 - message(FATAL_ERROR "ERROR: Either pkg-config can not find its phonon config, or you are not using a recent enough Phonon version.")
76 - endif (Phonon_FIND_REQUIRED)
77 - endif (_data_DIR)
78 -endif (PHONON_BUILDSYSTEM_DIR)
79 +find_package_handle_standard_args(Phonon DEFAULT_MSG Phonon_DIR )