~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.4.0-2.1

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Kees Cook
  • Date: 2011-08-11 23:17:39 UTC
  • mfrom: (20.1.1 cairo-dock-plug-ins)
  • Revision ID: kees@outflux.net-20110811231739-cteedan51tmdg77v
Tags: 2.4.0~0beta2-0ubuntu1
releasing version 2.4.0~0beta2-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
########### project ###############
11
11
 
12
12
project ("cairo-dock-plugins")
13
 
set (VERSION "2.3.0~3")
 
13
set (VERSION "2.4.0~0beta2")
14
14
 
15
15
add_definitions (-std=c99 -Wstrict-prototypes -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration) #-Wunreachable-code -Wno-unused-parameter -Wall
16
16
if (NOT ${CMAKE_BUILD_TYPE})
22
22
 
23
23
set (CPACK_SOURCE_GENERATOR "TGZ")
24
24
set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}")
25
 
set (CPACK_SOURCE_IGNORE_FILES 
 
25
set (CPACK_SOURCE_IGNORE_FILES
26
26
        "/build/;/.bzr/;bzrignore$;/misc/;~$;${CPACK_SOURCE_IGNORE_FILES}")
27
27
include (CPack)
28
28
 
29
 
add_custom_target( dist
 
29
add_custom_target(dist
30
30
        COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
31
31
add_custom_target(dist-bzr
32
32
        COMMAND bzr export ${CMAKE_PROJECT_NAME}-${VERSION}.tar.gz
48
48
 
49
49
# get plug-ins install dir
50
50
execute_process(
51
 
    COMMAND pkg-config cairo-dock --variable=pluginsdir         # /usr/lib/cairo-dock
 
51
    COMMAND pkg-config gldi --variable=pluginsdir               # /usr/lib/cairo-dock
52
52
    OUTPUT_VARIABLE pluginsdir)
53
53
STRING (REGEX REPLACE "\n" "" pluginsdir ${pluginsdir})  # la commande rajoute un retour chariot ...
54
54
# get plug-ins data dir
55
55
execute_process(
56
 
    COMMAND pkg-config cairo-dock --variable=pluginsdatadir     # /usr/share/cairo-dock/plug-ins
 
56
    COMMAND pkg-config gldi --variable=pluginsdatadir   # /usr/share/cairo-dock/plug-ins
57
57
    OUTPUT_VARIABLE pluginsdatadir)
58
58
STRING (REGEX REPLACE "\n" "" pluginsdatadir ${pluginsdatadir})
59
59
# check that version matches with the core
60
60
execute_process(
61
 
    COMMAND pkg-config --modversion cairo-dock                  # 2.2.0-3
 
61
    COMMAND pkg-config --modversion gldi                        # 2.2.0-3
62
62
    OUTPUT_VARIABLE dock_version)
63
63
STRING (REGEX REPLACE "\n" "" dock_version ${dock_version})
64
64
if (NOT "${dock_version}" STREQUAL "${VERSION}")                # Version
65
 
        MESSAGE (FATAL_ERROR "warning : version mismatch with the core : " ${VERSION} <> ${dock_version})
 
65
        if ("${PACKAGEMENT}" STREQUAL "")
 
66
                MESSAGE (FATAL_ERROR "Error : version mismatch with the core : " ${VERSION} <> ${dock_version})
 
67
        else ()
 
68
                MESSAGE (WARNING "Warning : version mismatch with the core : " ${VERSION} <> ${dock_version})
 
69
        endif ()
66
70
endif()
67
71
 
68
72
#if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT "${FORCE_LIB64}" STREQUAL "")  # 64bits and force install in lib64
76
80
GET_FILENAME_COMPONENT(libdir "${pluginsdir}/.." ABSOLUTE)  # /usr/lib
77
81
GET_FILENAME_COMPONENT(prefix "${pluginsdir}/../.." ABSOLUTE)  # /usr
78
82
if (NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${prefix}")
79
 
        message (STATUS "Warning : plug-ins should be installed in the same directory as the core, that is to say in ${pluginsdir}")
 
83
        message (STATUS "It seems that the current CMAKE_INSTALL_PREFIX flag is not the same that you have used with the core.")
 
84
        message (STATUS " It will be replaced by this value: ${prefix}")
 
85
        message (WARNING "Plug-ins should be installed in the same directory as the core, that is to say in ${pluginsdir}")
80
86
        set (CMAKE_INSTALL_PREFIX "${prefix}")
81
87
        #set (libdir "${CMAKE_INSTALL_PREFIX}/${libname}/cairo-dock")
82
88
endif()
88
94
 
89
95
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")  # additionnal FindPackage files
90
96
 
 
97
set (MODULES_MISSING "")
 
98
set (MODULES_INTEGRATION_MISSING "")
 
99
set (PROGRAMS_MISSING "")
 
100
 
91
101
########### dependancies ###############
92
102
 
93
103
message ("")
96
106
message (STATUS "=====================")
97
107
message ("")
98
108
 
99
 
pkg_check_modules ("PACKAGE" REQUIRED "gtk+-2.0" "gthread-2.0" "cairo" "librsvg-2.0" "dbus-1" "dbus-glib-1" "libxml-2.0" "gtkglext-1.0" "cairo-dock")
 
109
pkg_check_modules ("PACKAGE" REQUIRED "gtk+-2.0" "gthread-2.0" "cairo" "librsvg-2.0" "dbus-1" "dbus-glib-1" "libxml-2.0" "gtkglext-1.0")
 
110
pkg_check_modules ("GLDI" REQUIRED "gldi")  # we don't want to link with gldi
 
111
set (PACKAGE_INCLUDE_DIRS "${GLDI_INCLUDE_DIRS}")
 
112
#message (STATUS "PACKAGE: ${PACKAGE_INCLUDE_DIRS}")
100
113
 
101
114
#############    GLIB    #################
102
115
pkg_check_modules (GLIB glib-2.0)
107
120
        STRING (REGEX REPLACE "-.*" "" GLIB_NANO "${GLIB_NANO}")
108
121
 
109
122
############# ALSA_MIXER #################
 
123
message (STATUS "> AlsaMixer:")
110
124
set (with_alsa "no")
111
125
if (NOT "${enable-alsa-mixer}" STREQUAL "no")
112
126
        pkg_check_modules (ALSA_MIXER_PACKAGE alsa)
113
127
        if ("${ALSA_MIXER_PACKAGE_FOUND}" STREQUAL "")
114
128
                message (STATUS "Could not find alsa; Cairo-Dock won't be built with AlsaMixer applet.")
 
129
                message (WARNING "This module is required to compile AlsaMixer applet: alsa")
 
130
                set (MODULES_MISSING "${MODULES_MISSING} alsa")
115
131
        else()
116
132
                set (GETTEXT_ALSA_MIXER ${GETTEXT_PLUGINS})
117
 
                set (VERSION_ALSA_MIXER "1.0.12")
 
133
                set (VERSION_ALSA_MIXER "1.0.13")
118
134
                set (PACKAGE_ALSA_MIXER "cd-AlsaMixer")
119
135
                set (with_alsa "yes")
120
136
                set (alsa_mixerdatadir "${pluginsdatadir}/AlsaMixer")
124
140
endif()
125
141
 
126
142
############# ANIMATED ICONS #################
 
143
message (STATUS "> Animated Icons:")
127
144
set (GETTEXT_ANIMATED_ICONS ${GETTEXT_PLUGINS})
128
145
set (VERSION_ANIMATED_ICONS "1.0.10")
129
146
set (PACKAGE_ANIMATED_ICONS "cd-Animated-icons")
132
149
add_subdirectory (Animated-icons)
133
150
 
134
151
############# CAIRO_PENGUIN #################
 
152
message (STATUS "> Cairo Penguin:")
135
153
set (GETTEXT_CAIRO_PENGUIN ${GETTEXT_PLUGINS})
136
 
set (VERSION_CAIRO_PENGUIN "1.1.8")
 
154
set (VERSION_CAIRO_PENGUIN "1.1.9")
137
155
set (PACKAGE_CAIRO_PENGUIN "cd-Cairo-Penguin")
138
156
set (cairo_penguinuserdirname "Cairo-Penguin")
139
157
set (cairo_penguindatadir "${pluginsdatadir}/Cairo-Penguin")
141
159
add_subdirectory (Cairo-Penguin)
142
160
 
143
161
############# CLIPPER #################
 
162
message (STATUS "> Clipper:")
144
163
set (GETTEXT_CLIPPER ${GETTEXT_PLUGINS})
145
 
set (VERSION_CLIPPER "1.1.4")
 
164
set (VERSION_CLIPPER "1.1.5")
146
165
set (PACKAGE_CLIPPER "cd-Clipper")
147
166
set (Clipperdatadir "${pluginsdatadir}/Clipper")
148
167
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Clipper/data/Clipper.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Clipper/data/Clipper.conf)
149
168
add_subdirectory (Clipper)
150
169
 
151
170
############# CLOCK #################
 
171
message (STATUS "> Clock:")
152
172
set (with_ical "yes")
153
173
pkg_check_modules ("LIBICAL_PACKAGE" "libical")
154
174
if ("${LIBICAL_PACKAGE_FOUND}" STREQUAL "")
155
175
        set (with_ical "no")
156
176
        message (STATUS "Could not find libical; Clock plugin won't be built with iCal support.")
 
177
        message (WARNING "This module is required to compile Clock applet with iCal support: libical")
 
178
        set (MODULES_MISSING "${MODULES_MISSING} libical")
157
179
endif()
158
180
set (GETTEXT_CLOCK ${GETTEXT_PLUGINS})
159
 
set (VERSION_CLOCK "2.1.2")
 
181
set (VERSION_CLOCK "2.1.3")
160
182
set (PACKAGE_CLOCK "cd-clock")
161
183
set (clockuserdirname "clock")
162
184
set (clockdatadir "${pluginsdatadir}/clock")
163
185
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/clock/data/clock.conf.in ${CMAKE_CURRENT_BINARY_DIR}/clock/data/clock.conf)
164
186
add_subdirectory (clock)
165
187
 
166
 
############# COMPIZ_ICON #################
167
 
set (GETTEXT_COMPIZ_ICON ${GETTEXT_PLUGINS})
168
 
set (VERSION_COMPIZ_ICON "1.1.6")
169
 
set (PACKAGE_COMPIZ_ICON "cd-compiz-icon")
170
 
set (compiz_icondatadir "${pluginsdatadir}/compiz-icon")
171
 
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/compiz-icon/data/compiz-icon.conf.in ${CMAKE_CURRENT_BINARY_DIR}/compiz-icon/data/compiz-icon.conf)
172
 
add_subdirectory (compiz-icon)
 
188
############# COMPOSITE_MANAGER #################
 
189
message (STATUS "> Coposite Manager:")
 
190
set (GETTEXT_COMPOSITE_MANAGER ${GETTEXT_PLUGINS})
 
191
set (VERSION_COMPOSITE_MANAGER "1.0.0")
 
192
set (PACKAGE_COMPOSITE_MANAGER "cd-Composite-Manager")
 
193
set (composite_managerdatadir "${pluginsdatadir}/Composite-Manager")
 
194
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Composite-Manager/data/Composite-Manager.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Composite-Manager/data/Composite-Manager.conf)
 
195
add_subdirectory (Composite-Manager)
173
196
 
174
197
############# DBUS #################
 
198
message (STATUS "> DBus:")
 
199
message (STATUS "* Python:")
175
200
find_program (PYTHON_EXECUTABLE python)
176
201
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; print sys.version" OUTPUT_VARIABLE PYTHON_VERSION)
177
 
if ("${PYTHON_VERSION}" STREQUAL "") 
178
 
        message (STATUS "Could not find Python, won't install Python interface.") 
179
 
        set (with_python "no") 
180
 
else() 
 
202
if ("${PYTHON_VERSION}" STREQUAL "")
 
203
        message (STATUS "Could not find Python, won't install Python interface.")
 
204
        message (WARNING "This program is required to compile DBus applet with Python interface: python (version 2)")
 
205
        set (PROGRAMS_MISSING "${PROGRAMS_MISSING} python")
 
206
        set (with_python "no")
 
207
else()
181
208
        STRING (REGEX REPLACE "\n" "" PYTHON_VERSION ${PYTHON_VERSION})
182
 
        message (STATUS "Python Version: ${PYTHON_VERSION}") 
183
 
        GET_FILENAME_COMPONENT(DEBIAN_VERSION /etc/debian_version ABSOLUTE) 
184
 
        if (EXISTS ${DEBIAN_VERSION}) 
185
 
                message (STATUS "  will use '--install-layout deb' with 'python setup.py install'") 
 
209
        message (STATUS "Python Version: ${PYTHON_VERSION}")
 
210
        GET_FILENAME_COMPONENT(DEBIAN_VERSION /etc/debian_version ABSOLUTE)
 
211
        if (EXISTS ${DEBIAN_VERSION})
 
212
                message (STATUS "  will use '--install-layout deb' with 'python setup.py install'")
186
213
                set (DEBIAN_INSTALL_LAYOUT "--install-layout deb")
187
214
        endif()
188
215
        set (PYTHON_FOUND "TRUE")
189
 
        set (with_python "yes") 
 
216
        set (with_python "yes")
190
217
endif()
191
218
 
 
219
message (STATUS "* Ruby:")
192
220
# find_package(Ruby) found libs of ruby-dev but we only need a directory where we can install ruby libs.
193
221
find_program (RUBY_EXECUTABLE ruby)
194
222
EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['rubylibdir']"
196
224
message (STATUS "RUBY_LIBRARY: ${RUBY_LIB_DIR}")
197
225
if ("${RUBY_LIB_DIR}" STREQUAL "" OR "${RUBY_LIB_DIR}" STREQUAL "nil")
198
226
        message (STATUS "Could not find ruby libs, won't install Ruby interface.")
 
227
        message (WARNING "This program is required to compile DBus applet with Ruby interface: ruby")
 
228
        set (PROGRAMS_MISSING "${PROGRAMS_MISSING} ruby")
199
229
        set (with_ruby "no")
200
230
else()
201
231
        string (REGEX REPLACE "lib/ruby/[0-9].[0-9]" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")
206
236
        set (with_ruby "yes")
207
237
endif()
208
238
 
 
239
message (STATUS "* Mono:")
209
240
#find_package (Mono)
210
241
find_program (GMCS_EXECUTABLE gmcs)
211
242
if ("${GMCS_EXECUTABLE}" STREQUAL "" OR NOT EXISTS ${GMCS_EXECUTABLE})
215
246
        pkg_check_modules (MONO_PACKAGE glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0)
216
247
        if ("${MONO_PACKAGE_FOUND}" STREQUAL "")
217
248
                message (STATUS "Could not find glib-sharp-2.0, ndesk-dbus-1.0 or ndesk-dbus-glib-1.0; won't be built Mono interface.")
 
249
                message (WARNING "These modules are required to compile DBus applet with Mono interface: glib-sharp-2.0, ndesk-dbus-1.0 and ndesk-dbus-glib-1.0")
 
250
                set (MODULES_MISSING "${MODULES_MISSING} glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0")
218
251
                set (with_mono "no")
219
252
        else()
220
253
                set (MONO_FOUND "TRUE")
222
255
        endif()
223
256
endif()
224
257
 
 
258
message (STATUS "* Vala:")
225
259
# Valac is only riquired to convert vala files to C files.
226
260
#  So we can directly use produced files (c, h, vapi) without using valac.
227
261
set (with_vala "yes")
243
277
 
244
278
        STRING (REGEX REPLACE "\\..*" "" VALA_MAJOR "${VALA_VERSION}")
245
279
        # message (STATUS "VALA_MAJOR : ${VALA_MAJOR}")
246
 
        
 
280
 
247
281
        STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" VALA_MINOR "${VALA_VERSION}")  # 0.1.7 => 1.7
248
282
        STRING (REGEX REPLACE "\\.[0-9]*" "" VALA_MINOR "${VALA_MINOR}")
249
283
        # message (STATUS "VALA_MINOR : ${VALA_MINOR}")
252
286
        STRING (REGEX REPLACE "-.*" "" VALA_NANO "${VALA_NANO}")
253
287
        # message (STATUS "VALA_NANO  : ${VALA_NANO}")
254
288
 
255
 
        if (${VALA_MAJOR} GREATER 0 OR ${VALA_MINOR} GREATER 9)  # vala > 0.10
256
 
                message (STATUS " Vala compiler OK (>= 0.10).")
 
289
        if (${VALA_MAJOR} GREATER 0 OR ${VALA_MINOR} GREATER 9) # vala >= 0.10 
 
290
                # AND (${VALA_MAJOR} LESS 1 AND ${VALA_MINOR} LESS 13)) # and <= 0.12
 
291
                message (STATUS " Vala compiler OK (>= 0.10).")# and <= 0.12).")
257
292
                set (VALAC_FOUND "TRUE")
258
293
                set (with_valac "yes")
259
294
        else()
260
 
                message (STATUS "Vala compiler is too old (0.10 required), won't build Vala interface.")
 
295
                message (STATUS "Vala compiler is too old (0.10 required) or too new (> 0.12), won't build Vala interface.")
261
296
        endif()
 
297
else()
 
298
        message (STATUS "Could not find ValaC, won't build Vala interface with the version of your distribution.")
 
299
        message (WARNING "This program is required to compile DBus applet with Python interface: valac (version > 0.10)")
 
300
        set (PROGRAMS_MISSING "${PROGRAMS_MISSING} valac")
262
301
endif()
263
302
 
264
303
 
270
309
add_subdirectory (Dbus)
271
310
 
272
311
############# DESKLET_RENDERING #################
 
312
message (STATUS "> Desklet Rendering:")
273
313
set (GETTEXT_DESKLET_RENDERING ${GETTEXT_PLUGINS})
274
314
set (VERSION_DESKLET_RENDERING "1.5.6")
275
315
set (PACKAGE_DESKLET_RENDERING "cd-desklet-rendering")
278
318
add_subdirectory (desklet-rendering)
279
319
 
280
320
############# DIALOG_RENDERING #################
 
321
message (STATUS "> Dialog Rendering:")
281
322
set (GETTEXT_DIALOG_RENDERING ${GETTEXT_PLUGINS})
282
323
set (VERSION_DIALOG_RENDERING "0.5.1")
283
324
set (PACKAGE_DIALOG_RENDERING "cd-dialog-rendering")
288
329
############# DISKS #################
289
330
set (with_disks "no")
290
331
if ("${enable-disks}" STREQUAL "yes")
 
332
        message (STATUS "> Disks:")
291
333
        set (GETTEXT_DISKS ${GETTEXT_PLUGINS})
292
 
        set (VERSION_DISKS "0.0.2")
 
334
        set (VERSION_DISKS "0.0.3")
293
335
        set (PACKAGE_DISKS "cd-disks")
294
336
        set (with_disks "yes")
295
337
        set (disksdatadir "${pluginsdatadir}/Disks")
298
340
endif()
299
341
 
300
342
############# DND2SHARE #################
 
343
message (STATUS "> DND2Share:")
301
344
set (GETTEXT_DND2SHARE ${GETTEXT_PLUGINS})
302
345
set (VERSION_DND2SHARE "1.0.6")
303
346
set (PACKAGE_DND2SHARE "cd-dnd2share")
306
349
add_subdirectory (dnd2share)
307
350
 
308
351
############# DOCK RENDERING #################
 
352
message (STATUS "> Dock Rendering:")
309
353
set (GETTEXT_RENDERING ${GETTEXT_PLUGINS})
310
354
set (VERSION_RENDERING "1.5.9")
311
355
set (PACKAGE_RENDERING "cd-rendering")
316
360
############# DONCKY #################
317
361
set (with_doncky "no")
318
362
if ("${enable-doncky}" STREQUAL "yes")
 
363
        message (STATUS "> Doncky:")
319
364
        set (GETTEXT_DONCKY ${GETTEXT_PLUGINS})
320
 
        set (VERSION_DONCKY "0.0.4")
 
365
        set (VERSION_DONCKY "0.0.5")
321
366
        set (PACKAGE_DONCKY "cd-doncky")
322
367
        set (with_doncky "yes")
323
368
        set (donckydatadir "${pluginsdatadir}/Doncky")
326
371
endif()
327
372
 
328
373
############# DROP INDICATOR #################
 
374
message (STATUS "> Drop Indicator:")
329
375
set (GETTEXT_DROP_INDICATOR ${GETTEXT_PLUGINS})
330
376
set (VERSION_DROP_INDICATOR "1.1.4")
331
377
set (PACKAGE_DROP_INDICATOR "cd-drop_indicator")
334
380
add_subdirectory (drop-indicator)
335
381
 
336
382
############# DUSTBIN #################
 
383
message (STATUS "> Dustbin:")
337
384
set (GETTEXT_DUSTBIN ${GETTEXT_PLUGINS})
338
 
set (VERSION_DUSTBIN "2.3.1")
 
385
set (VERSION_DUSTBIN "2.3.2")
339
386
set (PACKAGE_DUSTBIN "cd-dustbin")
340
387
set (dustbinuserdirname "dustbin")
341
388
set (dustbindatadir "${pluginsdatadir}/dustbin")
343
390
add_subdirectory (dustbin)
344
391
 
345
392
############# FOLDERS #################
 
393
message (STATUS "> Folders:")
346
394
set (GETTEXT_FOLDERS ${GETTEXT_PLUGINS})
347
 
set (VERSION_FOLDERS "0.2.1")
 
395
set (VERSION_FOLDERS "0.2.2")
348
396
set (PACKAGE_FOLDERS "cd-Folders")
349
397
set (foldersdatadir "${pluginsdatadir}/Folders")
350
398
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Folders/data/Folders.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Folders/data/Folders.conf)
351
399
add_subdirectory (Folders)
352
400
 
353
401
############# GMENU #################
 
402
message (STATUS "> GMenu:")
354
403
set (with_gmenu "no")
355
404
if (NOT "${enable-gmenu}" STREQUAL "no")
356
405
        pkg_check_modules (GMENU_PACKAGE libgnome-menu)
357
406
        if ("${GMENU_PACKAGE_FOUND}" STREQUAL "")
358
407
                message (STATUS "Could not find libgnome-menu; Cairo-Dock won't be built with GMenu applet.")
 
408
                message (WARNING "This module is required to compile GMenu applet: libgnome-menu")
 
409
                set (MODULES_MISSING "${MODULES_MISSING} libgnome-menu")
359
410
        else()
360
411
                set (GETTEXT_GMENU ${GETTEXT_PLUGINS})
361
 
                set (VERSION_GMENU "1.1.6")
 
412
                set (VERSION_GMENU "1.1.8")
362
413
                set (PACKAGE_GMENU "cd-GMenu")
363
414
                set (with_gmenu "yes")
364
415
                set (gmenudatadir "${pluginsdatadir}/GMenu")
368
419
endif()
369
420
 
370
421
############# GVFS-INTEGRATION #################
 
422
message (STATUS "> GVFS-Integration:")
371
423
pkg_check_modules ("LIBGIO" "gio-2.0")
372
424
add_subdirectory (gvfs-integration)
373
425
 
374
426
############# GNOME-INTEGRATION #################
 
427
message (STATUS "> Gnome-Integration:")
375
428
set (with_gnome_integration "no")
376
429
if (NOT "${enable-gnome-integration}" STREQUAL "no")
377
430
        pkg_check_modules (GNOME_INTEGRATION gio-2.0)
378
431
        if ("${GNOME_INTEGRATION_FOUND}" STREQUAL "")
379
432
                message (STATUS "Could not find gio; Cairo-Dock won't be built with Gnome>=2.22 support.")
 
433
                message (STATUS "This module is required to compile Gnome-Integration applet: gio-2.0")
 
434
                set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} gio-2.0")
