~ubuntu-branches/ubuntu/utopic/cairo-dock-plug-ins/utopic-proposed

1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1
########### requirements ###############
2
3
cmake_minimum_required (VERSION 2.6)
4
find_package (PkgConfig)
5
include (CheckLibraryExists)
6
include (CheckIncludeFiles)
7
include (CheckFunctionExists)
8
include (CheckSymbolExists)
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
9
include ("${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/GNUInstallDirs.cmake")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
10
11
########### project ###############
12
13
project ("cairo-dock-plugins")
1.1.26 by Matthieu Baerts
Import upstream version 3.1.1
14
set (VERSION "3.1.1")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
15
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
16
add_definitions (-std=c99 -Wall) # -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration -Wstrict-prototypes -Wreturn-type -Wparentheses -Warray-bounds) # removed for stable versions: -Wstrict-prototypes #-Wunreachable-code -Wno-unused-parameter -Wall
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
17
if (NOT ${CMAKE_BUILD_TYPE})
18
	add_definitions (-O3)
19
endif()
20
add_definitions (-DGL_GLEXT_PROTOTYPES="1")
21
22
############ sources tarball #############
23
24
set (CPACK_SOURCE_GENERATOR "TGZ")
25
set (CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
26
set (CPACK_SOURCE_IGNORE_FILES
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
27
	"/build/;/.bzr/;bzrignore$;/misc/;~$;${CPACK_SOURCE_IGNORE_FILES}")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
28
include (CPack)
29
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
30
add_custom_target(dist
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
31
	COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
32
add_custom_target(dist-bzr
33
	COMMAND bzr export ${CMAKE_PROJECT_NAME}-${VERSION}.tar.gz
34
	WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
35
36
############ uninstall #############
37
38
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake IMMEDIATE @ONLY)
39
add_custom_target (uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
40
41
########### global variables ###############
42
43
if( WIN32 )
44
	message(FATAL_ERROR "Cairo-Dock requires an air-conditioned room. Please close Windows!")
45
endif( WIN32 )
46
47
set (PACKAGE ${CMAKE_PROJECT_NAME})
48
set (GETTEXT_PACKAGE ${PACKAGE})
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
49
50
# get plug-ins install dir
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
51
execute_process(
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
52
    COMMAND pkg-config gldi --variable=pluginsdir  # /usr/lib/cairo-dock # or /usr/lib/x86_64-linux-gnu/cairo-dock
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
53
    OUTPUT_VARIABLE pluginsdir)
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
54
STRING (REGEX REPLACE "\n" "" pluginsdir ${pluginsdir})  # remove the \n
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
55
# get plug-ins data dir
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
56
execute_process(
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
57
    COMMAND pkg-config gldi --variable=pluginsdatadir  # /usr/share/cairo-dock/plug-ins
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
58
    OUTPUT_VARIABLE pluginsdatadir)
59
STRING (REGEX REPLACE "\n" "" pluginsdatadir ${pluginsdatadir})
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
60
# get prefix dir
61
execute_process(
62
    COMMAND pkg-config gldi --variable=prefix  # /usr/share/cairo-dock/plug-ins
63
    OUTPUT_VARIABLE prefix)
64
STRING (REGEX REPLACE "\n" "" prefix ${prefix})
65
# get GTK version (must be the same as the core, as GTK2 and GTK3 can't coexist at runtime)
66
execute_process(
67
    COMMAND pkg-config gldi --variable=gtkversion  # 2 or 3
68
    OUTPUT_VARIABLE gtkversion)
69
STRING (REGEX REPLACE "\n" "" gtkversion ${gtkversion})
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
70
# check that version matches with the core
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
71
execute_process(
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
72
    COMMAND pkg-config --modversion gldi  # 2.2.0-3
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
73
    OUTPUT_VARIABLE dock_version)
74
STRING (REGEX REPLACE "\n" "" dock_version ${dock_version})
1.1.8 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~4
75
if (NOT "${dock_version}" STREQUAL "${VERSION}")		# Version
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
76
	if ("${PACKAGEMENT}" STREQUAL "")
77
		MESSAGE (FATAL_ERROR "Error : version mismatch with the core : " ${VERSION} <> ${dock_version})
78
	else ()
79
		MESSAGE (WARNING "Warning : version mismatch with the core : " ${VERSION} <> ${dock_version})
80
	endif ()
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
81
endif()
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
82
83
# check that installation dir matches with the core
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
84
GET_FILENAME_COMPONENT(libdir "${pluginsdir}/.." ABSOLUTE)  # /usr/lib # or /usr/lib/x86_64-linux-gnu
85
GET_FILENAME_COMPONENT(datadir "${pluginsdatadir}/../.." ABSOLUTE)  # /usr/share
86
if (NOT "${CMAKE_INSTALL_PREFIX}" STREQUAL "${prefix}"
87
		OR NOT "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" STREQUAL "${libdir}"
88
		OR NOT "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATAROOTDIR}" STREQUAL "${datadir}")
89
	message (STATUS "It seems that the current CMAKE_INSTALL_{PREFIX,LIBDIR,DATAROOTDIR} flags are not the same that you have used with the core.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
90
	message (STATUS " It will be replaced by this value: ${prefix}")
91
	message (WARNING "Plug-ins should be installed in the same directory as the core, that is to say in ${pluginsdir}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
92
	set (CMAKE_INSTALL_PREFIX "${prefix}")
93
	#set (libdir "${CMAKE_INSTALL_PREFIX}/${libname}/cairo-dock")
94
endif()
95
1.1.21 by Matthieu Baerts
Import upstream version 3.0.2
96
if (NOT "${force-icon-in-menus}" STREQUAL "no")  # we believe that not showing icons in the menus by default is a terrible idea; unfortunately, it's not easily undoable for an end-user; so until this is fixed by a big player (Gnome, Ubuntu or other), we'll force the display, unless "-Dforce-icon-in-menus=yes" is provided in the cmake command.
97
	add_definitions (-DCAIRO_DOCK_FORCE_ICON_IN_MENUS=1)
98
else()
99
	add_definitions (-DCAIRO_DOCK_FORCE_ICON_IN_MENUS=0)
100
endif()
101
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
102
# set internationalisation
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
103
set (GETTEXT_PLUGINS "cairo-dock-plugins")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
104
set (localedir "${prefix}/${CMAKE_INSTALL_LOCALEDIR}")
105
set (gaugesdir "${datadir}/cairo-dock/gauges")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
106
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
107
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")  # additionnal FindPackage files
108
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
109
set (MODULES_MISSING "")
110
set (MODULES_INTEGRATION_MISSING "")
111
set (PROGRAMS_MISSING "")
112
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
113
########### dependancies ###############
114
115
message ("")
116
message (STATUS "=====================")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
117
message (STATUS "Check dependencies...")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
118
message (STATUS "=====================")
119
message ("")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
120
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
121
pkg_check_modules ("PACKAGE" REQUIRED "gldi")  # we check first the common libs that most plug-ins would need: basically, all the libs used by the core.
122
STRING (REGEX REPLACE "gldi;" "" PACKAGE_LIBRARIES "${PACKAGE_LIBRARIES}")  # but we don't want to link to gldi, since we are dl-opened by it.
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
123
124
add_definitions (-DGTK_DISABLE_DEPRECATED="1")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
125
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
126
#############    GLIB    #################
127
pkg_check_modules (GLIB glib-2.0)
128
	STRING (REGEX REPLACE "\\..*" "" GLIB_MAJOR "${GLIB_VERSION}") # 2.28.3 => 2
129
	STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" GLIB_MINOR "${GLIB_VERSION}")  # 2.28.3 => 2.28
130
	STRING (REGEX REPLACE "\\.[0-9]*" "" GLIB_MINOR "${GLIB_MINOR}") # 2.28 => 28
131
	STRING (REGEX REPLACE ".*\\." "" GLIB_NANO "${GLIB_VERSION}") # 2.28.3 => 3
132
	STRING (REGEX REPLACE "-.*" "" GLIB_NANO "${GLIB_NANO}")
133
1.1.22 by Matthieu Baerts
Import upstream version 3.0.99.beta1
134
############# SHARED-FILES #################
135
set (shared_filesdatadir "${pluginsdatadir}/shared-files")
136
add_subdirectory (shared-files)
137
1.1.24 by Matthieu Baerts
Import upstream version 3.0.99.beta1.1~20120827~bzr2515
138
############# STATIC LIBRARIES ################
139
message (STATUS "> Static Libraries:")
140
141
############# GVFS-INTEGRATION ################
142
message (STATUS "> GVFS-Integration:")
143
pkg_check_modules ("LIBGIO" "gio-2.0")
144
add_subdirectory (gvfs-integration) 
145
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
146
############# INDICATOR-APPLET #################
147
message (STATUS "> Indicator-Applet:")
148
# Note: the names of dbusmenu-glib, dbusmenu-gtk and indicator have changed...
149
set (DBUSMENU_MODULE dbusmenu-glib-0.4)
150
pkg_check_modules (DBUSMENU ${DBUSMENU_MODULE})
151
if (NOT "${DBUSMENU_FOUND}")
152
	set (DBUSMENU_MODULE dbusmenu-glib)
153
	pkg_check_modules (DBUSMENU ${DBUSMENU_MODULE})
1.1.26 by Matthieu Baerts
Import upstream version 3.1.1
154
	set (INDICATOR_APPLICATIONADDED_HAS_HINT 0) # doesn't have 'hint' with old version
155
else ()
156
	set (INDICATOR_APPLICATIONADDED_HAS_HINT 1) # now the ApplicationAdded signal (Status-Notifier) has a new parameter (hint) => https://code.launchpad.net/~ted/indicator-application/name-hints/+merge/67213
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
157
endif()
158
159
if ("${gtkversion}" STREQUAL "2")
160
	set (DBUSMENU_GTK_MODULE dbusmenu-gtk-0.4)
161
else()
162
	set (DBUSMENU_GTK_MODULE dbusmenu-gtk3-0.4)
163
endif()
164
pkg_check_modules (DBUSMENU_GTK ${DBUSMENU_GTK_MODULE})
165
if (NOT "${DBUSMENU_GTK_FOUND}")
166
	if ("${gtkversion}" STREQUAL "2")
167
		set (DBUSMENU_GTK_MODULE dbusmenu-gtk)
168
	else()
169
		set (DBUSMENU_GTK_MODULE dbusmenu-gtk3)
170
	endif()
171
	pkg_check_modules (DBUSMENU_GTK ${DBUSMENU_GTK_MODULE})
172
endif()
173
174
if ("${gtkversion}" STREQUAL "2")
175
	set (INDICATOR_APPLET_MODULE indicator-0.4)
176
else()
177
	set (INDICATOR_APPLET_MODULE indicator3-0.4)
178
endif()
179
pkg_check_modules (INDICATOR_APPLET ${INDICATOR_APPLET_MODULE})
180
if ("${INDICATOR_APPLET_FOUND}" STREQUAL "1")
181
	set (INDICATOR_NEW_VERSION 1)  # oneiric and newer
182
else()
183
	if ("${gtkversion}" STREQUAL "2")
184
		set (INDICATOR_APPLET_MODULE indicator)
185
	else()
186
		set (INDICATOR_APPLET_MODULE indicator3)
187
	endif()
188
	pkg_check_modules (INDICATOR_APPLET ${INDICATOR_APPLET_MODULE})
189
endif()
190
191
if ("${gtkversion}" STREQUAL "2")
192
	set (IDO_MODULE libido-0.1)
193
else()
194
	set (IDO_MODULE libido3-0.1)
195
endif()
196
pkg_check_modules (IDO ${IDO_MODULE})
197
1.1.19 by Matthieu Baerts
Import upstream version 3.0.0.0rc1
198
if ("${DBUSMENU_FOUND}" STREQUAL "1" AND "${DBUSMENU_GTK_FOUND}" STREQUAL "1")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
199
	STRING (REGEX REPLACE "\\..*" "" DBUSMENU_MAJOR "${DBUSMENU_VERSION}")
200
	STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" DBUSMENU_MINOR "${DBUSMENU_VERSION}")  # 0.1.7 => 1.7
201
	STRING (REGEX REPLACE "\\.[0-9]*" "" DBUSMENU_MINOR "${DBUSMENU_MINOR}")
202
	STRING (REGEX REPLACE ".*\\." "" DBUSMENU_NANO "${DBUSMENU_VERSION}")
203
	STRING (REGEX REPLACE "-.*" "" DBUSMENU_NANO "${DBUSMENU_NANO}")
204
205
	STRING (REGEX REPLACE "\\..*" "" DBUSMENU_GTK_MAJOR "${DBUSMENU_GTK_VERSION}")
206
	STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" DBUSMENU_GTK_MINOR "${DBUSMENU_GTK_VERSION}")  # 0.1.7 => 1.7
207
	STRING (REGEX REPLACE "\\.[0-9]*" "" DBUSMENU_GTK_MINOR "${DBUSMENU_GTK_MINOR}")
208
	STRING (REGEX REPLACE ".*\\." "" DBUSMENU_GTK_NANO "${DBUSMENU_GTK_VERSION}")
209
	STRING (REGEX REPLACE "-.*" "" DBUSMENU_GTK_NANO "${DBUSMENU_GTK_NANO}")
1.1.19 by Matthieu Baerts
Import upstream version 3.0.0.0rc1
210
	
211
	if (${DBUSMENU_GTK_MAJOR} GREATER 0 OR ${DBUSMENU_GTK_MINOR} GREATER 5
212
	    OR (${DBUSMENU_GTK_MINOR} EQUAL 5 AND ${DBUSMENU_GTK_NANO} GREATER 89))
213
		set (DBUSMENU_GTK3_NEW 1)
214
		set (INDICATOR_APPLICATIONADDED_HAS_TITLE 1) # Status-Notifier: new parameter "Title" in the "added" signal since Precise
215
	else()
216
		set (INDICATOR_APPLICATIONADDED_HAS_TITLE 0)
217
	endif()
218
endif()
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
219
1.1.19 by Matthieu Baerts
Import upstream version 3.0.0.0rc1
220
if ("${INDICATOR_APPLET_FOUND}" STREQUAL "1")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
221
	STRING (REGEX REPLACE "\\..*" "" INDICATOR_MAJOR "${INDICATOR_APPLET_VERSION}")
222
	STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" INDICATOR_MINOR "${INDICATOR_APPLET_VERSION}")  # 0.1.7 => 1.7
223
	STRING (REGEX REPLACE "\\.[0-9]*" "" INDICATOR_MINOR "${INDICATOR_MINOR}")
224
	STRING (REGEX REPLACE ".*\\." "" INDICATOR_NANO "${INDICATOR_APPLET_VERSION}")
225
	STRING (REGEX REPLACE "-.*" "" INDICATOR_NANO "${INDICATOR_NANO}")
1.1.19 by Matthieu Baerts
Import upstream version 3.0.0.0rc1
226
	
227
	if (${INDICATOR_MAJOR} GREATER 0 OR ${INDICATOR_MINOR} GREATER 4
228
	    OR (${INDICATOR_MINOR} EQUAL 4 AND ${INDICATOR_NANO} GREATER 89))
229
		set (SOUND_SERVICE_VERSION 1) # Sound-Menu: new DBus path
1.1.20 by Matthieu Baerts
Import upstream version 3.0.0.1
230
		set (INDICATOR_MESSAGES_HAS_LOZENGE 1)   # Messaging Menu has 'right-is-lozenge'
1.1.19 by Matthieu Baerts
Import upstream version 3.0.0.0rc1
231
	else() # older than Precise.
232
		set (SOUND_SERVICE_VERSION 0)
1.1.20 by Matthieu Baerts
Import upstream version 3.0.0.1
233
		set (INDICATOR_MESSAGES_HAS_LOZENGE 0)
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
234
	endif()
235
236
	if ("${INDICATOR_NEW_VERSION}" STREQUAL "1")  # oneiric and newer
237
		if ("${gtkversion}" STREQUAL "2")
238
			execute_process(
239
				COMMAND pkg-config --variable=iconsdir indicator-0.4
240
				OUTPUT_VARIABLE INDICATORICONSDIR)
241
		else()
242
			execute_process(
243
				COMMAND pkg-config --variable=iconsdir indicator3-0.4
244
				OUTPUT_VARIABLE INDICATORICONSDIR)
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
245
			execute_process(
246
				COMMAND pkg-config --variable=indicatordir indicator3-0.4
247
				OUTPUT_VARIABLE INDICATORDIR)
248
			STRING (REGEX REPLACE "\n" "" INDICATORDIR ${INDICATORDIR})
249
			set (with_indicator3 "yes")
250
			message (STATUS "  Indicators: with Indicator3 support")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
251
		endif()
252
	else()
253
		if ("${gtkversion}" STREQUAL "2")
254
			execute_process(
255
				COMMAND pkg-config --variable=iconsdir indicator
256
				OUTPUT_VARIABLE INDICATORICONSDIR)
257
		else()
258
			execute_process(
259
				COMMAND pkg-config --variable=iconsdir indicator3
260
				OUTPUT_VARIABLE INDICATORICONSDIR)
261
		endif()
262
	endif()
263
	STRING (REGEX REPLACE "\n" "" INDICATORICONSDIR ${INDICATORICONSDIR})  # la commande rajoute un retour chariot ...
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
264
	if ("${with_indicator3}" STREQUAL "yes")
265
		add_subdirectory (Indicator-applet3)
266
	endif()
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
267
	add_subdirectory (Indicator-applet)
268
	set (with_indicator "yes")
1.1.19 by Matthieu Baerts
Import upstream version 3.0.0.0rc1
269
endif()
270
271
if (NOT "${DBUSMENU_FOUND}" STREQUAL "1" OR NOT "${DBUSMENU_GTK_FOUND}" STREQUAL "1" OR NOT "${INDICATOR_APPLET_FOUND}" STREQUAL "1")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
272
	message (WARNING "These modules are required to compile Indicators applet (MeMenu, Messaging-Menu, Sound-Control, Status-Notifier and Global-Menu): ${INDICATOR_APPLET_MODULE}(-0.4), ${IDO_MODULE}, ${DBUSMENU_MODULE}(-0.4), ${DBUSMENU_GTK_MODULE}(-0.4)")
273
	set (MODULES_MISSING "${MODULES_MISSING} ${INDICATOR_APPLET_MODULE}(-0.4) (${IDO_MODULE}) ${DBUSMENU_MODULE}(-0.4) ${DBUSMENU_GTK_MODULE}(-0.4)")
274
endif()
275
276
############# INDICATOR-NAME #################
277
message (STATUS "> Indicator Names:")
278
set (INDICATOR_OLD_NAMES 0)
279
if ("${force_old_indicator_names}" STREQUAL "yes")
280
	set (INDICATOR_OLD_NAMES 1)
281
	message (STATUS "  Indicators: use old Ayatana Dbus names (forced)")
282
#~ elseif ("${DISTRO_ID}" STREQUAL "Ubuntu")
283
	#~ STRING (REGEX REPLACE "\\..*" "" DISTRO_RELEASE_MAJOR ${DISTRO_RELEASE})
284
	#~ # message (STATUS "DISTRO_RELEASE_MAJOR: ${DISTRO_RELEASE_MAJOR}")
285
	#~ if (${DISTRO_RELEASE_MAJOR} LESS 11)  # from 11.04, new names are used.
286
		#~ set (INDICATOR_OLD_NAMES 1)
287
		#~ message (STATUS "  Indicators: use old Ayatana Dbus names")
288
	#~ endif()
1.1.21 by Matthieu Baerts
Import upstream version 3.0.2
289
elseif ("${INDICATOR_APPLET_FOUND}" STREQUAL "1")
290
	if (NOT (${INDICATOR_MAJOR} GREATER 0 OR ${INDICATOR_MINOR} GREATER 3 OR (${INDICATOR_MINOR} EQUAL 3 AND ${INDICATOR_NANO} GREATER 20)))
291
		set (INDICATOR_OLD_NAMES 1)  # maverick or older
292
		message (STATUS "  Indicators: use old Ayatana Dbus names")
293
	endif()
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
294
endif()
295
1.1.19 by Matthieu Baerts
Import upstream version 3.0.0.0rc1
296
############# DISTRIBUTION #################
297
message (STATUS "> Distribution:")
298
# We try to detect if the user is on Ubuntu to know which bus we have to use...
299
execute_process(
300
	COMMAND lsb_release -i
301
	OUTPUT_VARIABLE DISTRO_ID)  # -> "Distributor ID:	Ubuntu"
302
if (NOT "${DISTRO_ID}" STREQUAL "") # this tool isn't available on all distributions
303
	STRING (REGEX REPLACE "\n" "" DISTRO_ID ${DISTRO_ID})  # retour chariot
304
	STRING (REGEX REPLACE ".*: *\t*" "" DISTRO_ID ${DISTRO_ID})
305
306
	execute_process(
307
		COMMAND lsb_release -r
308
		OUTPUT_VARIABLE DISTRO_RELEASE)  # -> "Release:	10.10"
309
	STRING (REGEX REPLACE "\n" "" DISTRO_RELEASE ${DISTRO_RELEASE})  # retour chariot
310
	STRING (REGEX REPLACE ".*: *\t*" "" DISTRO_RELEASE ${DISTRO_RELEASE})
311
else()
312
	# on Ubuntu deb builders, lsb_release isn't available but we can have a look to /etc/issue.net
313
	get_filename_component(ISSUE_NET "/etc/issue.net" ABSOLUTE)
314
	if (EXISTS ${ISSUE_NET}) # to not have an error with cat
315
		execute_process(
316
			COMMAND cat ${ISSUE_NET}
317
			OUTPUT_VARIABLE DISTRO_RELEASE)  # -> Ubuntu 10.10 || Ubuntu natty (development branch)
318
		if (NOT "${DISTRO_RELEASE}" STREQUAL "")
319
			STRING (REGEX REPLACE "\n" "" DISTRO_RELEASE ${DISTRO_RELEASE})  # retour chariot
320
			STRING (REGEX REPLACE " (.+)" "" DISTRO_ID ${DISTRO_RELEASE})
321
			if ("${DISTRO_ID}" STREQUAL "Ubuntu")
322
				STRING (REGEX REPLACE ".[(]development branch[)]" "" DISTRO_RELEASE ${DISTRO_RELEASE})
323
				STRING (REGEX REPLACE ".LTS" "" DISTRO_RELEASE ${DISTRO_RELEASE}) # Ubuntu 10.04.1 LTS
324
				STRING (REGEX REPLACE "(.+) " "" DISTRO_RELEASE ${DISTRO_RELEASE})
325
				if ("${DISTRO_RELEASE}" STREQUAL "natty")
326
					set (DISTRO_RELEASE "11.04")
327
				elseif ("${DISTRO_RELEASE}" STREQUAL "oneiric")
328
					set (DISTRO_RELEASE "11.10")
329
				elseif ("${DISTRO_RELEASE}" STREQUAL "precise")
330
					set (DISTRO_RELEASE "12.04")
331
				endif()
332
			endif()
333
		endif()
334
	endif()
335
endif()
336
337
if (NOT "${DISTRO_ID}" STREQUAL "")
338
	message (STATUS "  DISTRO_ID: ${DISTRO_ID}, DISTRO_RELEASE: ${DISTRO_RELEASE}")
339
endif()
340
1.1.24 by Matthieu Baerts
Import upstream version 3.0.99.beta1.1~20120827~bzr2515
341
############# SHARED LIBRARIES ###########
342
message (STATUS "> Shared Libraries:")
343
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
344
############# ALSA_MIXER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
345
message (STATUS "> AlsaMixer:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
346
set (with_alsa "no")
347
if (NOT "${enable-alsa-mixer}" STREQUAL "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
348
	pkg_check_modules (ALSA_MIXER_PACKAGE alsa)
349
	if ("${ALSA_MIXER_PACKAGE_FOUND}" STREQUAL "")
350
		message (STATUS "Could not find alsa; Cairo-Dock won't be built with AlsaMixer applet.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
351
		message (WARNING "This module is required to compile AlsaMixer applet: alsa")
352
		set (MODULES_MISSING "${MODULES_MISSING} alsa")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
353
	else()
354
		set (GETTEXT_ALSA_MIXER ${GETTEXT_PLUGINS})
1.1.26 by Matthieu Baerts
Import upstream version 3.1.1
355
		set (VERSION_ALSA_MIXER "2.1.3")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
356
		set (PACKAGE_ALSA_MIXER "cd-AlsaMixer")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
357
		set (with_alsa "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
358
		set (alsa_mixerdatadir "${pluginsdatadir}/AlsaMixer")
359
		configure_file (${CMAKE_CURRENT_SOURCE_DIR}/alsaMixer/data/AlsaMixer.conf.in ${CMAKE_CURRENT_BINARY_DIR}/alsaMixer/data/AlsaMixer.conf)
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
360
		if ("${with_indicator}" STREQUAL "yes" AND "${IDO_FOUND}"
361
			AND "${INDICATOR_OLD_NAMES}" STREQUAL "0")
362
			set (with_soundmenu "yes")
363
		endif()
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
364
		add_subdirectory ("alsaMixer")
365
	endif()
366
endif()
367
368
############# ANIMATED ICONS #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
369
message (STATUS "> Animated Icons:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
370
set (GETTEXT_ANIMATED_ICONS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
371
set (VERSION_ANIMATED_ICONS "1.0.12")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
372
set (PACKAGE_ANIMATED_ICONS "cd-Animated-icons")
373
set (animated_iconsdatadir "${pluginsdatadir}/Animated-icons")
374
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Animated-icons/data/Animated-icons.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Animated-icons/data/Animated-icons.conf)
375
add_subdirectory (Animated-icons)
376
377
############# CAIRO_PENGUIN #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
378
message (STATUS "> Cairo Penguin:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
379
set (GETTEXT_CAIRO_PENGUIN ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
380
set (VERSION_CAIRO_PENGUIN "1.1.12")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
381
set (PACKAGE_CAIRO_PENGUIN "cd-Cairo-Penguin")
382
set (cairo_penguinuserdirname "Cairo-Penguin")
383
set (cairo_penguindatadir "${pluginsdatadir}/Cairo-Penguin")
384
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Cairo-Penguin/data/Cairo-Penguin.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Cairo-Penguin/data/Cairo-Penguin.conf)
385
add_subdirectory (Cairo-Penguin)
386
387
############# CLIPPER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
388
message (STATUS "> Clipper:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
389
set (GETTEXT_CLIPPER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
390
set (VERSION_CLIPPER "1.1.8")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
391
set (PACKAGE_CLIPPER "cd-Clipper")
392
set (Clipperdatadir "${pluginsdatadir}/Clipper")
393
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Clipper/data/Clipper.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Clipper/data/Clipper.conf)
394
add_subdirectory (Clipper)
395
396
############# CLOCK #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
397
message (STATUS "> Clock:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
398
set (with_ical "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
399
pkg_check_modules ("LIBICAL_PACKAGE" "libical")
400
if ("${LIBICAL_PACKAGE_FOUND}" STREQUAL "")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
401
	set (with_ical "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
402
	message (STATUS "Could not find libical; Clock plugin won't be built with iCal support.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
403
	message (WARNING "This module is required to compile Clock applet with iCal support: libical")
404
	set (MODULES_MISSING "${MODULES_MISSING} libical")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
405
endif()
406
set (GETTEXT_CLOCK ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
407
set (VERSION_CLOCK "2.2.2")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
408
set (PACKAGE_CLOCK "cd-clock")
409
set (clockuserdirname "clock")
410
set (clockdatadir "${pluginsdatadir}/clock")
411
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/clock/data/clock.conf.in ${CMAKE_CURRENT_BINARY_DIR}/clock/data/clock.conf)
412
add_subdirectory (clock)
413
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
414
############# COMPOSITE_MANAGER #################
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
415
message (STATUS "> Composite Manager:")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
416
set (GETTEXT_COMPOSITE_MANAGER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
417
set (VERSION_COMPOSITE_MANAGER "1.0.3")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
418
set (PACKAGE_COMPOSITE_MANAGER "cd-Composite-Manager")
419
set (composite_managerdatadir "${pluginsdatadir}/Composite-Manager")
420
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Composite-Manager/data/Composite-Manager.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Composite-Manager/data/Composite-Manager.conf)
421
add_subdirectory (Composite-Manager)
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
422
423
############# DBUS #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
424
message (STATUS "> DBus:")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
425
message (STATUS " * Python:")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
426
find_program (PYTHON_EXECUTABLE python2)  # if python v3 is the default python interpreter (e.g. on ArchLinux), python2 program should exist and we have to use it...
427
if ("${PYTHON_EXECUTABLE}" STREQUAL "" OR NOT EXISTS ${PYTHON_EXECUTABLE})
428
	find_program (PYTHON_EXECUTABLE python)
429
endif()
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
430
EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; print sys.version" OUTPUT_VARIABLE PYTHON_VERSION)
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
431
if ("${PYTHON_VERSION}" STREQUAL "")
432
	message (STATUS "Could not find Python, won't install Python interface.")
433
	message (WARNING "This program is required to compile DBus applet with Python interface: python (version 2)")
434
	set (PROGRAMS_MISSING "${PROGRAMS_MISSING} python")
435
	set (with_python "no")
436
else()
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
437
	STRING (REGEX REPLACE "\n" "" PYTHON_VERSION ${PYTHON_VERSION})
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
438
	message (STATUS "   Python Version: ${PYTHON_VERSION}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
439
	message (STATUS "   Python executable program: ${PYTHON_EXECUTABLE}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
440
	GET_FILENAME_COMPONENT(DEBIAN_VERSION /etc/debian_version ABSOLUTE)
441
	if (EXISTS ${DEBIAN_VERSION})
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
442
		message (STATUS "   will use '--install-layout deb' with 'python setup.py install'")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
443
		set (DEBIAN_INSTALL_LAYOUT "--install-layout deb")
444
	endif()
445
	set (PYTHON_FOUND "TRUE")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
446
	set (with_python "yes")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
447
endif()
448
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
449
message (STATUS " * Ruby:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
450
# find_package(Ruby) found libs of ruby-dev but we only need a directory where we can install ruby libs.
451
find_program (RUBY_EXECUTABLE ruby)
1.1.21 by Matthieu Baerts
Import upstream version 3.0.2
452
EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print RbConfig::CONFIG['rubylibdir']"
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
453
	OUTPUT_VARIABLE RUBY_LIB_DIR)
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
454
message (STATUS "   Ruby library dir: ${RUBY_LIB_DIR}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
455
if ("${RUBY_LIB_DIR}" STREQUAL "" OR "${RUBY_LIB_DIR}" STREQUAL "nil")
456
	message (STATUS "Could not find ruby libs, won't install Ruby interface.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
457
	message (WARNING "This program is required to compile DBus applet with Ruby interface: ruby")
458
	set (PROGRAMS_MISSING "${PROGRAMS_MISSING} ruby")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
459
	set (with_ruby "no")
460
else()
1.1.21 by Matthieu Baerts
Import upstream version 3.0.2
461
	# /usr/lib/ruby/1.8 or /usr/lib/ruby/1.9.1
462
	string (REGEX REPLACE "lib/ruby/[0-9].[0-9]?.+" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
463
	string (REGEX REPLACE "${RUBY_LIB_DIR_INSTALL}" "" RUBY_LIB_DIR_INSTALL "${RUBY_LIB_DIR}")
464
	set (RUBY_LIB_DIR "${CMAKE_INSTALL_PREFIX}/${RUBY_LIB_DIR_INSTALL}")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
465
	message (STATUS "   will be installed in: ${RUBY_LIB_DIR}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
466
	set (RUBY_FOUND "TRUE")
467
	set (with_ruby "yes")
468
endif()
469
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
470
message (STATUS " * Mono:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
471
#find_package (Mono)
472
find_program (GMCS_EXECUTABLE gmcs)
473
if ("${GMCS_EXECUTABLE}" STREQUAL "" OR NOT EXISTS ${GMCS_EXECUTABLE})
474
	message (STATUS "Could not find Mono compiler gmcs, won't build Mono interface.")
475
	set (with_mono "no")
476
else()
477
	pkg_check_modules (MONO_PACKAGE glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0)
478
	if ("${MONO_PACKAGE_FOUND}" STREQUAL "")
479
		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.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
480
		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")
481
		set (MODULES_MISSING "${MODULES_MISSING} glib-sharp-2.0 ndesk-dbus-1.0 ndesk-dbus-glib-1.0")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
482
		set (with_mono "no")
483
	else()
1.1.10 by matttbe
Import upstream version 2.3.0~2
484
		set (MONO_FOUND "TRUE")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
485
		set (with_mono "yes")
486
	endif()
487
endif()
488
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
489
message (STATUS " * Vala:")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
490
# Valac is only required to convert vala files to C files.
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
491
#  So we can directly use produced files (c, h, vapi) without using valac.
492
set (with_vala "yes")
493
set (with_valac "no")
494
find_program (VALAC_EXE valac)
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
495
message (STATUS "   Path to valac: ${VALAC_EXE}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
496
497
if ("${WITH_VALA}" STREQUAL "no")
498
	set (with_vala "no")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
499
# Glib < 2.26
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
500
elseif (${GLIB_MAJOR} LESS 3 AND ${GLIB_MINOR} LESS 26)
501
	set (with_vala "no")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
502
elseif ( (NOT "${VALAC_EXE}" STREQUAL "VALAC_EXE-NOTFOUND")
503
	AND (EXISTS ${VALAC_EXE}) ) # now it works with 0.10 and 0.11 (= next 0.12) # $VALAC_EXE may be the correct path, even if valac is not installed !
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
504
	execute_process(COMMAND ${VALAC_EXE} "--version"
505
		OUTPUT_VARIABLE "VALA_VERSION")
506
	string(REPLACE "Vala" "" "VALA_VERSION" ${VALA_VERSION})
507
	string(STRIP ${VALA_VERSION} "VALA_VERSION")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
508
	message (STATUS "   Vala version: ${VALA_VERSION}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
509
510
	STRING (REGEX REPLACE "\\..*" "" VALA_MAJOR "${VALA_VERSION}")
511
	# message (STATUS "VALA_MAJOR : ${VALA_MAJOR}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
512
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
513
	STRING (REGEX REPLACE "[0-9]*\\.([^ ]+)" "\\1" VALA_MINOR "${VALA_VERSION}")  # 0.1.7 => 1.7
514
	STRING (REGEX REPLACE "\\.[0-9]*" "" VALA_MINOR "${VALA_MINOR}")
515
	# message (STATUS "VALA_MINOR : ${VALA_MINOR}")
516
517
	STRING (REGEX REPLACE ".*\\." "" VALA_NANO "${VALA_VERSION}")
518
	STRING (REGEX REPLACE "-.*" "" VALA_NANO "${VALA_NANO}")
519
	# message (STATUS "VALA_NANO  : ${VALA_NANO}")
520
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
521
	if (${VALA_MAJOR} GREATER 0 OR ${VALA_MINOR} GREATER 9) # vala >= 0.10 
522
		# AND (${VALA_MAJOR} LESS 1 AND ${VALA_MINOR} LESS 13)) # and <= 0.12
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
523
		message (STATUS "   Vala compiler OK (>= 0.10).")# and <= 0.12).")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
524
		set (VALAC_FOUND "TRUE")
525
		set (with_valac "yes")
526
	else()
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
527
		message (STATUS "   Vala compiler is too old (0.10 required) or too new (> 0.12), won't build Vala interface.")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
528
	endif()
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
529
else()
530
	message (STATUS "Could not find ValaC, won't build Vala interface with the version of your distribution.")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
531
	message (WARNING "This program is required to compile DBus applet with Vala interface: valac (version > 0.10)")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
532
	set (PROGRAMS_MISSING "${PROGRAMS_MISSING} valac")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
533
endif()
534
535
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
536
set (GETTEXT_DBUS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
537
set (VERSION_DBUS "1.2.2")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
538
set (PACKAGE_DBUS "cd-Dbus")
539
set (dbusdatadir "${pluginsdatadir}/Dbus")
540
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Dbus/data/Dbus.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Dbus/data/Dbus.conf)
541
add_subdirectory (Dbus)
542
543
############# DESKLET_RENDERING #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
544
message (STATUS "> Desklet Rendering:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
545
set (GETTEXT_DESKLET_RENDERING ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
546
set (VERSION_DESKLET_RENDERING "1.5.7")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
547
set (PACKAGE_DESKLET_RENDERING "cd-desklet-rendering")
548
set (desklet_renderingdatadir "${pluginsdatadir}/desklet-rendering")
549
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/desklet-rendering/data/desklet-rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/desklet-rendering/data/desklet-rendering.conf)
550
add_subdirectory (desklet-rendering)
551
552
############# DIALOG_RENDERING #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
553
message (STATUS "> Dialog Rendering:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
554
set (GETTEXT_DIALOG_RENDERING ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
555
set (VERSION_DIALOG_RENDERING "0.5.2")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
556
set (PACKAGE_DIALOG_RENDERING "cd-dialog-rendering")
557
set (dialog_renderingdatadir "${pluginsdatadir}/dialog-rendering")
558
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dialog-rendering/data/dialog-rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dialog-rendering/data/dialog-rendering.conf)
559
add_subdirectory (dialog-rendering)
560
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
561
############# DISKS #################
562
set (with_disks "no")
563
if ("${enable-disks}" STREQUAL "yes")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
564
	message (STATUS "> Disks:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
565
	set (GETTEXT_DISKS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
566
	set (VERSION_DISKS "0.0.6")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
567
	set (PACKAGE_DISKS "cd-disks")
568
	set (with_disks "yes")
569
	set (disksdatadir "${pluginsdatadir}/Disks")
570
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Disks/data/Disks.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Disks/data/Disks.conf)
571
	add_subdirectory ("Disks")
572
endif()
573
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
574
############# DND2SHARE #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
575
message (STATUS "> DND2Share:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
576
set (GETTEXT_DND2SHARE ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
577
set (VERSION_DND2SHARE "1.0.10")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
578
set (PACKAGE_DND2SHARE "cd-dnd2share")
579
set (dnd2sharedatadir "${pluginsdatadir}/dnd2share")
580
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dnd2share/data/dnd2share.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dnd2share/data/dnd2share.conf)
581
add_subdirectory (dnd2share)
582
583
############# DOCK RENDERING #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
584
message (STATUS "> Dock Rendering:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
585
set (GETTEXT_RENDERING ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
586
set (VERSION_RENDERING "1.5.10")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
587
set (PACKAGE_RENDERING "cd-rendering")
588
set (renderingdatadir "${pluginsdatadir}/rendering")
589
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dock-rendering/data/rendering.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dock-rendering/data/rendering.conf)
590
add_subdirectory (dock-rendering)
591
592
############# DONCKY #################
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
593
set (with_doncky "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
594
if ("${enable-doncky}" STREQUAL "yes")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
595
	message (STATUS "> Doncky:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
596
	set (GETTEXT_DONCKY ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
597
	set (VERSION_DONCKY "0.0.8")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
598
	set (PACKAGE_DONCKY "cd-doncky")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
599
	set (with_doncky "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
600
	set (donckydatadir "${pluginsdatadir}/Doncky")
601
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doncky/data/Doncky.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Doncky/data/Doncky.conf)
602
	add_subdirectory (Doncky)
603
endif()
604
605
############# DROP INDICATOR #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
606
message (STATUS "> Drop Indicator:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
607
set (GETTEXT_DROP_INDICATOR ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
608
set (VERSION_DROP_INDICATOR "1.1.6")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
609
set (PACKAGE_DROP_INDICATOR "cd-drop_indicator")
610
set (drop_indicatordatadir "${pluginsdatadir}/drop-indicator")
611
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/drop-indicator/data/drop_indicator.conf.in ${CMAKE_CURRENT_BINARY_DIR}/drop-indicator/data/drop_indicator.conf)
612
add_subdirectory (drop-indicator)
613
614
############# DUSTBIN #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
615
message (STATUS "> Dustbin:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
616
set (GETTEXT_DUSTBIN ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
617
set (VERSION_DUSTBIN "2.3.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
618
set (PACKAGE_DUSTBIN "cd-dustbin")
619
set (dustbinuserdirname "dustbin")
620
set (dustbindatadir "${pluginsdatadir}/dustbin")
621
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/dustbin/data/dustbin.conf.in ${CMAKE_CURRENT_BINARY_DIR}/dustbin/data/dustbin.conf)
622
add_subdirectory (dustbin)
623
624
############# FOLDERS #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
625
message (STATUS "> Folders:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
626
set (GETTEXT_FOLDERS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
627
set (VERSION_FOLDERS "0.2.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
628
set (PACKAGE_FOLDERS "cd-Folders")
629
set (foldersdatadir "${pluginsdatadir}/Folders")
630
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Folders/data/Folders.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Folders/data/Folders.conf)
631
add_subdirectory (Folders)
632
1.1.22 by Matthieu Baerts
Import upstream version 3.0.99.beta1
633
############# GLOBAL-MENU #################
634
set (with_global_menu "no")
635
if ("${enable-global-menu}" STREQUAL "yes" AND "${INDICATOR_OLD_NAMES}" STREQUAL "0" AND "${DBUSMENU_FOUND}" AND "${DBUSMENU_GTK_FOUND}")  # currently only supported with new name of the indicator module and with newer version of dbusmenu
636
	message (STATUS "> Global-Menu:")
637
	set (GETTEXT_GLOBAL_MENU ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
638
	set (VERSION_GLOBAL_MENU "0.1.2")
1.1.22 by Matthieu Baerts
Import upstream version 3.0.99.beta1
639
	set (PACKAGE_GLOBAL_MENU "cd-Global-Menu")
640
	set (with_global_menu "yes")
641
	set (global_menudatadir "${pluginsdatadir}/Global-Menu")
642
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Global-Menu/data/Global-Menu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Global-Menu/data/Global-Menu.conf)
643
	add_subdirectory (Global-Menu)
644
endif()
645
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
646
############# GMENU #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
647
message (STATUS "> GMenu:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
648
set (with_gmenu "no")
649
if (NOT "${enable-gmenu}" STREQUAL "no")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
650
	if ("${gtkversion}" STREQUAL "2")
651
		set (GMENU_MODULE libgnome-menu)
652
	else()
653
		set (GMENU_MODULE libgnome-menu)
654
		# set (GMENU_MODULE libgnome-menu-3.0) # TODO
655
	endif()
656
	pkg_check_modules (GMENU_PACKAGE ${GMENU_MODULE})
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
657
	if ("${GMENU_PACKAGE_FOUND}" STREQUAL "")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
658
		message (STATUS "Could not find ${GMENU_MODULE}; Cairo-Dock won't be built with GMenu applet.")
659
		message (WARNING "This module is required to compile GMenu applet: ${GMENU_MODULE}")
660
		set (MODULES_MISSING "${MODULES_MISSING} ${GMENU_MODULE}")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
661
	else()
662
		set (GETTEXT_GMENU ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
663
		set (VERSION_GMENU "1.1.11")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
664
		set (PACKAGE_GMENU "cd-GMenu")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
665
		set (with_gmenu "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
666
		set (gmenudatadir "${pluginsdatadir}/GMenu")
667
		configure_file (${CMAKE_CURRENT_SOURCE_DIR}/GMenu/data/GMenu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/GMenu/data/GMenu.conf)
668
		add_subdirectory ("GMenu")
669
	endif()
670
endif()
671
672
############# GNOME-INTEGRATION #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
673
message (STATUS "> Gnome-Integration:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
674
set (with_gnome_integration "no")
675
if (NOT "${enable-gnome-integration}" STREQUAL "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
676
	pkg_check_modules (GNOME_INTEGRATION gio-2.0)
677
	if ("${GNOME_INTEGRATION_FOUND}" STREQUAL "")
678
		message (STATUS "Could not find gio; Cairo-Dock won't be built with Gnome>=2.22 support.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
679
		message (STATUS "This module is required to compile Gnome-Integration applet: gio-2.0")
680
		set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} gio-2.0")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
681
	else()
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
682
		set (GETTEXT_GNOME_INTEGRATION ${GETTEXT_PLUGINS})
683
		set (VERSION_GNOME_INTEGRATION "1.0.4")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
684
		set (PACKAGE_GNOME_INTEGRATION "cd_gnome-integration")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
685
		set (with_gnome_integration "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
686
		set (gnome_integrationdatadir "${pluginsdatadir}/gnome-integration")
687
		add_subdirectory ("gnome-integration")
688
	endif()
689
endif()
690
691
############# GNOME-INTEGRATION-OLD #################
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
692
set (with_gnome_integration_old "no")
693
if ("${enable-old-gnome-integration}" STREQUAL "yes")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
694
	message (STATUS "> Gnome-Integration:")
695
	message (WARNING "This applet is deprecated")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
696
	pkg_check_modules (OLD_GNOME_INTEGRATION gnome-vfs-2.0 libgnomeui-2.0)
697
	if ("${OLD_GNOME_INTEGRATION_FOUND}" STREQUAL "")
698
		message (STATUS "Could not find gnome-vfs and/or gnomeui; Cairo-Dock won't be built with Gnome<2.22 support.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
699
		message (STATUS "These modules are required to compile Gnome-Integration-Old applet: gnome-vfs-2.0 libgnomeui-2.0")
700
		set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} gnome-vfs-2.0 libgnomeui-2.0")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
701
	else()
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
702
		set (GETTEXT_GNOME_INTEGRATION_OLD ${GETTEXT_PLUGINS})
703
		set (VERSION_GNOME_INTEGRATION_OLD "1.0.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
704
		set (PACKAGE_GNOME_INTEGRATION_OLD "cd_gnome-integration-old")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
705
		set (with_gnome_integration_old "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
706
		set (gnome_integration_olddatadir "${pluginsdatadir}/gnome-integration-old")
707
		add_subdirectory ("gnome-integration-old")
708
	endif()
709
endif()
710
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
711
############# ICON EFFECTS #################
712
message (STATUS "> Icon Effects:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
713
set (GETTEXT_ICON_EFFECTS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
714
set (VERSION_ICON_EFFECTS "1.2.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
715
set (PACKAGE_ICON_EFFECTS "cd-icon-effect")
716
set (icon_effectsdatadir "${pluginsdatadir}/icon-effect")
717
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/icon-effect/data/icon-effect.conf.in ${CMAKE_CURRENT_BINARY_DIR}/icon-effect/data/icon-effect.conf)
718
add_subdirectory (icon-effect)
719
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
720
############# IMPULSE #################
721
set (with_impulse "no")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
722
message (STATUS "> Impulse:")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
723
pkg_check_modules (LIBPULSE libpulse)
724
pkg_check_modules (FFTW3 fftw3)  # optional, not advised for distributions packages (it's not a small dependence...)
725
if ("${LIBPULSE_FOUND}" STREQUAL "")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
726
	message (STATUS "Could not find libpulse; Cairo-Dock won't be built with Impulse applet.")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
727
	message (WARNING "These modules are required to compile Impulse applet: libpulse (and fftw3 - optional)")
728
	set (MODULES_MISSING "${MODULES_MISSING} libpulse")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
729
else()
730
	set (GETTEXT_IMPULSE ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
731
	set (VERSION_IMPULSE "0.0.6")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
732
	set (PACKAGE_IMPULSE "cd-Impulse")
733
	set (with_impulse "yes")
734
	set (impulsedatadir "${pluginsdatadir}/Impulse")
735
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Impulse/data/Impulse.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Impulse/data/Impulse.conf)
736
	add_subdirectory (Impulse)
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
737
endif()
738
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
739
############# ILLUSION #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
740
message (STATUS "> Illusion:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
741
set (GETTEXT_ILLUSION ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
742
set (VERSION_ILLUSION "1.0.8")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
743
set (PACKAGE_ILLUSION "cd-illusion")
744
set (illusiondatadir "${pluginsdatadir}/illusion")
745
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/illusion/data/illusion.conf.in ${CMAKE_CURRENT_BINARY_DIR}/illusion/data/illusion.conf)
746
add_subdirectory (illusion)
747
748
############# KDE-INTEGRATION #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
749
message (STATUS "> KDE-Integration:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
750
set (with_kde_integration "no")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
751
set (with_kde_integration2 "no")
752
if ("${enable-kde-integration2}" STREQUAL "yes")
753
	#find_package(KDE4)
754
	find_package(Qt4)
755
	if (QT4_FOUND)
756
		message (STATUS " * Qt Includes: ${QT_INCLUDES}")
757
		message (STATUS " * Qt Definitions: ${QT_DEFINITIONS}")
758
		message (STATUS " * QtCore Library: ${QT_QTCORE_LIBRARY} / ${PACKAGE_LIBRARIES}")
759
	else()
760
		message (STATUS " * Qt unavailable")
761
	endif()
762
763
	find_path(KDECORE_INCLUDE_DIR "kdecore_export.h")
764
	find_library(KDECORE_LIBRARY NAMES "kdecore")
765
	GET_FILENAME_COMPONENT(KDECORE_LIBRARY ${KDECORE_LIBRARY} PATH)
766
767
	find_path(KIO_INCLUDE_DIR "kio_export.h" PATH_SUFFIXES "kio")
768
	find_library(KIO_LIBRARY NAMES "kio")
769
	GET_FILENAME_COMPONENT(KIO_LIBRARY ${KIO_LIBRARY} PATH)
770
771
	find_path(KDE_INCLUDE_DIR "KDirWatch" PATH_SUFFIXES "KDE")
772
773
	if (NOT "${KDECORE_LIBRARY}" STREQUAL "")
774
		message (STATUS " * KDECORE Dir: ${KDECORE_INCLUDE_DIR}")
775
		message (STATUS " * KDECORE Library: ${KDECORE_LIBRARY}")
776
	else()
777
		message (STATUS " * KDECORE unavailable")
778
	endif()
779
	if (NOT "${KIO_LIBRARY}" STREQUAL "")
780
		message (STATUS " * KIO Dir: ${KIO_INCLUDE_DIR}")
781
		message (STATUS " * KIO Library: ${KIO_LIBRARY}")
782
	else()
783
		message (STATUS " * KIO unavailable")
784
	endif()
785
	if (NOT "${KDE_LIBRARY}" STREQUAL "") ## always empty?
786
		message (STATUS " * KDE4 Dir: ${KDE_INCLUDE_DIR}")
787
		message (STATUS " * KDE4 Library: ${KDE_LIBRARY}")
788
	else()
789
		message (STATUS " * KDE4 unavailable")
790
	endif()
791
792
	if (QT4_FOUND
793
		 AND KDECORE_INCLUDE_DIR
794
		 AND KDECORE_LIBRARY
795
		 AND KIO_INCLUDE_DIR
796
		 AND KIO_LIBRARY
797
		 AND KDE_INCLUDE_DIR)
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
798
		message (STATUS "  KDE: OK")
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
799
		set (VERSION_KDE_INTEGRATION "0.0.4")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
800
		set (PACKAGE_KDE_INTEGRATION "cd_kde-integration")
801
		set (with_kde_integration2 "yes")
802
		set (kde_integrationdatadir "${pluginsdatadir}/kde-integration2")
803
		add_subdirectory ("kde-integration2")
804
	else()
805
		message (STATUS "Could not find kde libs; Cairo-Dock won't be built with KDE support.")
806
		message (STATUS "These libraries are required to compile KDE experimental applet: kdecore, kio, kde4")
807
		set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} kdecore, kio, kde4")
808
	endif()
809
elseif (NOT "${enable-kde-integration}" STREQUAL "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
810
	pkg_check_modules (KDE_INTEGRATION gio-2.0)
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
811
	message (STATUS "  KDE_INTEGRATION_FOUND: ${KDE_INTEGRATION_FOUND}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
812
	if (NOT KDE_INTEGRATION_FOUND)
813
		message (STATUS "Could not find gio; Cairo-Dock won't be built with KDE support.")
814
		message (STATUS "This module is required to compile KDE-Integration applet: gio-2.0")
815
		set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} gio-2.0")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
816
	else()
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
817
		set (GETTEXT_KDE_INTEGRATION ${GETTEXT_PLUGINS})
818
		set (VERSION_KDE_INTEGRATION "1.0.4")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
819
		set (PACKAGE_KDE_INTEGRATION "cd_kde-integration")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
820
		set (with_kde_integration "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
821
		set (kde_integrationdatadir "${pluginsdatadir}/kde-integration")
822
		add_subdirectory ("kde-integration")
823
	endif()
824
endif()
825
826
############# KEYBOARD_INDICATOR #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
827
message (STATUS "> Keyboard-Indicator:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
828
set (with_keyboard_indicator "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
829
pkg_check_modules (KEYBOARD_INDICATOR_PACKAGE libxklavier)
830
if ("${KEYBOARD_INDICATOR_PACKAGE_FOUND}" STREQUAL "")
831
	message (STATUS "Could not find libxklavier; Cairo-Dock won't be built with keyboard-indicator applet.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
832
	message (WARNING "This module is required to compile Keyboard-Indicator applet: libxklavier")
833
	set (MODULES_MISSING "${MODULES_MISSING} libxklavier")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
834
else()
835
	set (GETTEXT_KEYBOARD_INDICATOR ${GETTEXT_PLUGINS})
1.1.26 by Matthieu Baerts
Import upstream version 3.1.1
836
	set (VERSION_KEYBOARD_INDICATOR "1.1.9")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
837
	set (PACKAGE_KEYBOARD_INDICATOR "cd-keyboard-indicator")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
838
	set (with_keyboard_indicator "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
839
	set (keyboard_indicatordatadir "${pluginsdatadir}/keyboard-indicator")
840
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/keyboard-indicator/data/keyboard-indicator.conf.in ${CMAKE_CURRENT_BINARY_DIR}/keyboard-indicator/data/keyboard-indicator.conf)
841
	add_subdirectory ("keyboard-indicator")
842
endif()
843
844
############# LOGOUT #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
845
message (STATUS "> LogOut:")
846
pkg_check_modules (UPOWER upower-glib)  # useful for Powermanager too.
847
if (${UPOWER_FOUND})
848
	set (with_upower_support "yes")
849
else()
850
	set (with_upower_support "no")
851
	message (STATUS "Could not find upower-glib; LogOut and PowerManager plugin won't be built with UPower support.")
852
	message (WARNING "This module is required to compile LogOut and PowerManager applet with UPower support: upower-glib")
853
	set (MODULES_MISSING "${MODULES_MISSING} upower-glib")
854
endif()
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
855
set (GETTEXT_LOGOUT ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
856
set (VERSION_LOGOUT "2.0.3")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
857
set (PACKAGE_LOGOUT "cd-logout")
858
set (logoutdatadir "${pluginsdatadir}/logout")
859
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/logout/data/logout.conf.in ${CMAKE_CURRENT_BINARY_DIR}/logout/data/logout.conf)
860
add_subdirectory (logout)
861
862
############# MAIL #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
863
message (STATUS "> Mail:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
864
set (with_mail "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
865
# find the compilation flags
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
866
find_program (LIBETPAN_CONFIG_EXECUTABLE libetpan-config)
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
867
execute_process(
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
868
	COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --cflags
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
869
	OUTPUT_VARIABLE MAIL_PACKAGE_CFLAGS)
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
870
if (NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "" AND NOT "${MAIL_PACKAGE_CFLAGS}" STREQUAL "\n") # if there is a problem with the previous, we don't want to have a lot of errors
871
	STRING (REGEX REPLACE "\n" "" TMP_VARIABLE "${MAIL_PACKAGE_CFLAGS}") # to not skip the last option
872
	STRING (REGEX MATCHALL "(^| )-I[^ ]+( |$)" TMP_VARIABLE "${TMP_VARIABLE}") # first extract the "-I" options
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
873
	STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}")
874
	STRING (REGEX REPLACE " $" "" TMP_VARIABLE "${TMP_VARIABLE}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
875
	STRING (REGEX REPLACE "^ " "" TMP_VARIABLE "${TMP_VARIABLE}")
876
	STRING (REGEX REPLACE "  " " " TMP_VARIABLE "${TMP_VARIABLE}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
877
	STRING (REGEX REPLACE "-I([^ ]+)" "\\1" MAIL_PACKAGE_INCLUDE_DIRS "${TMP_VARIABLE}")  # then remove the "-I" string
878
endif()
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
879
# find the link flags
880
execute_process(
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
881
	COMMAND ${LIBETPAN_CONFIG_EXECUTABLE} --libs
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
882
	OUTPUT_VARIABLE MAIL_PACKAGE_LIBS)
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
883
if (NOT "${MAIL_PACKAGE_LIBS}" STREQUAL "")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
884
	STRING (REGEX REPLACE "\n" "" MAIL_PACKAGE_LIBS "${MAIL_PACKAGE_LIBS}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
885
	#   find the link libraries
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
886
	STRING (REGEX MATCHALL "(^| )-l[^ ]+( |$)" TMP_VARIABLE "${MAIL_PACKAGE_LIBS}") # extract the "-l" options (only if it's separated by two blank spaces or the end/beginning of the line => -L/usr/lib/x86_64-linux-gnu)
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
887
	STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
888
	STRING (REGEX REPLACE "^ " "" TMP_VARIABLE "${TMP_VARIABLE}")
889
	STRING (REGEX REPLACE "  " " " TMP_VARIABLE "${TMP_VARIABLE}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
890
	STRING (REGEX REPLACE " $" "" MAIL_PACKAGE_LIBRARIES "${TMP_VARIABLE}")
891
	#   find the link directories
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
892
	STRING (REGEX MATCHALL "(^| )-L[^ ]+( |$)" TMP_VARIABLE "${MAIL_PACKAGE_LIBS}") # extract the "-L" options
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
893
	STRING (REGEX REPLACE ";" "" TMP_VARIABLE "${TMP_VARIABLE}")
894
	STRING (REGEX REPLACE " $" "" TMP_VARIABLE "${TMP_VARIABLE}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
895
	STRING (REGEX REPLACE "^ " "" TMP_VARIABLE "${TMP_VARIABLE}")
896
	STRING (REGEX REPLACE "  " " " TMP_VARIABLE "${TMP_VARIABLE}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
897
	STRING (REGEX REPLACE "-L([^ ]+)" "\\1" MAIL_PACKAGE_LIBRARY_DIRS "${TMP_VARIABLE}")  # then remove the "-L" string
898
endif()
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
899
if ("${MAIL_PACKAGE_LIBS}" STREQUAL "")
900
	message (STATUS "warning : Could not find libetpan; Cairo-Dock won't be built with Mail applet.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
901
	message (WARNING "This module is required to compile Mail applet: libetpan")
902
	set (PROGRAMS_MISSING "${PROGRAMS_MISSING} libetpan-config")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
903
else()
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
904
	message (STATUS "  libetpan found. Using the following options:")
905
	message (STATUS "   Include directories: ${MAIL_PACKAGE_INCLUDE_DIRS}")
906
	message (STATUS "   Link directories: ${MAIL_PACKAGE_LIBRARY_DIRS}")
907
	message (STATUS "   Link libraries: ${MAIL_PACKAGE_LIBRARIES}")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
908
	set (GETTEXT_MAIL ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
909
	set (VERSION_MAIL "1.0.13")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
910
	set (PACKAGE_MAIL "cd-mail")
911
	set (maildatadir "${pluginsdatadir}/mail")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
912
	set (with_mail "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
913
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/mail/data/mail.conf.in ${CMAKE_CURRENT_BINARY_DIR}/mail/data/mail.conf)
914
	add_subdirectory ("mail")
915
endif()
916
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
917
############# MEMENU #################
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
918
set (with_me_menu "no")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
919
if ("${INDICATOR_NEW_VERSION}" STREQUAL "1" AND NOT "${enable-memenu}" STREQUAL "yes")
920
	message (STATUS "> MeMenu: this applet has been automatically merged with Messaging-Menu")  # oneiric or newer
921
elseif ("${with_indicator}" STREQUAL "yes" AND "${IDO_FOUND}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
922
	message (STATUS "> MeMenu:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
923
	set (GETTEXT_MEMENU ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
924
	set (VERSION_MEMENU "1.0.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
925
	set (PACKAGE_MEMENU "cd-MeMenu")
926
	set (memenudatadir "${pluginsdatadir}/MeMenu")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
927
	set (with_me_menu "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
928
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/MeMenu/data/MeMenu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/MeMenu/data/MeMenu.conf)
929
	add_subdirectory (MeMenu)
930
endif()
931
932
############# MESSAGING_MENU #################
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
933
set (with_messaging_menu "no")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
934
if ("${with_indicator}" STREQUAL "yes") 
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
935
	message (STATUS "> Messaging-Menu:")
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
936
	if ("${with_indicator3}" STREQUAL "yes"
937
		AND ${INDICATOR_MAJOR} GREATER 12
938
		OR (${INDICATOR_MAJOR} EQUAL 12 AND ${INDICATOR_MINOR} GREATER 9))
939
		set (INDICATOR_MESSAGES_12_10 1)  # Messaging Menu has been rewritten in Quantal
940
	endif()
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
941
	set (GETTEXT_MESSAGING_MENU ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
942
	set (VERSION_MESSAGING_MENU "1.0.6")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
943
	set (PACKAGE_MESSAGING_MENU "cd-Messaging-Menu")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
944
	set (with_messaging_menu "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
945
	set (messaging_menudatadir "${pluginsdatadir}/Messaging-Menu")
946
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Messaging-Menu/data/Messaging-Menu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Messaging-Menu/data/Messaging-Menu.conf)
947
	add_subdirectory (Messaging-Menu)
948
endif()
949
950
############# MOTION BLUR #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
951
message (STATUS "> Motion Blur:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
952
set (GETTEXT_MOTION_BLUR ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
953
set (VERSION_MOTION_BLUR "1.0.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
954
set (PACKAGE_MOTION_BLUR "cd-motion_blur")
955
set (motion_blurdatadir "${pluginsdatadir}/motion-blur")
956
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/motion-blur/data/motion_blur.conf.in ${CMAKE_CURRENT_BINARY_DIR}/motion-blur/data/motion_blur.conf)
957
add_subdirectory (motion-blur)
958
959
############# MUSICPLAYER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
960
message (STATUS "> MusicPlayer:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
961
set (GETTEXT_MUSICPLAYER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
962
set (VERSION_MUSICPLAYER "2.0.3")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
963
set (PACKAGE_MUSICPLAYER "cd-musicPlayer")
964
set (musicplayerdatadir "${pluginsdatadir}/musicPlayer")
965
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/musicPlayer/data/musicPlayer.conf.in ${CMAKE_CURRENT_BINARY_DIR}/musicPlayer/data/musicPlayer.conf)
966
add_subdirectory (musicPlayer)
967
968
############# NETSPEED #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
969
message (STATUS "> NetSpeed:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
970
set (GETTEXT_NETSPEED ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
971
set (VERSION_NETSPEED "1.2.11")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
972
set (PACKAGE_NETSPEED "cd-netspeed")
973
set (netspeeddatadir "${pluginsdatadir}/netspeed")
974
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/netspeed/data/netspeed.conf.in ${CMAKE_CURRENT_BINARY_DIR}/netspeed/data/netspeed.conf)
975
add_subdirectory (netspeed)
976
977
############# NETWORK_MONITOR #################
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
978
set (with_network_monitor "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
979
if ("${enable-network-monitor}" STREQUAL "yes")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
980
	message (STATUS "> Network Monitor:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
981
	set (GETTEXT_NETWORK_MONITOR ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
982
	set (VERSION_NETWORK_MONITOR "0.2.9")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
983
	set (PACKAGE_NETWORK_MONITOR "cd-network-monitor")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
984
	set (with_network_monitor "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
985
	set (network_monitordatadir "${pluginsdatadir}/Network-Monitor")
986
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Network-Monitor/data/Network-Monitor.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Network-Monitor/data/Network-Monitor.conf)
987
	add_subdirectory (Network-Monitor)
988
endif()
989
990
############# POWERMANAGER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
991
message (STATUS "> PowerManager:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
992
set (GETTEXT_POWERMANAGER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
993
set (VERSION_POWERMANAGER "1.3.11")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
994
set (PACKAGE_POWERMANAGER "cd-powermanager")
995
set (powermanagerdatadir "${pluginsdatadir}/powermanager")
996
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/powermanager/data/powermanager.conf.in ${CMAKE_CURRENT_BINARY_DIR}/powermanager/data/powermanager.conf)
997
add_subdirectory (powermanager)
998
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
999
############# PRINTERS_MENU #################
1000
set (with_printers_menu "no")
1001
if ("${with_indicator3}" STREQUAL "yes") # then ${INDICATOR_*} are defined
1002
if (${INDICATOR_MAJOR} GREATER 0 # >= 1.0.0 (now 12.10.1)
1003
		OR ${INDICATOR_MINOR} GREATER 4 # >= 0.5.0
1004
		OR (${INDICATOR_MINOR} EQUAL 4 AND ${INDICATOR_NANO} GREATER 89)) # min 0.4.90
1005
	message (STATUS "> Printers-Menu:")
1006
	set (GETTEXT_PRINTERS_MENU ${GETTEXT_PLUGINS})
1007
	set (VERSION_PRINTERS_MENU "1.0.1")
1008
	set (PACKAGE_PRINTERS_MENU "cd-Printers-Menu")
1009
	set (with_printers_menu "yes")
1010
	set (printers_menudatadir "${pluginsdatadir}/Printers-Menu")
1011
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Printers-Menu/data/Printers-Menu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Printers-Menu/data/Printers-Menu.conf)
1012
	add_subdirectory (Printers-Menu)
1013
endif()
1014
endif()
1015
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1016
############# QUICK BROWSER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1017
message (STATUS "> Quick Browser:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1018
set (GETTEXT_QUICK_BROWSER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1019
set (VERSION_QUICK_BROWSER "1.0.12")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1020
set (PACKAGE_QUICK_BROWSER "cd-quick-browser")
1021
set (quick_browserdatadir "${pluginsdatadir}/quick_browser")
1022
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/quick-browser/data/quick-browser.conf.in ${CMAKE_CURRENT_BINARY_DIR}/quick-browser/data/quick-browser.conf)
1023
add_subdirectory (quick-browser)
1024
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1025
############# RECENT-EVENTS #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1026
message (STATUS "> Recent-Events:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1027
set (with_recent_events "no")
1028
pkg_check_modules (RECENT_EVENTS zeitgeist-1.0)
1029
if ("${RECENT_EVENTS_FOUND}" STREQUAL "")
1030
	message (STATUS "Could not find libzeitgeist; Cairo-Dock won't be built with Zeitgeist support.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1031
	message (WARNING "This module is required to compile Recent-Events applet: zeitgeist-1.0")
1032
	set (MODULES_MISSING "${MODULES_MISSING} zeitgeist-1.0")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1033
else()
1034
	set (GETTEXT_RECENT_EVENTS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1035
	set (VERSION_RECENT_EVENTS "1.0.3")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1036
	set (PACKAGE_RECENT_EVENTS "cd-Recent-Events")
1037
	set (with_recent_events "yes")
1038
	set (recent_eventsdatadir "${pluginsdatadir}/Recent-Events")
1039
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Recent-Events/data/Recent-Events.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Recent-Events/data/Recent-Events.conf)
1040
	add_subdirectory ("Recent-Events")
1041
endif()
1042
1043
############# REMOTE_CONTROL #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1044
message (STATUS "> Remote Control:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1045
set (GETTEXT_REMOTE_CONTROL ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1046
set (VERSION_REMOTE_CONTROL "1.0.2")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1047
set (PACKAGE_REMOTE_CONTROL "cd-Remote-Control")
1048
set (remote_controldatadir "${pluginsdatadir}/Remote-Control")
1049
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Remote-Control/data/Remote-Control.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Remote-Control/data/Remote-Control.conf)
1050
add_subdirectory (Remote-Control)
1051
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1052
############# RSSREADER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1053
message (STATUS "> RSSreader:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1054
set (GETTEXT_RSS_READER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1055
set (VERSION_RSS_READER "1.0.7")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1056
set (PACKAGE_RSS_READER "cd-rssreader")
1057
set (rss_readerdatadir "${pluginsdatadir}/RSSreader")
1058
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/RSSreader/data/RSSreader.conf.in ${CMAKE_CURRENT_BINARY_DIR}/RSSreader/data/RSSreader.conf)
1059
add_subdirectory (RSSreader)
1060
1061
############# SCOOBY_DO #################
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1062
set (with_scooby_do "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1063
if ("${enable-scooby-do}" STREQUAL "yes")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1064
	message (STATUS "> Scooby-Do:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1065
	set (GETTEXT_SCOOBY_DO ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1066
	set (VERSION_SCOOBY_DO "0.1.3")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1067
	set (PACKAGE_SCOOBY_DO "cd-scooby-do")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1068
	set (with_scooby_do "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1069
	set (scooby_dodatadir "${pluginsdatadir}/Scooby-Do")
1070
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Scooby-Do/data/Scooby-Do.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Scooby-Do/data/Scooby-Do.conf)
1071
	add_subdirectory (Scooby-Do)
1072
endif()
1073
1074
############# SHORTCUTS #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1075
message (STATUS "> Shortcuts:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1076
set (GETTEXT_SHORTCUTS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1077
set (VERSION_SHORTCUTS "1.3.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1078
set (PACKAGE_SHORTCUTS "cd-shortcuts")
1079
set (shortcutsdatadir "${pluginsdatadir}/shortcuts")
1080
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/shortcuts/data/shortcuts.conf.in ${CMAKE_CURRENT_BINARY_DIR}/shortcuts/data/shortcuts.conf)
1081
add_subdirectory (shortcuts)
1082
1083
############# SHOW DESKTOP #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1084
message (STATUS "> ShowDesktop:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1085
set (with_xrandr "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1086
pkg_check_modules (SHOW_DESKTOP_XRANDR xrandr)
1087
if ("${SHOW_DESKTOP_XRANDR_FOUND}" STREQUAL "")
1088
	message (STATUS "Could not find xrandr; ShowDesktop won't be built with screen resolution abilities.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1089
	message (WARNING "This module is required to compile ShowDesktop applet with xRandr support: xrandr")
1090
	set (MODULES_MISSING "${MODULES_MISSING} xrandr")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1091
	set (with_xrandr "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1092
endif()
1093
set (GETTEXT_SHOW_DESKTOP ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1094
set (VERSION_SHOW_DESKTOP "1.2.8")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1095
set (PACKAGE_SHOW_DESKTOP "cd-showDesktop")
1096
set (show_desktopdatadir "${pluginsdatadir}/showDesktop")
1097
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/showDesktop/data/showDesktop.conf.in ${CMAKE_CURRENT_BINARY_DIR}/showDesktop/data/showDesktop.conf)
1098
add_subdirectory (showDesktop)
1099
1100
############# SHOW MOUSE #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1101
message (STATUS "> Show Mouse:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1102
set (GETTEXT_SHOW_MOUSE ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1103
set (VERSION_SHOW_MOUSE "1.0.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1104
set (PACKAGE_SHOW_MOUSE "cd-show_mouse")
1105
set (show_mousedatadir "${pluginsdatadir}/show_mouse")
1106
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/show-mouse/data/show_mouse.conf.in ${CMAKE_CURRENT_BINARY_DIR}/show-mouse/data/show_mouse.conf)
1107
add_subdirectory (show-mouse)
1108
1109
############# SLIDER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1110
message (STATUS "> Slider:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1111
set (with_exif "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1112
pkg_check_modules (EXIF libexif)
1113
if ("${EXIF_FOUND}" STREQUAL "")
1114
	message (STATUS "Could not find libexif; Slider won't be able to rotate the images accordingly to their exif data.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1115
	message (WARNING "This module is required to compile Slider applet with Exif support: libexif")
1116
	set (MODULES_MISSING "${MODULES_MISSING} libexif")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1117
	set (with_exif "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1118
endif()
1119
set (GETTEXT_SLIDER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1120
set (VERSION_SLIDER "2.0.14")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1121
set (PACKAGE_SLIDER "cd-slider")
1122
set (sliderdatadir "${pluginsdatadir}/slider")
1123
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/slider/data/slider.conf.in ${CMAKE_CURRENT_BINARY_DIR}/slider/data/slider.conf)
1124
add_subdirectory (slider)
1125
1126
############# STACK #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1127
message (STATUS "> Stack:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1128
set (GETTEXT_STACK ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1129
set (VERSION_STACK "0.3.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1130
set (PACKAGE_STACK "cd-stack")
1131
set (stackdatadir "${pluginsdatadir}/stack")
1132
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/stack/data/stack.conf.in ${CMAKE_CURRENT_BINARY_DIR}/stack/data/stack.conf)
1133
add_subdirectory (stack)
1134
1135
############# STATUS NOTIFIER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1136
message (STATUS "> Status Notifier:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1137
if ("${DBUSMENU_GTK_FOUND}" STREQUAL "")
1138
	message (STATUS "Could not find Status-Notifier libs; Cairo-Dock won't be built with Status-Notifier support.")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1139
	message (WARNING "This module is required to compile Status Notifier applet: ${DBUSMENU_GTK_MODULE}(-0.4)")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1140
	# set (MODULES_MISSING "${MODULES_MISSING} dbusmenu-gtk(-0.4)") # it should already be in the list.
1141
	set (with_status_notifier "no")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1142
else()
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
1143
	if ("${force_indicator_applicationadded_have_hint}" STREQUAL "yes")
1144
		set (INDICATOR_APPLICATIONADDED_HAS_HINT 1)
1145
	elseif ("${force_indicator_applicationadded_have_hint}" STREQUAL "no")
1146
		set (INDICATOR_APPLICATIONADDED_HAS_HINT 0)
1147
	endif()
1.1.26 by Matthieu Baerts
Import upstream version 3.1.1
1148
	message (STATUS "  Used old DBus name = ${INDICATOR_OLD_NAMES}")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
1149
	message (STATUS "  ApplicationAdded signal has 'Hint' = ${INDICATOR_APPLICATIONADDED_HAS_HINT}")
1.1.26 by Matthieu Baerts
Import upstream version 3.1.1
1150
	message (STATUS "  ApplicationAdded signal has 'Title' = ${INDICATOR_APPLICATIONADDED_HAS_TITLE}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1151
	set (GETTEXT_STATUS_NOTIFIER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1152
	set (VERSION_STATUS_NOTIFIER "0.1.8")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1153
	set (PACKAGE_STATUS_NOTIFIER "cd-status-notifier")
1154
	set (with_status_notifier "yes")
1155
	set (status_notifierdatadir "${pluginsdatadir}/Status-Notifier")
1156
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Status-Notifier/data/Status-Notifier.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Status-Notifier/data/Status-Notifier.conf)
1157
	add_subdirectory (Status-Notifier)
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1158
endif()
1159
1160
############# SWITCHER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1161
message (STATUS "> Switcher:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1162
set (GETTEXT_SWITCHER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1163
set (VERSION_SWITCHER "2.1.11")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1164
set (PACKAGE_SWITCHER "cd-switcher")
1165
set (switcherdatadir "${pluginsdatadir}/switcher")
1166
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/switcher/data/switcher.conf.in ${CMAKE_CURRENT_BINARY_DIR}/switcher/data/switcher.conf)
1167
add_subdirectory (switcher)
1168
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1169
############# SYNC_MENU #################
1.1.26 by Matthieu Baerts
Import upstream version 3.1.1
1170
set (with_sync_menu "no")
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1171
if ("${with_indicator3}" STREQUAL "yes") # then ${INDICATOR_*} are defined
1172
if (${INDICATOR_MAJOR} GREATER 12 # > 12.0.0
1173
		OR (${INDICATOR_MAJOR} EQUAL 12 AND ${INDICATOR_MINOR} GREATER 9))  # >= 12.10.0 (now 12.10.1)
1174
	message (STATUS "> Sync-Menu:")
1175
	set (GETTEXT_SYNC_MENU ${GETTEXT_PLUGINS})
1176
	set (VERSION_SYNC_MENU "0.0.2")
1177
	set (PACKAGE_SYNC_MENU "cd-Sync-Menu")
1178
	set (with_sync_menu "yes")
1179
	set (sync_menudatadir "${pluginsdatadir}/Sync-Menu")
1180
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Sync-Menu/data/Sync-Menu.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Sync-Menu/data/Sync-Menu.conf)
1181
	add_subdirectory (Sync-Menu)
1182
endif()
1183
endif()
1184
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1185
############# SYSTEM MONITOR #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1186
message (STATUS "> System Monitor:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1187
set (with_sensors "yes")
1188
find_package (Sensors)
1189
if (NOT "${SENSORS_FOUND}" STREQUAL "TRUE")
1190
	message (STATUS "Could not find libsensors; System-Monitor won't be able to monitor fan speed and CPU temperature.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1191
	message (WARNING "This package is required to compile System Monitor applet with Sensors support: sensors")
1192
	set (PROGRAMS_MISSING "${PROGRAMS_MISSING} sensors")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1193
	set (with_sensors "no")
1194
endif()
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1195
set (GETTEXT_SYSTEM_MONITOR ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1196
set (VERSION_SYSTEM_MONITOR "1.0.13")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1197
set (PACKAGE_SYSTEM_MONITOR "cd-system-monitor")
1198
set (system_monitordatadir "${pluginsdatadir}/System-monitor")
1199
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/System-Monitor/data/System-Monitor.conf.in ${CMAKE_CURRENT_BINARY_DIR}/System-Monitor/data/System-Monitor.conf)
1200
add_subdirectory (System-Monitor)
1201
1202
############# SYSTRAY #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1203
message (STATUS "> Systray:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1204
set (GETTEXT_SYSTRAY ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1205
set (VERSION_SYSTRAY "0.2.6")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1206
set (PACKAGE_SYSTRAY "cd-systray")
1207
set (systraydatadir "${pluginsdatadir}/systray")
1208
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/systray/data/systray.conf.in ${CMAKE_CURRENT_BINARY_DIR}/systray/data/systray.conf)
1209
add_subdirectory (systray)
1210
1211
############# TERMINAL #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1212
message (STATUS "> Terminal:")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1213
if ("${gtkversion}" STREQUAL "2")
1214
	set (TERMINAL_MODULE vte)
1215
else()
1216
	set (TERMINAL_MODULE vte-2.90)
1217
endif()
1218
pkg_check_modules (TERMINAL_PACKAGE ${TERMINAL_MODULE})
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1219
if ("${TERMINAL_PACKAGE_FOUND}" STREQUAL "")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1220
	message (STATUS "Could not find ${TERMINAL_MODULE}; Cairo-Dock won't be built with terminal applet.")
1221
	message (WARNING "This module is required to compile Terminal applet: ${TERMINAL_MODULE}")
1222
	set (MODULES_MISSING "${MODULES_MISSING} ${TERMINAL_MODULE}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1223
	set (with_terminal "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1224
else()
1225
	set (GETTEXT_TERMINAL ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1226
	set (VERSION_TERMINAL "1.0.14")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1227
	set (PACKAGE_TERMINAL "cd-terminal")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1228
	set (with_terminal "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1229
	set (terminaldatadir "${pluginsdatadir}/terminal")
1230
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/terminal/data/terminal.conf.in ${CMAKE_CURRENT_BINARY_DIR}/terminal/data/terminal.conf)
1231
	add_subdirectory (terminal)
1232
endif()
1233
1.1.7 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~2
1234
############# TOMBOY #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1235
message (STATUS "> Tomboy:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1236
set (GETTEXT_TOMBOY ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1237
set (VERSION_TOMBOY "1.3.5")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1238
set (PACKAGE_TOMBOY "cd-tomboy")
1239
set (tomboydatadir "${pluginsdatadir}/tomboy")
1240
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/tomboy/data/tomboy.conf.in ${CMAKE_CURRENT_BINARY_DIR}/tomboy/data/tomboy.conf)
1241
add_subdirectory (tomboy)
1242
1243
############# TOONS #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1244
message (STATUS "> Toons:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1245
set (GETTEXT_TOONS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1246
set (VERSION_TOONS "1.0.14")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1247
set (PACKAGE_TOONS "cd-Toons")
1248
set (toonsdatadir "${pluginsdatadir}/Toons")
1249
set (toonsuserdirname "Toons")
1250
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Toons/data/Toons.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Toons/data/Toons.conf)
1251
add_subdirectory (Toons)
1252
1253
############# WEATHER #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1254
message (STATUS "> Weather:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1255
set (GETTEXT_WEATHER ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1256
set (VERSION_WEATHER "1.2.15")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1257
set (PACKAGE_WEATHER "cd-weather")
1258
set (weatherdatadir "${pluginsdatadir}/weather")
1259
set (weatheruserdirname "weather")
1260
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/weather/data/weather.conf.in ${CMAKE_CURRENT_BINARY_DIR}/weather/data/weather.conf)
1261
add_subdirectory (weather)
1262
1263
############# WEBLETS #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1264
message (STATUS "> Weblets:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1265
set (with_weblets "no")
1266
if (NOT "${enable-weblets}" STREQUAL "no")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1267
	if ("${gtkversion}" STREQUAL "2")
1268
		set (WEBKIT_MODULE webkit-1.0)
1269
	else()
1270
		set (WEBKIT_MODULE webkitgtk-3.0)
1271
	endif()
1272
	pkg_check_modules (WEBKIT ${WEBKIT_MODULE})
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1273
	if ("${WEBKIT_FOUND}" STREQUAL "")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1274
		message (STATUS "Could not find ${WEBKIT_MODULE}; Cairo-Dock won't be built with Weblets applet.")
1275
		message (WARNING "This module is required to compile Weblets applet: ${WEBKIT_MODULE}")
1276
		set (MODULES_MISSING "${MODULES_MISSING} ${WEBKIT_MODULE}")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1277
	else()
1278
		set (GETTEXT_WEBLETS ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1279
		set (VERSION_WEBLETS "0.0.14")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1280
		set (PACKAGE_WEBLETS "cd-weblets")
1281
		set (webletsdatadir "${pluginsdatadir}/weblets")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1282
		set (with_weblets "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1283
		configure_file (${CMAKE_CURRENT_SOURCE_DIR}/weblets/data/weblets.conf.in ${CMAKE_CURRENT_BINARY_DIR}/weblets/data/weblets.conf)
1284
		add_subdirectory ("weblets")
1285
	endif()
1286
endif()
1287
1288
############# WIFI #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1289
message (STATUS "> WiFi:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1290
set (GETTEXT_WIFI ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1291
set (VERSION_WIFI "1.3.2")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1292
set (PACKAGE_WIFI "cd-wifi")
1293
set (wifidatadir "${pluginsdatadir}/wifi")
1294
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/wifi/data/wifi.conf.in ${CMAKE_CURRENT_BINARY_DIR}/wifi/data/wifi.conf)
1295
add_subdirectory (wifi)
1296
1297
############# XFCE-INTEGRATION #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1298
message (STATUS "> XFCE-Integration:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1299
set (with_xfce_integration "no")
1300
if (NOT "${enable-xfce-integration}" STREQUAL "no")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1301
	pkg_check_modules (XFCE_INTEGRATION_THUNAR QUIET thunar-vfs-1) # thunar-vfs is not used if gvfs (gio) is available
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1302
	pkg_check_modules (XFCE_INTEGRATION_GVFS gio-2.0)
1303
	if ("${XFCE_INTEGRATION_THUNAR_FOUND}" STREQUAL "" AND "${XFCE_INTEGRATION_GVFS_FOUND}" STREQUAL "")
1304
		message (STATUS "Could find neither thunar-vfs or libgio-2.0; Cairo-Dock won't be built with XFCE support.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1305
		message (STATUS "This module is required to compile XFCE-Integration applet: gio-2.0 (or thunar-vfs-1)")
1306
		set (MODULES_INTEGRATION_MISSING "${MODULES_INTEGRATION_MISSING} gio-2.0")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1307
	else()
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1308
		set (GETTEXT_XFCE_INTEGRATION ${GETTEXT_PLUGINS})
1309
		set (VERSION_XFCE_INTEGRATION "1.0.4")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1310
		set (PACKAGE_XFCE_INTEGRATION "cd_xfce-integration")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1311
		set (with_xfce_integration "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1312
		set (xfce_integrationdatadir "${pluginsdatadir}/xfce-integration")
1313
		add_subdirectory ("xfce-integration")
1314
	endif()
1315
endif()
1316
1317
############# XGAMMA #################
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1318
message (STATUS "> XGamma:")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1319
pkg_check_modules (XGAMMA_PACKAGE x11 xxf86vm)
1320
if ("${XGAMMA_PACKAGE_FOUND}" STREQUAL "")
1321
	message (STATUS "Could not find xxf86vm; Cairo-Dock won't be built with Xgamma applet.")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1322
	message (WARNING "These modules are required to compile XGamma applet: x11 and xxf86vm")
1323
	set (MODULES_MISSING "${MODULES_MISSING} x11 xxf86vm")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1324
	set (with_xgamma "no")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1325
else()
1326
	set (GETTEXT_XGAMMA ${GETTEXT_PLUGINS})
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1327
	set (VERSION_XGAMMA "1.2.4")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1328
	set (PACKAGE_XGAMMA "cd-Xgamma")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1329
	set (with_xgamma "yes")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1330
	set (xgammadatadir "${pluginsdatadir}/Xgamma")
1331
	configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Xgamma/data/Xgamma.conf.in ${CMAKE_CURRENT_BINARY_DIR}/Xgamma/data/Xgamma.conf)
1332
	add_subdirectory ("Xgamma")
1333
endif()
1334
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1335
message ("")
1336
message (STATUS "===============")
1337
message (STATUS "Language build:")
1338
message (STATUS "===============")
1339
message ("")
1.1.5 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0beta4
1340
add_subdirectory (po)
1.1.6 by Matthieu Baerts (matttbe)
Import upstream version 2.2.0~0rc1
1341
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1342
message ("")
1343
message (STATUS "===============")
1344
message (STATUS "Plug-ins build:")
1345
message (STATUS "===============")
1346
message ("")
1.1.10 by matttbe
Import upstream version 2.3.0~2
1347
message (STATUS "Stable:")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
1348
message (STATUS " Integration plug-ins:")
1349
message (STATUS " - with Gnome support:             ${with_gnome_integration}")
1350
message (STATUS " - with KDE support:               ${with_kde_integration}")
1351
message (STATUS " - with XFCE support:              ${with_xfce_integration}")
1352
message (STATUS " Plug-ins:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1353
message (STATUS " - with Alsa-Mixer applet:         ${with_alsa}")
1354
message (STATUS " - with GMenu applet:              ${with_gmenu}")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
1355
message (STATUS " - with Impulse applet:            ${with_impulse}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1356
message (STATUS " - with Keyboard-indicator applet: ${with_keyboard_indicator}")
1357
message (STATUS " - with Mail applet:               ${with_mail}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1358
if (NOT "${INDICATOR_NEW_VERSION}" STREQUAL "1" OR "${enable-memenu}" STREQUAL "yes")  # oneiric or newer
1359
message (STATUS " - with Me-Menu applet applet:     ${with_me_menu}")
1.1.13 by Matthieu Baerts
Import upstream version 2.4.0~1
1360
endif()
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1361
message (STATUS " - with Messaging-Menu applet:     ${with_messaging_menu}")
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1362
message (STATUS " - with Printers-Menu applet:      ${with_printers_menu}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1363
message (STATUS " - with Recent-Events applet:      ${with_recent_events}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1364
message (STATUS " - with Status-Notifier applet:    ${with_status_notifier}")
1.1.25 by Matthieu Baerts
Import upstream version 3.1.0
1365
message (STATUS " - with Sync-Menu applet:          ${with_sync_menu}")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1366
message (STATUS " - with Terminal applet:           ${with_terminal}")
1367
message (STATUS " - with Weblets applet:            ${with_weblets}")
1368
message (STATUS " - with Xgamma applet:             ${with_xgamma}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1369
message (STATUS "Add On:")
1370
message (STATUS " - with Sound-Menu support:        ${with_soundmenu}")
1371
message (STATUS " - with Screen Resolution support: ${with_xrandr}")
1372
message (STATUS " - with Sensors support:           ${with_sensors}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1373
message (STATUS " - with UPower support:            ${with_upower_support}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1374
message (STATUS " - with iCal support:              ${with_ical}")
1375
message (STATUS "Third Party Interfaces:")
1.1.9 by Matthieu Baerts (matttbe)
Import upstream version 2.3.0~1
1376
message (STATUS " - with Python interface:          ${with_python}")
1377
message (STATUS " - with Ruby interface:            ${with_ruby}")
1378
message (STATUS " - with Mono interface:            ${with_mono}")
1379
message (STATUS " - with Vala interface:            ${with_vala}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1380
message (STATUS " - with Vala Translator (valac):   ${with_valac}")
1.1.10 by matttbe
Import upstream version 2.3.0~2
1381
message (STATUS "Unstable:")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1382
message (STATUS " - with Global-Menu applet:        ${with_global_menu}")
1.1.10 by matttbe
Import upstream version 2.3.0~2
1383
message (STATUS " - with Disks applet:              ${with_disks}")
1384
message (STATUS " - with Doncky applet:             ${with_doncky}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1385
message (STATUS " - with KDE experimental support:  ${with_kde_integration2}")
1.1.10 by matttbe
Import upstream version 2.3.0~2
1386
message (STATUS " - with Network-Monitor applet:    ${with_network_monitor}")
1387
message (STATUS " - with Scooby-Do applet:          ${with_scooby_do}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1388
message (STATUS "Deprecated:")
1.1.10 by matttbe
Import upstream version 2.3.0~2
1389
message (STATUS " - with old Gnome support:         ${with_gnome_integration_old}")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1390
1391
if (NOT "${MODULES_MISSING}" STREQUAL "")
1392
	message ("")
1393
	message (STATUS "WARNING: It seems that one (or more) module(s) is (are) missing:${MODULES_MISSING}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1394
	message (STATUS "It can be interesting to install them (especially if you're a maintainer of Cairo-Dock's packages).")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1395
endif ()
1396
1397
if (NOT "${PROGRAMS_MISSING}" STREQUAL "")
1398
	message ("")
1399
	message (STATUS "WARNING: It seems that one (or more) program(s) or package(s) is (are) missing:${PROGRAMS_MISSING}")
1.1.18 by Matthieu Baerts (matttbe)
Import upstream version 3.0.0.0beta1
1400
	message (STATUS "It can be interesting to install them (especially if you're a maintainer of Cairo-Dock's packages).")
1.1.12 by Matthieu Baerts
Import upstream version 2.4.0~0beta2
1401
endif ()
1402
1403
if (NOT "${MODULES_INTEGRATION_MISSING}" STREQUAL "")
1404
	message ("")
1405
	message (STATUS "WARNING: It seems that one (or more) module(s) for the integration with the system is (are) missing:${MODULES_INTEGRATION_MISSING}")
1406
	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.")
1407
endif ()
1.1.10 by matttbe
Import upstream version 2.3.0~2
1408
message ("")