~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-3-1

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-10-02 20:10:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20101002201047-2hbcvvydc67jrdfu
Tags: 2.2.0~4-0ubuntu1
* New Upstream Version (LP: #653702)
* Fixed a few bugs:
 - All .mo files aren't installed into the right directory (LP: #653336)
 - Dbus: Fixed a crash when exiting Cairo-Dock
 - Indicator: Some modifications needed for the latest
               version of libindicator
 - RSSreader: Prevented a crash if myDrawContext != NULL
 - Clock: Prevented a crash if myDrawContext != NULL
 - Switcher:
  - Prevented a crash if myDrawContext != NULL
  - Fixed a crash if the plugin is launched much time before the WM
 - musicPlayer:
  - Used the right image set from the config panel
  - MPRIS plugin: fixed a bug with the tracknumber
 - Systray: not drawn outside the screen.
 - tomboy: not popup a dialogue inside the screen
 - xfce-integration: displayed a window when logout applet is launched
* debian/control:
 - Updated the version of cairo-dock-dev and cairo-dock-core

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
########### project ###############
11
11
 
12
12
project ("cairo-dock-plugins")
13
 
set (VERSION "2.2.0-2")
 
13
set (VERSION "2.2.0-4")
14
14
 
15
15
add_definitions (-std=c99 -Wstrict-prototypes -Wextra -Wwrite-strings -Wuninitialized -Werror-implicit-function-declaration) #-Wunreachable-code -Wno-unused-parameter -Wall
16
16
if (NOT ${CMAKE_BUILD_TYPE})
45
45
 
46
46
set (PACKAGE ${CMAKE_PROJECT_NAME})
47
47
set (GETTEXT_PACKAGE ${PACKAGE})
 
48
                                        # CMAKE_INSTALL_PREFIX = /usr
48
49
execute_process(
49
 
    COMMAND pkg-config cairo-dock --variable=pluginsdir
 
50
    COMMAND pkg-config cairo-dock --variable=pluginsdir         # /usr/lib/cairo-dock
50
51
    OUTPUT_VARIABLE pluginsdir)
51
52
STRING (REGEX REPLACE "\n" "" pluginsdir ${pluginsdir})  # la commande rajoute un retour chariot ...
52
53
execute_process(
53
 
    COMMAND pkg-config cairo-dock --variable=pluginsdatadir
 
54
    COMMAND pkg-config cairo-dock --variable=pluginsdatadir     # /usr/share/cairo-dock/plug-ins
54
55
    OUTPUT_VARIABLE pluginsdatadir)
55
56
STRING (REGEX REPLACE "\n" "" pluginsdatadir ${pluginsdatadir})
56
57
execute_process(
57
 
    COMMAND pkg-config --modversion cairo-dock
 
58
    COMMAND pkg-config --modversion cairo-dock                  # 2.2.0-3
58
59
    OUTPUT_VARIABLE dock_version)
59
60
STRING (REGEX REPLACE "\n" "" dock_version ${dock_version})
60
 
if (NOT "${dock_version}" STREQUAL "${VERSION}")
 
61
if (NOT "${dock_version}" STREQUAL "${VERSION}")                # Version
61
62
        MESSAGE (FATAL_ERROR "warning : version mismatch with the core : " ${VERSION} <> ${dock_version})
62
63
endif()
63
64
set (GETTEXT_PLUGINS "cairo-dock-plugins")
64
65
 
65
66
if( CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT "${FORCE_LIB64}" STREQUAL "")  # 64bits and force install in lib64
66
 
        set (libdir ${prefix}/lib64)
 
67
        set (libdir ${CMAKE_INSTALL_PREFIX}/lib64)
67
68
else()
68
 
        set (libdir ${prefix}/lib${LIB_SUFFIX})
 
69
        set (libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})   # /usr/lib
69
70
endif()
70
71
 
71
 
if (NOT "${pluginsdir}" STREQUAL "${CMAKE_INSTALL_PREFIX}/${libdir}")
72
 
        message (STATUS "Warning : plug-ins should be installed in the same place asthe dock, that is to say in ${pluginsdir}")
73
 
        STRING (REGEX REPLACE "/${libdir}" "" CMAKE_INSTALL_PREFIX ${pluginsdir})
 
72
if (NOT "${pluginsdir}" STREQUAL "${libdir}/cairo-dock")
 
73
        message (STATUS "Warning : plug-ins should be installed in the same directory as the core, that is to say in ${pluginsdir}")
 
74
        STRING (REGEX REPLACE "/${libdir}/cairo-dock" "" CMAKE_INSTALL_PREFIX ${pluginsdir})
74
75
endif()
75
76
set (localedir "${CMAKE_INSTALL_PREFIX}/share/locale")
76
77
set (gaugesdir "${CMAKE_INSTALL_PREFIX}/share/cairo-dock/gauges")