380
435
        else()
381
436
                set (VERSION_GNOME_INTEGRATION "1.0.3")
382
437
                set (PACKAGE_GNOME_INTEGRATION "cd_gnome-integration")
389
444
############# GNOME-INTEGRATION-OLD #################
390
445
set (with_gnome_integration_old "no")
391
446
if ("${enable-old-gnome-integration}" STREQUAL "yes")
 
447
        message (STATUS "> Gnome-Integration:")
 
448
        message (WARNING "This applet is deprecated")
392
449
        pkg_check_modules (OLD_GNOME_INTEGRATION gnome-vfs-2.0 libgnomeui-2.0)
393
450
        if ("${OLD_GNOME_INTEGRATION_FOUND}" STREQUAL "")
394
451
                message (STATUS "Could not find gnome-vfs and/or gnomeui; Cairo-Dock won't be built with Gnome<2.22 support.")
 
452
                message (STATUS "These modules are required to compile Gnome-Integration-Old applet: gnome-vfs-2.0 libgnomeui-2.0")
 
453
                set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} gnome-vfs-2.0 libgnomeui-2.0")
395
454
        else()
396
455
                set (VERSION_GNOME_INTEGRATION_OLD "1.0.4")
397
456
                set (PACKAGE_GNOME_INTEGRATION_OLD "cd_gnome-integration-old")
