1 |
pesa 11/12/03 19:26:49 |
2 |
|
3 |
Added: 0.8.0_automagicness.patch |
4 |
Log: |
5 |
Version bump (bug #392003) |
6 |
|
7 |
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-libs/telepathy-qt4/files/0.8.0_automagicness.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/telepathy-qt4/files/0.8.0_automagicness.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/telepathy-qt4/files/0.8.0_automagicness.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: 0.8.0_automagicness.patch |
16 |
=================================================================== |
17 |
--- telepathy-qt4-0.8.0.orig/CMakeLists.txt 2011-12-03 19:26:01.265996011 +0100 |
18 |
+++ telepathy-qt4-0.8.0/CMakeLists.txt 2011-12-03 19:54:29.233643477 +0100 |
19 |
@@ -84,6 +84,11 @@ |
20 |
|
21 |
include(MacroLogFeature) |
22 |
|
23 |
+# options |
24 |
+option(WITH_Glib "Enable building with glib features" ON) |
25 |
+option(WITH_Farsight "Enable building with farsight features" ON) |
26 |
+option(ENABLE_DEBUG_OUTPUT "Compile support for printing debug output to stderr" ON) |
27 |
+ |
28 |
# external dependencies |
29 |
|
30 |
# Required dependencies |
31 |
@@ -100,31 +105,9 @@ |
32 |
|
33 |
add_definitions(-DQT_NO_CAST_FROM_ASCII) |
34 |
|
35 |
-set(ENABLE_DEBUG_OUTPUT ON CACHE BOOL "If activated, compiles support for printing debug output to stderr") |
36 |
-if (ENABLE_DEBUG_OUTPUT) |
37 |
+if(ENABLE_DEBUG_OUTPUT) |
38 |
add_definitions(-DENABLE_DEBUG) |
39 |
-endif (ENABLE_DEBUG_OUTPUT) |
40 |
- |
41 |
-# Check for Qt4 Glib support |
42 |
-include(CheckCXXSourceCompiles) |
43 |
-set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES}) |
44 |
-set(CMAKE_REQUIRED_DEFINITIONS "") |
45 |
-set(CMAKE_REQUIRED_FLAGS "") |
46 |
- |
47 |
-CHECK_CXX_SOURCE_COMPILES(" |
48 |
-#include <QtCore/QtGlobal> |
49 |
-int main() |
50 |
-{ |
51 |
-#if defined(QT_NO_GLIB) |
52 |
-#error \"Qt was compiled with Glib disabled\" |
53 |
-#endif |
54 |
-return 0; |
55 |
-}" |
56 |
-QT4_GLIB_SUPPORT) |
57 |
-macro_log_feature(QT4_GLIB_SUPPORT "Qt4 Glib Support" |
58 |
- "QtCore library using Glib's main event loop" |
59 |
- "http://qt.nokia.com/" FALSE "" |
60 |
- "Needed, together with Telepathy-Glib, to build most of the unit tests") |
61 |
+endif(ENABLE_DEBUG_OUTPUT) |
62 |
|
63 |
# Find python version >= 2.5 |
64 |
find_package(PythonLibrary REQUIRED) |
65 |
@@ -150,58 +133,91 @@ |
66 |
|
67 |
# Find GLib2, GObject, DBus and LibXml2 |
68 |
# Those are needed for the insane include dir dependency hell |
69 |
-find_package(GLIB2) |
70 |
-find_package(GObject) |
71 |
-find_package(GIO) |
72 |
-find_package(GIOUnix) |
73 |
-find_package(DBus) |
74 |
-find_package(DBusGLib) |
75 |
-find_package(LibXml2) |
76 |
- |
77 |
-# Find tp-farsight |
78 |
-set(TELEPATHY_FARSIGHT_MIN_VERSION "0.0.4") |
79 |
-find_package(TelepathyFarsight) |
80 |
-macro_log_feature(TELEPATHYFARSIGHT_FOUND "Telepathy-Farsight" |
81 |
- "A Framework for dealing with audio/video conferencing protocols" |
82 |
- "http://farsight.freedesktop.org/wiki/" FALSE "0.0.4" |
83 |
- "Needed, together with GStreamer, to build telepathy-qt4-farsight and some additional examples") |
84 |
- |
85 |
-# Find GStreamer |
86 |
-find_package(GStreamer) |
87 |
-macro_log_feature(GSTREAMER_FOUND "GStreamer" |
88 |
- "An open source multimedia framework" |
89 |
- "Needed, together with Tp-Farsight, to build telepathy-qt4-farsight and some additional examples" |
90 |
- "http://www.gstreamer.net/" FALSE) |
91 |
- |
92 |
-# Build TelepathyQt4-Farsight only if GStreamer, TelepathyFarsight and all of their dependencies were found |
93 |
-if (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND) |
94 |
- set (FARSIGHT_COMPONENTS_FOUND 1) |
95 |
-else (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND) |
96 |
- set (FARSIGHT_COMPONENTS_FOUND 0) |
97 |
-endif (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND) |
98 |
+if(WITH_Farsight) |
99 |
+ find_package(GLIB2 REQUIRED) |
100 |
+ find_package(GObject REQUIRED) |
101 |
+ find_package(DBus REQUIRED) |
102 |
+ find_package(DBusGLib REQUIRED) |
103 |
+ find_package(LibXml2 REQUIRED) |
104 |
+ |
105 |
+ # Find tp-farsight |
106 |
+ set(TELEPATHY_FARSIGHT_MIN_VERSION "0.0.4") |
107 |
+ find_package(TelepathyFarsight REQUIRED) |
108 |
+ macro_log_feature(TELEPATHYFARSIGHT_FOUND "Telepathy-Farsight" |
109 |
+ "A Framework for dealing with audio/video conferencing protocols" |
110 |
+ "http://farsight.freedesktop.org/wiki/" FALSE "0.0.4" |
111 |
+ "Needed, together with GStreamer, to build telepathy-qt4-farsight and some additional examples") |
112 |
+ |
113 |
+ # Find GStreamer |
114 |
+ find_package(GStreamer REQUIRED) |
115 |
+ macro_log_feature(GSTREAMER_FOUND "GStreamer" |
116 |
+ "An open source multimedia framework" |
117 |
+ "Needed, together with Tp-Farsight, to build telepathy-qt4-farsight and some additional examples" |
118 |
+ "http://www.gstreamer.net/" FALSE) |
119 |
+ |
120 |
+ # Build TelepathyQt4-Farsight only if GStreamer, TelepathyFarsight and all of their dependencies were found |
121 |
+ if (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND) |
122 |
+ set (FARSIGHT_COMPONENTS_FOUND 1) |
123 |
+ else (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND) |
124 |
+ set (FARSIGHT_COMPONENTS_FOUND 0) |
125 |
+ endif (TELEPATHYFARSIGHT_FOUND AND GSTREAMER_FOUND AND GLIB2_FOUND AND GOBJECT_FOUND AND DBUS_FOUND AND LIBXML2_FOUND) |
126 |
+else(WITH_Farsight) |
127 |
+ set(FARSIGHT_COMPONENTS_FOUND 0) |
128 |
+endif(WITH_Farsight) |
129 |
|
130 |
# Find telepathy-glib |
131 |
-set(TELEPATHY_GLIB_MIN_VERSION 0.15.1) |
132 |
-find_package(TelepathyGlib) |
133 |
-macro_log_feature(TELEPATHYGLIB_FOUND "Telepathy-glib" |
134 |
- "Glib bindings for Telepathy" |
135 |
- "http://telepathy.freedesktop.org/" FALSE "0.15.1" |
136 |
- "Needed, together with Qt Glib integration, to build most of the unit tests") |
137 |
- |
138 |
-find_program(GLIB_GENMARSHAL glib-genmarshal) |
139 |
- |
140 |
-# Enable glib-based tests only if Qt4 has GLib support and Telepathy-glib was found |
141 |
-if(QT4_GLIB_SUPPORT AND TELEPATHYGLIB_FOUND AND GLIB2_FOUND AND DBUS_FOUND) |
142 |
- set(ENABLE_TP_GLIB_TESTS 1) |
143 |
- if(GIO_FOUND AND GIOUNIX_FOUND) |
144 |
- set(ENABLE_TP_GLIB_GIO_TESTS 1) |
145 |
- else(GIO_FOUND AND GIOUNIX_FOUND) |
146 |
- set(ENABLE_TP_GLIB_GIO_TESTS 0) |
147 |
- endif(GIO_FOUND AND GIOUNIX_FOUND) |
148 |
-else(QT4_GLIB_SUPPORT AND TELEPATHYGLIB_FOUND AND GLIB2_FOUND AND DBUS_FOUND) |
149 |
- set(ENABLE_TP_GLIB_TESTS 0) |
150 |
- set(ENABLE_TP_GLIB_GIO_TESTS 0) |
151 |
-endif(QT4_GLIB_SUPPORT AND TELEPATHYGLIB_FOUND AND GLIB2_FOUND AND DBUS_FOUND) |
152 |
+if(WITH_Glib) |
153 |
+ # Check for Qt4 Glib support |
154 |
+ include(CheckCXXSourceCompiles) |
155 |
+ set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES}) |
156 |
+ set(CMAKE_REQUIRED_DEFINITIONS "") |
157 |
+ set(CMAKE_REQUIRED_FLAGS "") |
158 |
+ |
159 |
+ CHECK_CXX_SOURCE_COMPILES(" |
160 |
+ #include <QtCore/QtGlobal> |
161 |
+ int main() |
162 |
+ { |
163 |
+ #if defined(QT_NO_GLIB) |
164 |
+ #error \"Qt was compiled with Glib disabled\" |
165 |
+ #endif |
166 |
+ return 0; |
167 |
+ }" |
168 |
+ QT4_GLIB_SUPPORT) |
169 |
+ macro_log_feature(QT4_GLIB_SUPPORT "Qt4 Glib Support" |
170 |
+ "QtCore library using Glib's main event loop" |
171 |
+ "http://qt.nokia.com/" FALSE "" |
172 |
+ "Needed, together with Telepathy-Glib, to build most of the unit tests") |
173 |
+ |
174 |
+ find_package(GLIB2 REQUIRED) |
175 |
+ find_package(GIO) |
176 |
+ find_package(GIOUnix) |
177 |
+ find_package(DBus REQUIRED) |
178 |
+ |
179 |
+ set(TELEPATHY_GLIB_MIN_VERSION 0.15.1) |
180 |
+ find_package(TelepathyGlib REQUIRED) |
181 |
+ macro_log_feature(TELEPATHYGLIB_FOUND "Telepathy-glib" |
182 |
+ "Glib bindings for Telepathy" |
183 |
+ "http://telepathy.freedesktop.org/" FALSE "0.15.1" |
184 |
+ "Needed, together with Qt Glib integration, to build most of the unit tests") |
185 |
+ |
186 |
+ find_program(GLIB_GENMARSHAL glib-genmarshal) |
187 |
+ # Enable glib-based tests only if Qt4 has GLib support and Telepathy-glib was found |
188 |
+ if(QT4_GLIB_SUPPORT AND TELEPATHYGLIB_FOUND AND GLIB2_FOUND AND DBUS_FOUND) |
189 |
+ set(ENABLE_TP_GLIB_TESTS 1) |
190 |
+ if(GIO_FOUND AND GIOUNIX_FOUND) |
191 |
+ set(ENABLE_TP_GLIB_GIO_TESTS 1) |
192 |
+ else(GIO_FOUND AND GIOUNIX_FOUND) |
193 |
+ set(ENABLE_TP_GLIB_GIO_TESTS 0) |
194 |
+ endif(GIO_FOUND AND GIOUNIX_FOUND) |
195 |
+ else(QT4_GLIB_SUPPORT AND TELEPATHYGLIB_FOUND AND GLIB2_FOUND AND DBUS_FOUND) |
196 |
+ set(ENABLE_TP_GLIB_TESTS 0) |
197 |
+ set(ENABLE_TP_GLIB_GIO_TESTS 0) |
198 |
+ endif(QT4_GLIB_SUPPORT AND TELEPATHYGLIB_FOUND AND GLIB2_FOUND AND DBUS_FOUND) |
199 |
+else(WITH_Glib) |
200 |
+ set(ENABLE_TP_GLIB_TESTS 0) |
201 |
+ set(ENABLE_TP_GLIB_GIO_TESTS 0) |
202 |
+endif(WITH_Glib) |
203 |
+ |
204 |
|
205 |
# Add the source subdirectories |
206 |
add_subdirectory(TelepathyQt4) |