~ubuntu-branches/ubuntu/raring/remmina/raring

« back to all changes in this revision

Viewing changes to cmake/FindGTK.cmake

  • Committer: Package Import Robot
  • Author(s): Luca Falavigna
  • Date: 2012-02-11 17:28:48 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120211172848-rh3ffi7075qyobuq
Tags: 1.0.0-1
* New upstream release.
  - Compatible with FreeRDP 1.0 (Closes: #658363).
  - Ported to GTK3, this also fixes an incompatibility with
    GTK2 and recent Avahi with GTK3 support, which lead to
    crashes when scanning network services (Closes: #626499).
* debian/patches/libvncserver.patch:
  - Do not use convenience copy of libvncserver.
* debian/patches/g_thread_init.patch:
  - Do not use deprecated g_thread_init function.
* debian/patches/REMMINA_COMMAND_NONE.patch:
  - Removed, obsoleted by GApplication port.
* debian/clean:
  - Remove spurious files created at build-time.
* debian/compat:
  - Bump compatibility level to 9.
* debian/control:
  - Refresh build-dependencies to match new structure.
  - Drop remmina-dev package, no longer used.
  - Build packages once provided by remmina-plugins.
  - Provide remmina-common package.
  - Provide remmina-plugin-gnome package.
* debian/copyright:
  - Refresh copyright information.
* debian/docs:
  - Documentation is no longer accurate, do not ship it anymore.
* debian/remmina-dev.install:
  - Drop remmina-dev package, no longer used.
* debian/remmina-plugin-telepathy.install:
  - Adjust location for Remmina.client.
  - Disable D-BUS support for now.
* debian/rules:
  - Compile with -DWITH_APPINDICATOR=OFF.
  - Do not treat plugins as shared libraries.
* debian/watch:
  - Adjust watch file to match new download location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Remmina - The GTK+ Remote Desktop Client
 
2
#
 
3
# Copyright (C) 2012 Daniel M. Weeks
 
4
#
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; either version 2 of the License, or
 
8
# (at your option) any later version.
 
9
#
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this program; if not, write to the Free Software
 
17
# Foundation, Inc., 59 Temple Place, Suite 330, 
 
18
# Boston, MA 02111-1307, USA.
 
19
 
 
20
if(GTK_VERSION)
 
21
        find_required_package(GTK${GTK_VERSION})
 
22
        if(GTK${GTK_VERSION}_FOUND)
 
23
                set(GTK_FOUND true)
 
24
        else()
 
25
                set(GTK_FOUND false)
 
26
        endif()
 
27
else()
 
28
        # Prefer GTK+ 3 over GTK+ 2
 
29
 
 
30
        find_package(GTK3 QUIET)
 
31
        if(GTK3_FOUND)
 
32
                set(GTK_VERSION 3)
 
33
                set(GTK_FOUND true)
 
34
        else()
 
35
                find_package(GTK2 QUIET)
 
36
                if(GTK2_FOUND)
 
37
                        set(GTK_VERSION 2)
 
38
                        set(GTK_FOUND true)
 
39
                elseif()
 
40
                        set(GTK_FOUND false)
 
41
                endif()
 
42
        endif()
 
43
endif()
 
44
 
 
45
if(GTK_VERSION)
 
46
        set(_GTK_ERR_MESSAGE "GTK ${GTK_VERSION} not found.")
 
47
else()
 
48
        set(_GTK_ERR_MESSAGE "No GTK not found.")
 
49
endif()
 
50
 
 
51
if (GTK_FOUND)
 
52
        set(GTK_LIBRARIES ${GTK${GTK_VERSION}_LIBRARIES})
 
53
        unset(GTK${GTK_VERSION}_LIBRARIES)
 
54
 
 
55
        set(GTK_INCLUDE_DIRS ${GTK${GTK_VERSION}_INCLUDE_DIRS})
 
56
        unset(GTK${GTK_VERSION}_INCLUDE_DIRS)
 
57
else()
 
58
        if(GTK_FIND_REQUIRED)
 
59
                message(FATAL_ERROR ${_GTK_ERR_MESSAGE})
 
60
        else()
 
61
                if(NOT VTK_FIND_QUIETLY)
 
62
                        message(STATUS ${_GTK_ERR_MESSAGE})
 
63
                endif()
 
64
        endif()
 
65
endif()