401
460
        endif()
402
461
endif()
403
462
 
404
 
############# ICON EFFECT #################
 
463
############# ICON EFFECTS #################
 
464
message (STATUS "> Icon Effects:")
405
465
set (GETTEXT_ICON_EFFECTS ${GETTEXT_PLUGINS})
406
466
set (VERSION_ICON_EFFECTS "1.2.4")
407
467
set (PACKAGE_ICON_EFFECTS "cd-icon-effect")
409
469
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/icon-effect/data/icon-effect.conf.in ${CMAKE_CURRENT_BINARY_DIR}/icon-effect/data/icon-effect.conf)
410
470
add_subdirectory (icon-effect)
411
471
 
 
472
############# IMPULSE #################
 
473
set (with_impulse "no")
 
474
if ("${enable-impulse}" STREQUAL "yes")
 
475
        message (STATUS "> Impulse:")
 
476
        pkg_check_modules (IMPULSE_PACKAGES libpulse fftw3)
 
477
        if ("${IMPULSE_PACKAGES_FOUND}" STREQUAL "")
 
478
                message (STATUS "Could not find libpulse; Cairo-Dock won't be built with Impulse applet.")
 
479
                message (WARNING "These modules are required to compile Impulse applet: libpulse fftw3")
 
480
                set (MODULES_MISSING "${MODULES_MISSING} libpulse fftw3")
 
481
        else()
 
482
                set (GETTEXT_IMPULSE ${GETTEXT_PLUGINS})
 
483
                set (VERSION_IMPULSE "0.0.3")
 
484
                set (PACKAGE_IMPULSE "cd-Impulse")
 
485
                set (with_impulse "yes")
 
486
                set (impulsedatadir "${pluginsdatadir}/Impulse")
 
487
                configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Impulse/data/Impulse.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Impulse/data/Impulse.conf)
 
488
                add_subdirectory (Impulse)
 
489
        endif()
 
490
endif()
 
491
 
412
492
############# INDICATOR-APPLET #################
413
 
# Note: the names of dbusmenu-glib and dbusmenu-gtk have changed...
 
493
message (STATUS "> Indicator-Applet:")
 
494
# Note: the names of dbusmenu-glib, dbusmenu-gtk and indicator have changed...
414
495
pkg_check_modules (DBUSMENU_04 QUIET dbusmenu-glib-0.4)
415
496
pkg_check_modules (DBUSMENU_GTK_04 QUIET dbusmenu-gtk-0.4)
416
 
pkg_check_modules (INDICATOR_APPLET indicator libido-0.1)
 
497
pkg_check_modules (INDICATOR_04 QUIET indicator-0.4)
417
498
if ("${DBUSMENU_04_FOUND}" STREQUAL "1")
418
499
        pkg_check_modules (DBUSMENU dbusmenu-glib-0.4)
419
500
else()
424
505
else()
425
506
        pkg_check_modules (DBUSMENU_GTK dbusmenu-gtk)
426
507
endif()
 
508
if ("${INDICATOR_04_FOUND}" STREQUAL "1")
 
509
        pkg_check_modules (INDICATOR_APPLET indicator-0.4 libido-0.1)
 
510
else()
 
511
        pkg_check_modules (INDICATOR_APPLET indicator libido-0.1)
 
512
endif()
 
513
 
427
514
if ("${INDICATOR_APPLET_FOUND}" STREQUAL "1" AND "${DBUSMENU_FOUND}" STREQUAL "1" AND "${DBUSMENU_GTK_FOUND}" STREQUAL "1")
428
 
        message (STATUS "DBUSMENU_VERSION : ${DBUSMENU_VERSION}")
429
 
        
 
515
        #message (STATUS "DBUSMENU_VERSION : ${DBUSMENU_VERSION}")
 
516
 
430
517
        STRING (REGEX REPLACE "\\..*" "" DBUSMENU_MAJOR "${DBUSMENU_VERSION}")
431
518
        # message (STATUS "DBUSMENU_MAJOR : ${DBUSMENU_MAJOR}")
432
 
        
 
519
 
433
520
        STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" DBUSMENU_MINOR "${DBUSMENU_VERSION}")  # 0.1.7 => 1.7
434
521
        STRING (REGEX REPLACE "\\.[0-9]*" "" DBUSMENU_MINOR "${DBUSMENU_MINOR}")
435
522
        # message (STATUS "DBUSMENU_MINOR : ${DBUSMENU_MINOR}")
436
 
        
 
523
 
437
524
        STRING (REGEX REPLACE ".*\\." "" DBUSMENU_NANO "${DBUSMENU_VERSION}")
438
525
        STRING (REGEX REPLACE "-.*" "" DBUSMENU_NANO "${DBUSMENU_NANO}")
439
526
        # message (STATUS "DBUSMENU_NANO  : ${DBUSMENU_NANO}")
440
 
        
441
 
        execute_process(
442
 
                COMMAND pkg-config --variable=iconsdir indicator
443
 
                OUTPUT_VARIABLE INDICATORICONSDIR)
 
527
 
 
528
        if ("${INDICATOR_04_FOUND}" STREQUAL "1")
 
529
                execute_process(
 
530
                        COMMAND pkg-config --variable=iconsdir indicator-0.4
 
531
                        OUTPUT_VARIABLE INDICATORICONSDIR)
 
532
        else()
 
533
                execute_process(
 
534
                        COMMAND pkg-config --variable=iconsdir indicator
 
535
                        OUTPUT_VARIABLE INDICATORICONSDIR)
 
536
        endif()
444
537
        STRING (REGEX REPLACE "\n" "" INDICATORICONSDIR ${INDICATORICONSDIR})  # la commande rajoute un retour chariot ...
445
538
        add_subdirectory (Indicator-applet)
446
539
        set (with_indicator "yes")
 
540
else()
 
541
        message (WARNING "These modules are required to compile Indicators applet (MeMenu and Messaging-Menu): indicator(-0.4), libido-0.1, dbusmenu-glib(-0.4), dbusmenu-gtk(-0.4)")
 
542
        set (MODULES_MISSING "${MODULES_MISSING} indicator(-0.4) libido-0.1 dbusmenu-glib(-0.4) dbusmenu-gtk(-0.4)")
447
543
endif()
448
544
 
449
545
############# ILLUSION #################
 
546
message (STATUS "> Illusion:")
450
547
set (GETTEXT_ILLUSION ${GETTEXT_PLUGINS})
451
548
set (VERSION_ILLUSION "1.0.7")
452
549
set (PACKAGE_ILLUSION "cd-illusion")
455
552
add_subdirectory (illusion)
456
553
 
457
554
############# KDE-INTEGRATION #################
 
555
message (STATUS "> KDE-Integration:")
458
556
set (with_kde_integration "no")
459
 
if (NOT "${enable-kde-integration}" STREQUAL "no")
 
557
set (with_kde_integration2 "no")
 
558
if ("${enable-kde-integration2}" STREQUAL "yes")
 
559
        #find_package(KDE4)
 
560
        find_package(Qt4)
 
561
        if (QT4_FOUND)
 
562
                message (STATUS " * Qt Includes: ${QT_INCLUDES}")
 
563
                message (STATUS " * Qt Definitions: ${QT_DEFINITIONS}")
 
564
                message (STATUS " * QtCore Library: ${QT_QTCORE_LIBRARY} / ${PACKAGE_LIBRARIES}")
 
565
        else()
 
566
                message (STATUS " * Qt unavailable")
 
567
        endif()
 
568
 
 
569
        find_path(KDECORE_INCLUDE_DIR "kdecore_export.h")
 
570
        find_library(KDECORE_LIBRARY NAMES "kdecore")
 
571
        GET_FILENAME_COMPONENT(KDECORE_LIBRARY ${KDECORE_LIBRARY} PATH)
 
572
 
 
573
        find_path(KIO_INCLUDE_DIR "kio_export.h" PATH_SUFFIXES "kio")
 
574
        find_library(KIO_LIBRARY NAMES "kio")
 
575
        GET_FILENAME_COMPONENT(KIO_LIBRARY ${KIO_LIBRARY} PATH)
 
576
 
 
577
        find_path(KDE_INCLUDE_DIR "KDirWatch" PATH_SUFFIXES "KDE")
 
578
 
 
579
        if (NOT "${KDECORE_LIBRARY}" STREQUAL "")
 
580
                message (STATUS " * KDECORE Dir: ${KDECORE_INCLUDE_DIR}")
 
581
                message (STATUS " * KDECORE Library: ${KDECORE_LIBRARY}")
 
582
        else()
 
583
                message (STATUS " * KDECORE unavailable")
 
584
        endif()
 
585
        if (NOT "${KIO_LIBRARY}" STREQUAL "")
 
586
                message (STATUS " * KIO Dir: ${KIO_INCLUDE_DIR}")
 
587
                message (STATUS " * KIO Library: ${KIO_LIBRARY}")
 
588
        else()
 
589
                message (STATUS " * KIO unavailable")
 
590
        endif()
 
591
        if (NOT "${KDE_LIBRARY}" STREQUAL "") ## always empty?
 
592
                message (STATUS " * KDE4 Dir: ${KDE_INCLUDE_DIR}")
 
593
                message (STATUS " * KDE4 Library: ${KDE_LIBRARY}")
 
594
        else()
 
595
                message (STATUS " * KDE4 unavailable")
 
596
        endif()
 
597
 
 
598
        if (QT4_FOUND
 
599
                 AND KDECORE_INCLUDE_DIR
 
600
                 AND KDECORE_LIBRARY
 
601
                 AND KIO_INCLUDE_DIR
 
602
                 AND KIO_LIBRARY
 
603
                 AND KDE_INCLUDE_DIR)
 
604
                message (STATUS "KDE: OK")
 
605
                set (VERSION_KDE_INTEGRATION "0.0.3")
 
606
                set (PACKAGE_KDE_INTEGRATION "cd_kde-integration")
 
607
                set (with_kde_integration2 "yes")
 
608
                set (kde_integrationdatadir "${pluginsdatadir}/kde-integration2")
 
609
                add_subdirectory ("kde-integration2")
 
610
        else()
 
611
                message (STATUS "Could not find kde libs; Cairo-Dock won't be built with KDE support.")
 
612
                message (STATUS "These libraries are required to compile KDE experimental applet: kdecore, kio, kde4")
 
613
                set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} kdecore, kio, kde4")
 
614
        endif()
 
615
elseif (NOT "${enable-kde-integration}" STREQUAL "no")
460
616
        pkg_check_modules (KDE_INTEGRATION gio-2.0)
461
 
        if ("${KDE_INTEGRATION_FOUND}" STREQUAL "")
462
 
                message (STATUS "Could not find kde libs; Cairo-Dock won't be built with KDE support.")
 
617
        message (STATUS "KDE_INTEGRATION_FOUND: ${KDE_INTEGRATION_FOUND}")
 
618
        if (NOT KDE_INTEGRATION_FOUND)
 
619
                message (STATUS "Could not find gio; Cairo-Dock won't be built with KDE support.")
 
620
                message (STATUS "This module is required to compile KDE-Integration applet: gio-2.0")
 
621
                set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} gio-2.0")
463
622
        else()
464
 
                set (VERSION_KDE_INTEGRATION "0.0.2")
 
623
                set (VERSION_KDE_INTEGRATION "1.0.3")
465
624
                set (PACKAGE_KDE_INTEGRATION "cd_kde-integration")
466
625
                set (with_kde_integration "yes")
467
626
                set (kde_integrationdatadir "${pluginsdatadir}/kde-integration")
470
629
endif()
471
630
 
472
631
############# KEYBOARD_INDICATOR #################
 
632
message (STATUS "> Keyboard-Indicator:")
473
633
set (with_keyboard_indicator "no")
474
634
pkg_check_modules (KEYBOARD_INDICATOR_PACKAGE libxklavier)
475
635
if ("${KEYBOARD_INDICATOR_PACKAGE_FOUND}" STREQUAL "")
476
636
        message (STATUS "Could not find libxklavier; Cairo-Dock won't be built with keyboard-indicator applet.")
 
637
        message (WARNING "This module is required to compile Keyboard-Indicator applet: libxklavier")
 
638
        set (MODULES_MISSING "${MODULES_MISSING} libxklavier")
477
639
else()
478
640
        set (GETTEXT_KEYBOARD_INDICATOR ${GETTEXT_PLUGINS})
479
 
        set (VERSION_KEYBOARD_INDICATOR "1.1.3")
 
641
        set (VERSION_KEYBOARD_INDICATOR "1.1.4")
480
642
        set (PACKAGE_KEYBOARD_INDICATOR "cd-keyboard-indicator")
481
643
        set (with_keyboard_indicator "yes")
482
644
        set (keyboard_indicatordatadir "${pluginsdatadir}/keyboard-indicator")
485
647
endif()
486
648
 
487
649
############# LOGOUT #################
 
650
message (STATUS "> LogOut:")
 
651
pkg_check_modules (UPOWER upower-glib)  # useful for Powermanager too.
 
652
if (${UPOWER_FOUND})
 
653
        set (with_upower_support "yes")
 
654
else()
 
655
        set (with_upower_support "no")
 
656
        message (STATUS "Could not find upower-glib; LogOut and PowerManager plugin won't be built with UPower support.")
 
657
        message (WARNING "This module is required to compile LogOut and PowerManager applet with UPower support: upower-glib")
 
658
        set (MODULES_MISSING "${MODULES_MISSING} upower-glib")
 
659
endif()
488
660
set (GETTEXT_LOGOUT ${GETTEXT_PLUGINS})
489
 
set (VERSION_LOGOUT "1.2.10")
 
661
set (VERSION_LOGOUT "1.2.11")
490
662
set (PACKAGE_LOGOUT "cd-logout")
491
663
set (logoutdatadir "${pluginsdatadir}/logout")
492
664
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/logout/data/logout.conf.in ${CMAKE_CURRENT_BINARY_DIR}/logout/data/logout.conf)
493
665
add_subdirectory (logout)
494
666
 
495
667
############# MAIL #################
 
668
message (STATUS "> Mail:")
496
669
set (with_mail "no")
497
670
# find the compilation flags
 
671
find_program (LIBETPAN_CONFIG_EXECUTABLE libetpan-config)
498
672
execute_process(
499
 
        COMMAND libetpan-config --cflags
 
673
        COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --cflags
500
674
        OUTPUT_VARIABLE MAIL_PACKAGE_CFLAGS)
501
 
if (NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "") # if we don't want to use it, we don't want to have an error
 
675
if (NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "") # if there is a problem with the previous, we don't want to have a lot of errors
502
676
        STRING (REGEX MATCHALL "-I[^ ]+ " TMP_VARIABLE "${MAIL_PACKAGE_CFLAGS}") # first extract the "-I" options
503
677
        STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}")
504
678
        STRING (REGEX REPLACE " $" "" TMP_VARIABLE "${TMP_VARIABLE}")
506
680
endif()
507
681
# find the link flags
508
682
execute_process(
509
 
        COMMAND libetpan-config --libs
 
683
        COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --libs
510
684
        OUTPUT_VARIABLE MAIL_PACKAGE_LIBS)
511
685
if (NOT "${MAIL_PACKAGE_LIBS}" STREQUAL "")
512
686
        #   find the link libraries
521
695
endif()
522
696
if ("${MAIL_PACKAGE_LIBS}" STREQUAL "")
523
697
        message (STATUS "warning : Could not find libetpan; Cairo-Dock won't be built with Mail applet.")
 
698
        message (WARNING "This module is required to compile Mail applet: libetpan")
 
699
        set (PROGRAMS_MISSING "${PROGRAMS_MISSING} libetpan-config")
524
700
else()
525
701
        message (STATUS "libetpan found. Using the following options:")
526
702
        message (STATUS "  Include directories: ${MAIL_PACKAGE_INCLUDE_DIRS}")
527
703
        message (STATUS "  Link directories: ${MAIL_PACKAGE_LIBRARY_DIRS}")
528
704
        message (STATUS "  Link libraries: ${MAIL_PACKAGE_LIBRARIES}")
529
705
        set (GETTEXT_MAIL ${GETTEXT_PLUGINS})
530
 
        set (VERSION_MAIL "1.0.8")
 
706
        set (VERSION_MAIL "1.0.9")
531
707
        set (PACKAGE_MAIL "cd-mail")
532
708
        set (maildatadir "${pluginsdatadir}/mail")
533
709
        set (with_mail "yes")
535
711
        add_subdirectory ("mail")
536
712
endif()
537
713
 
538
 
############# MEMENU #################
 
714
############# DISTRIBUTION #################
 
715
message (STATUS "> Distribution:")
539
716
# We try to detect if the user is on Ubuntu to know which bus we have to use...
540
717
execute_process(
541
718
        COMMAND lsb_release -i
573
750
        endif()
574
751
endif()
575
752
 
576
 
set (INDICATOR_OLD_NAMES 0)
577
753
if (NOT "${DISTRO_ID}" STREQUAL "")
578
754
        message (STATUS "DISTRO_ID: ${DISTRO_ID}, DISTRO_RELEASE: ${DISTRO_RELEASE}")
579
755
endif()
580
 
if ("${DISTRO_ID}" STREQUAL "Ubuntu")
 
756
 
 
757
############# INDICATOR_NAME #################
 
758
message (STATUS "> Indicator Names:")
 
759
set (INDICATOR_OLD_NAMES 0)
 
760
if ("${force_old_indicator_names}" STREQUAL "yes")
 
761
        set (INDICATOR_OLD_NAMES 1)
 
762
        message (STATUS "Indicators: use old Ayatana Dbus names (forced)")
 
763
elseif ("${DISTRO_ID}" STREQUAL "Ubuntu")
581
764
        STRING (REGEX REPLACE "\\..*" "" DISTRO_RELEASE_MAJOR ${DISTRO_RELEASE})
582
765
        # message (STATUS "DISTRO_RELEASE_MAJOR: ${DISTRO_RELEASE_MAJOR}")
583
766
        if (${DISTRO_RELEASE_MAJOR} LESS 11)  # from 11.04, new names are used.
586
769
        endif()
587
770
endif()
588
771
 
 
772
############# MEMENU #################
589
773
set (with_me_menu "no")
590
774
if ("${with_indicator}" STREQUAL "yes")
 
775
        message (STATUS "> MeMenu:")
591
776
        set (GETTEXT_MEMENU ${GETTEXT_PLUGINS})
592
 
        set (VERSION_MEMENU "1.0.1")
 
777
        set (VERSION_MEMENU "1.0.2")
593
778
        set (PACKAGE_MEMENU "cd-MeMenu")
594
779
        set (memenudatadir "${pluginsdatadir}/MeMenu")
595
780
        set (with_me_menu "yes")
600
785
############# MESSAGING_MENU #################
601
786
set (with_messaging_menu "no")
602
787
if ("${with_indicator}" STREQUAL "yes")
 
788
        message (STATUS "> Messaging-Menu:")
603
789
        set (GETTEXT_MESSAGING_MENU ${GETTEXT_PLUGINS})
604
 
        set (VERSION_MESSAGING_MENU "1.0.1")
 
790
        set (VERSION_MESSAGING_MENU "1.0.2")
605
791
        set (PACKAGE_MESSAGING_MENU "cd-Messaging-Menu")
606
792
        set (with_messaging_menu "yes")
607
793
        set (messaging_menudatadir "${pluginsdatadir}/Messaging-Menu")
610
796
endif()
611
797
 
612
798
############# MOTION BLUR #################
 
799
message (STATUS "> Motion Blur:")
613
800
set (GETTEXT_MOTION_BLUR ${GETTEXT_PLUGINS})
614
801
set (VERSION_MOTION_BLUR "1.0.4")
615
802
set (PACKAGE_MOTION_BLUR "cd-motion_blur")
618
805
add_subdirectory (motion-blur)
619
806
 
620
807
############# MUSICPLAYER #################
 
808
message (STATUS "> MusicPlayer:")
621
809
set (GETTEXT_MUSICPLAYER ${GETTEXT_PLUGINS})
622
 
set (VERSION_MUSICPLAYER "1.0.7")
 
810
set (VERSION_MUSICPLAYER "1.0.8")
623
811
set (PACKAGE_MUSICPLAYER "cd-musicPlayer")
624
812
set (musicplayerdatadir "${pluginsdatadir}/musicPlayer")
625
813
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/musicPlayer/data/musicPlayer.conf.in ${CMAKE_CURRENT_BINARY_DIR}/musicPlayer/data/musicPlayer.conf)
626
814
add_subdirectory (musicPlayer)
627
815
 
628
816
############# NETSPEED #################
 
817
message (STATUS "> NetSpeed:")
629
818
set (GETTEXT_NETSPEED ${GETTEXT_PLUGINS})
630
 
set (VERSION_NETSPEED "1.2.5")
 
819
set (VERSION_NETSPEED "1.2.6")
631
820
set (PACKAGE_NETSPEED "cd-netspeed")
632
821
set (netspeeddatadir "${pluginsdatadir}/netspeed")
633
822
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/netspeed/data/netspeed.conf.in ${CMAKE_CURRENT_BINARY_DIR}/netspeed/data/netspeed.conf)
636
825
############# NETWORK_MONITOR #################
637
826
set (with_network_monitor "no")
638
827
if ("${enable-network-monitor}" STREQUAL "yes")
 
828
        message (STATUS "> Network Monitor:")
639
829
        set (GETTEXT_NETWORK_MONITOR ${GETTEXT_PLUGINS})
640
 
        set (VERSION_NETWORK_MONITOR "0.2.3")
 
830
        set (VERSION_NETWORK_MONITOR "0.2.4")
641
831
        set (PACKAGE_NETWORK_MONITOR "cd-network-monitor")
642
832
        set (with_network_monitor "yes")
643
833
        set (network_monitordatadir "${pluginsdatadir}/Network-Monitor")
646
836
endif()
647
837
 
648
838
############# POWERMANAGER #################
 
839
message (STATUS "> PowerManager:")
649
840
set (GETTEXT_POWERMANAGER ${GETTEXT_PLUGINS})
650
 
set (VERSION_POWERMANAGER "1.3.4")
 
841
set (VERSION_POWERMANAGER "1.3.5")
651
842
set (PACKAGE_POWERMANAGER "cd-powermanager")
652
843
set (powermanagerdatadir "${pluginsdatadir}/powermanager")
653
844
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/powermanager/data/powermanager.conf.in ${CMAKE_CURRENT_BINARY_DIR}/powermanager/data/powermanager.conf)
654
845
add_subdirectory (powermanager)
655
846
 
656
847
############# QUICK BROWSER #################
 
848
message (STATUS "> Quick Browser:")
657
849
set (GETTEXT_QUICK_BROWSER ${GETTEXT_PLUGINS})
658
 
set (VERSION_QUICK_BROWSER "1.0.8")
 
850
set (VERSION_QUICK_BROWSER "1.0.9")
659
851
set (PACKAGE_QUICK_BROWSER "cd-quick-browser")
660
852
set (quick_browserdatadir "${pluginsdatadir}/quick_browser")
661
853
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/quick-browser/data/quick-browser.conf.in ${CMAKE_CURRENT_BINARY_DIR}/quick-browser/data/quick-browser.conf)
662
854
add_subdirectory (quick-browser)
663
855
 
664
856
############# RECENT-EVENTS #################
 
857
message (STATUS "> Recent-Events:")
665
858
set (with_recent_events "no")
666
859
pkg_check_modules (RECENT_EVENTS zeitgeist-1.0)
667
860
if ("${RECENT_EVENTS_FOUND}" STREQUAL "")
668
861
        message (STATUS "Could not find libzeitgeist; Cairo-Dock won't be built with Zeitgeist support.")
 
862
        message (WARNING "This module is required to compile Recent-Events applet: zeitgeist-1.0")
 
863
        set (MODULES_MISSING "${MODULES_MISSING} zeitgeist-1.0")
669
864
else()
670
865
        set (GETTEXT_RECENT_EVENTS ${GETTEXT_PLUGINS})
671
 
        set (VERSION_RECENT_EVENTS "0.0.2")
 
866
        set (VERSION_RECENT_EVENTS "1.0.0")
672
867
        set (PACKAGE_RECENT_EVENTS "cd-Recent-Events")
673
868
        set (with_recent_events "yes")
674
869
        set (recent_eventsdatadir "${pluginsdatadir}/Recent-Events")
677
872
endif()
678
873
 
679
874
############# REMOTE_CONTROL #################
 
875
message (STATUS "> Remote Control:")
680
876
set (GETTEXT_REMOTE_CONTROL ${GETTEXT_PLUGINS})
681
877
set (VERSION_REMOTE_CONTROL "0.0.2")
682
878
set (PACKAGE_REMOTE_CONTROL "cd-Remote-Control")
685
881
add_subdirectory (Remote-Control)
686
882
 
687
883
############# RSSREADER #################
 
884
message (STATUS "> RSSreader:")
688
885
set (GETTEXT_RSS_READER ${GETTEXT_PLUGINS})
689
 
set (VERSION_RSS_READER "1.0.3")
 
886
set (VERSION_RSS_READER "1.0.4")
690
887
set (PACKAGE_RSS_READER "cd-rssreader")
691
888
set (rss_readerdatadir "${pluginsdatadir}/RSSreader")
692
889
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/RSSreader/data/RSSreader.conf.in ${CMAKE_CURRENT_BINARY_DIR}/RSSreader/data/RSSreader.conf)
695
892
############# SCOOBY_DO #################
696
893
set (with_scooby_do "no")
697
894
if ("${enable-scooby-do}" STREQUAL "yes")
 
895
        message (STATUS "> Scooby-Do:")
698
896
        set (GETTEXT_SCOOBY_DO ${GETTEXT_PLUGINS})
699
897
        set (VERSION_SCOOBY_DO "0.1.1")
700
898
        set (PACKAGE_SCOOBY_DO "cd-scooby-do")
704
902
        add_subdirectory (Scooby-Do)
705
903
endif()
706
904
 
 
905
############# SHARED-IMAGES #################
 
906
set (shared_imagesdatadir "${pluginsdatadir}/shared-images")
 
907
add_subdirectory (shared-images)
 
908
 
707
909
############# SHORTCUTS #################
 
910
message (STATUS "> Shortcuts:")
708
911
set (GETTEXT_SHORTCUTS ${GETTEXT_PLUGINS})
709
 
set (VERSION_SHORTCUTS "1.3.1")
 
912
set (VERSION_SHORTCUTS "1.3.2")
710
913
set (PACKAGE_SHORTCUTS "cd-shortcuts")
711
914
set (shortcutsdatadir "${pluginsdatadir}/shortcuts")
712
915
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/shortcuts/data/shortcuts.conf.in ${CMAKE_CURRENT_BINARY_DIR}/shortcuts/data/shortcuts.conf)
713
916
add_subdirectory (shortcuts)
714
917
 
715
918
############# SHOW DESKTOP #################
 
919
message (STATUS "> ShowDesktop:")
716
920
set (with_xrandr "yes")
717
921
pkg_check_modules (SHOW_DESKTOP_XRANDR xrandr)
718
922
if ("${SHOW_DESKTOP_XRANDR_FOUND}" STREQUAL "")
719
923
        message (STATUS "Could not find xrandr; ShowDesktop won't be built with screen resolution abilities.")
 
924
        message (WARNING "This module is required to compile ShowDesktop applet with xRandr support: xrandr")
 
925
        set (MODULES_MISSING "${MODULES_MISSING} xrandr")
720
926
        set (with_xrandr "no")
721
927
endif()
722
928
set (GETTEXT_SHOW_DESKTOP ${GETTEXT_PLUGINS})
723
 
set (VERSION_SHOW_DESKTOP "1.2.4")
 
929
set (VERSION_SHOW_DESKTOP "1.2.5")
724
930
set (PACKAGE_SHOW_DESKTOP "cd-showDesktop")
725
931
set (show_desktopdatadir "${pluginsdatadir}/showDesktop")
726
932
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/showDesktop/data/showDesktop.conf.in ${CMAKE_CURRENT_BINARY_DIR}/showDesktop/data/showDesktop.conf)
727
933
add_subdirectory (showDesktop)
728
934
 
729
935
############# SHOW MOUSE #################
 
936
message (STATUS "> Show Mouse:")
730
937
set (GETTEXT_SHOW_MOUSE ${GETTEXT_PLUGINS})
731
938
set (VERSION_SHOW_MOUSE "1.0.4")
732
939
set (PACKAGE_SHOW_MOUSE "cd-show_mouse")
735
942
add_subdirectory (show-mouse)
736
943
 
737
944
############# SLIDER #################
 
945
message (STATUS "> Slider:")
738
946
set (with_exif "yes")
739
947
pkg_check_modules (EXIF libexif)
740
948
if ("${EXIF_FOUND}" STREQUAL "")
741
949
        message (STATUS "Could not find libexif; Slider won't be able to rotate the images accordingly to their exif data.")
 
950
        message (WARNING "This module is required to compile Slider applet with Exif support: libexif")
 
951
        set (MODULES_MISSING "${MODULES_MISSING} libexif")
742
952
        set (with_exif "no")
743
953
endif()
744
954
set (GETTEXT_SLIDER ${GETTEXT_PLUGINS})
745
 
set (VERSION_SLIDER "2.0.8")
 
955
set (VERSION_SLIDER "2.0.9")
746
956
set (PACKAGE_SLIDER "cd-slider")
747
957
set (sliderdatadir "${pluginsdatadir}/slider")
748
958
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/slider/data/slider.conf.in ${CMAKE_CURRENT_BINARY_DIR}/slider/data/slider.conf)
749
959
add_subdirectory (slider)
750
960
 
751
961
############# STACK #################
 
962
message (STATUS "> Stack:")
752
963
set (GETTEXT_STACK ${GETTEXT_PLUGINS})
753
 
set (VERSION_STACK "0.3.1")
 
964
set (VERSION_STACK "0.3.2")
754
965
set (PACKAGE_STACK "cd-stack")
755
966
set (stackdatadir "${pluginsdatadir}/stack")
756
967
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/stack/data/stack.conf.in ${CMAKE_CURRENT_BINARY_DIR}/stack/data/stack.conf)
757
968
add_subdirectory (stack)
758
969
 
759
970
############# STATUS NOTIFIER #################
 
971
message (STATUS "> Status Notifier:")
760
972
if ("${DBUSMENU_GTK_FOUND}" STREQUAL "")
761
973
        message (STATUS "Could not find Status-Notifier libs; Cairo-Dock won't be built with Status-Notifier support.")
 
974
        message (WARNING "This module is required to compile Status Notifier applet: dbusmenu-gtk(-0.4)")
 
975
        # set (MODULES_MISSING "${MODULES_MISSING} dbusmenu-gtk(-0.4)") # it should already be in the list.
 
976
        set (with_status_notifier "no")
762
977
else()
763
978
        set (GETTEXT_STATUS_NOTIFIER ${GETTEXT_PLUGINS})
764
 
        set (VERSION_STATUS_NOTIFIER "0.1.3")
 
979
        set (VERSION_STATUS_NOTIFIER "0.1.4")
765
980
        set (PACKAGE_STATUS_NOTIFIER "cd-status-notifier")
766
981
        set (with_status_notifier "yes")
767
982
        set (status_notifierdatadir "${pluginsdatadir}/Status-Notifier")
770
985
endif()
771
986
 
772
987
############# SWITCHER #################
 
988
message (STATUS "> Switcher:")
773
989
set (GETTEXT_SWITCHER ${GETTEXT_PLUGINS})
774
 
set (VERSION_SWITCHER "2.1.6")
 
990
set (VERSION_SWITCHER "2.1.7")
775
991
set (PACKAGE_SWITCHER "cd-switcher")
776
992
set (switcherdatadir "${pluginsdatadir}/switcher")
777
993
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/switcher/data/switcher.conf.in ${CMAKE_CURRENT_BINARY_DIR}/switcher/data/switcher.conf)
778
994
add_subdirectory (switcher)
779
995
 
780
996
############# SYSTEM MONITOR #################
 
997
message (STATUS "> System Monitor:")
781
998
set (with_sensors "yes")
782
999
find_package (Sensors)
783
1000
if (NOT "${SENSORS_FOUND}" STREQUAL "TRUE")
784
1001
        message (STATUS "Could not find libsensors; System-Monitor won't be able to monitor fan speed and CPU temperature.")
 
1002
        message (WARNING "This package is required to compile System Monitor applet with Sensors support: sensors")
 
1003
        set (PROGRAMS_MISSING "${PROGRAMS_MISSING} sensors")
785
1004
        set (with_sensors "no")
786
1005
endif()
787
1006
set (GETTEXT_SYSTEM_MONITOR ${GETTEXT_PLUGINS})
788
 
set (VERSION_SYSTEM_MONITOR "1.0.6")
 
1007
set (VERSION_SYSTEM_MONITOR "1.0.7")
789
1008
set (PACKAGE_SYSTEM_MONITOR "cd-system-monitor")
790
1009
set (system_monitordatadir "${pluginsdatadir}/System-monitor")
791
1010
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/System-Monitor/data/System-Monitor.conf.in ${CMAKE_CURRENT_BINARY_DIR}/System-Monitor/data/System-Monitor.conf)
792
1011
add_subdirectory (System-Monitor)
793
1012
 
794
1013
############# SYSTRAY #################
 
1014
message (STATUS "> Systray:")
795
1015
set (GETTEXT_SYSTRAY ${GETTEXT_PLUGINS})
796
 
set (VERSION_SYSTRAY "0.2.2")
 
1016
set (VERSION_SYSTRAY "0.2.3")
797
1017
set (PACKAGE_SYSTRAY "cd-systray")
798
1018
set (systraydatadir "${pluginsdatadir}/systray")
799
1019
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/systray/data/systray.conf.in ${CMAKE_CURRENT_BINARY_DIR}/systray/data/systray.conf)
800
1020
add_subdirectory (systray)
801
1021
 
802
1022
############# TERMINAL #################
 
1023
message (STATUS "> Terminal:")
803
1024
pkg_check_modules (TERMINAL_PACKAGE vte)
804
1025
if ("${TERMINAL_PACKAGE_FOUND}" STREQUAL "")
805
1026
        message (STATUS "Could not find libvte; Cairo-Dock won't be built with terminal applet.")
 
1027
        message (WARNING "This module is required to compile Terminal applet: vte")
 
1028
        set (MODULES_MISSING "${MODULES_MISSING} vte")
806
1029
        set (with_terminal "no")
807
1030
else()
808
1031
        set (GETTEXT_TERMINAL ${GETTEXT_PLUGINS})
809
 
        set (VERSION_TERMINAL "1.0.10")
 
1032
        set (VERSION_TERMINAL "1.0.11")
810
1033
        set (PACKAGE_TERMINAL "cd-terminal")
811
1034
        set (with_terminal "yes")
812
1035
        set (terminaldatadir "${pluginsdatadir}/terminal")
815
1038
endif()
816
1039
 
817
1040
############# TOMBOY #################
 
1041
message (STATUS "> Tomboy:")
818
1042
set (GETTEXT_TOMBOY ${GETTEXT_PLUGINS})
819
 
set (VERSION_TOMBOY "1.3.1")
 
1043
set (VERSION_TOMBOY "1.3.2")
820
1044
set (PACKAGE_TOMBOY "cd-tomboy")
821
1045
set (tomboydatadir "${pluginsdatadir}/tomboy")
822
1046
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/tomboy/data/tomboy.conf.in ${CMAKE_CURRENT_BINARY_DIR}/tomboy/data/tomboy.conf)
823
1047
add_subdirectory (tomboy)
824
1048
 
825
1049
############# TOONS #################
 
1050
message (STATUS "> Toons:")
826
1051
set (GETTEXT_TOONS ${GETTEXT_PLUGINS})
827
 
set (VERSION_TOONS "1.0.8")
 
1052
set (VERSION_TOONS "1.0.9")
828
1053
set (PACKAGE_TOONS "cd-Toons")
829
1054
set (toonsdatadir "${pluginsdatadir}/Toons")
830
1055
set (toonsuserdirname "Toons")
832
1057
add_subdirectory (Toons)
833
1058
 
834
1059
############# WEATHER #################
 
1060
message (STATUS "> Weather:")
835
1061
set (GETTEXT_WEATHER ${GETTEXT_PLUGINS})
836
 
set (VERSION_WEATHER "1.2.10")
 
1062
set (VERSION_WEATHER "1.2.11")
837
1063
set (PACKAGE_WEATHER "cd-weather")
838
1064
set (weatherdatadir "${pluginsdatadir}/weather")
839
1065
set (weatheruserdirname "weather")
841
1067
add_subdirectory (weather)
842
1068
 
843
1069
############# WEBLETS #################
 
1070
message (STATUS "> Weblets:")
844
1071
set (with_weblets "no")
845
1072
if (NOT "${enable-weblets}" STREQUAL "no")
846
1073
        pkg_check_modules (WEBKIT webkit-1.0)
847
1074
        if ("${WEBKIT_FOUND}" STREQUAL "")
848
1075
                message (STATUS "Could not find webkit-1.0; Cairo-Dock won't be built with Weblets applet.")
 
1076
                message (WARNING "This module is required to compile Weblets applet: webkit-1.0")
 
1077
                set (MODULES_MISSING "${MODULES_MISSING} webkit-1.0")
849
1078
        else()
850
1079
                set (GETTEXT_WEBLETS ${GETTEXT_PLUGINS})
851
 
                set (VERSION_WEBLETS "0.0.10")
 
1080
                set (VERSION_WEBLETS "0.0.11")
852
1081
                set (PACKAGE_WEBLETS "cd-weblets")
853
1082
                set (webletsdatadir "${pluginsdatadir}/weblets")
854
1083
                set (with_weblets "yes")
858
1087
endif()
859
1088
 
860
1089
############# WIFI #################
 
1090
message (STATUS "> WiFi:")
861
1091
set (GETTEXT_WIFI ${GETTEXT_PLUGINS})
862
 
set (VERSION_WIFI "1.2.6")
 
1092
set (VERSION_WIFI "1.2.7")
863
1093
set (PACKAGE_WIFI "cd-wifi")
864
1094
set (wifidatadir "${pluginsdatadir}/wifi")
865
1095
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/wifi/data/wifi.conf.in ${CMAKE_CURRENT_BINARY_DIR}/wifi/data/wifi.conf)
866
1096
add_subdirectory (wifi)
867
1097
 
868
1098
############# XFCE-INTEGRATION #################
 
1099
message (STATUS "> XFCE-Integration:")
869
1100
set (with_xfce_integration "no")
870
1101
if (NOT "${enable-xfce-integration}" STREQUAL "no")
871
1102
        pkg_check_modules (XFCE_INTEGRATION_THUNAR thunar-vfs-1)
872
1103
        pkg_check_modules (XFCE_INTEGRATION_GVFS gio-2.0)
873
1104
        if ("${XFCE_INTEGRATION_THUNAR_FOUND}" STREQUAL "" AND "${XFCE_INTEGRATION_GVFS_FOUND}" STREQUAL "")
874
1105
                message (STATUS "Could find neither thunar-vfs or libgio-2.0; Cairo-Dock won't be built with XFCE support.")
 
1106
                message (STATUS "This module is required to compile XFCE-Integration applet: gio-2.0 (or thunar-vfs-1)")
 
1107
                set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} gio-2.0")
875
1108
        else()
876
1109
                set (VERSION_XFCE_INTEGRATION "1.0.3")
877
1110
                set (PACKAGE_XFCE_INTEGRATION "cd_xfce-integration")
882
1115
endif()
883
1116
 
884
1117
############# XGAMMA #################
 
1118
message (STATUS "> XGamma:")
885
1119
pkg_check_modules (XGAMMA_PACKAGE x11 xxf86vm)
886
1120
if ("${XGAMMA_PACKAGE_FOUND}" STREQUAL "")
887
1121
        message (STATUS "Could not find xxf86vm; Cairo-Dock won't be built with Xgamma applet.")
 
1122
        message (WARNING "These modules are required to compile XGamma applet: x11 and xxf86vm")
 
1123
        set (MODULES_MISSING "${MODULES_MISSING} x11 xxf86vm")
888
1124
        set (with_xgamma "no")
889
1125
else()
890
1126
        set (GETTEXT_XGAMMA ${GETTEXT_PLUGINS})
891
 
        set (VERSION_XGAMMA "1.2.0")
 
1127
        set (VERSION_XGAMMA "1.2.1")
892
1128
        set (PACKAGE_XGAMMA "cd-Xgamma")
893
1129
        set (with_xgamma "yes")
894
1130
        set (xgammadatadir "${pluginsdatadir}/Xgamma")
926
1162
message (STATUS " - with Weblets applet:            ${with_weblets}")
927
1163
message (STATUS " - with Xgamma applet:             ${with_xgamma}")
928
1164
message (STATUS " - with Recent-Events applet:      ${with_recent_events}")
 
1165
message (STATUS " - with UPower support:            ${with_upower_support}")
929
1166
message (STATUS " - with Python interface:          ${with_python}")
930
1167
message (STATUS " - with Ruby interface:            ${with_ruby}")
931
1168
message (STATUS " - with Mono interface:            ${with_mono}")
932
1169
message (STATUS " - with Vala interface:            ${with_vala}")
933
 
message (STATUS " - with Vala Translator (valac) :  ${with_valac}")
 
1170
message (STATUS " - with Vala Translator (valac):   ${with_valac}")
934
1171
message (STATUS "Unstable:")
935
1172
message (STATUS " - with Disks applet:              ${with_disks}")
936
1173
message (STATUS " - with Doncky applet:             ${with_doncky}")
 
1174
message (STATUS " - with Impulse applet:            ${with_impulse}")
 
1175
message (STATUS " - with KDE experimental support:  ${with_kde_integration2}")
937
1176
message (STATUS " - with Network-Monitor applet:    ${with_network_monitor}")
938
1177
message (STATUS " - with Scooby-Do applet:          ${with_scooby_do}")
939
 
message (STATUS "Unsupported:")
 
1178
message (STATUS "Deprecated:")
940
1179
message (STATUS " - with old Gnome support:         ${with_gnome_integration_old}")
 
1180
 
 
1181
if (NOT "${MODULES_MISSING}" STREQUAL "")
 
1182
        message ("")
 
1183
        message (STATUS "WARNING: It seems that one (or more) module(s) is (are) missing:${MODULES_MISSING}")
 
1184
        message (STATUS "It can be interesting to install them (even more if you're a maintainer of Cairo-Dock's packages).")
 
1185
endif ()
 
1186
 
 
1187
if (NOT "${PROGRAMS_MISSING}" STREQUAL "")
 
1188
        message ("")
 
1189
        message (STATUS "WARNING: It seems that one (or more) program(s) or package(s) is (are) missing:${PROGRAMS_MISSING}")
 
1190
        message (STATUS "It can be interesting to install them (even more if you're a maintainer of Cairo-Dock's packages).")
 
1191
endif ()
 
1192
 
 
1193
if (NOT "${MODULES_INTEGRATION_MISSING}" STREQUAL "")
 
1194
        message ("")
 
1195
        message (STATUS "WARNING: It seems that one (or more) module(s) for the integration with the system is (are) missing:${MODULES_INTEGRATION_MISSING}")
 
1196
        message (STATUS "It's maybe not required for the user but it's recommended to install them if you're a maintainer of Cairo-Dock's packages.")
 
1197
endif ()
941
1198
message ("")