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

« back to all changes in this revision

Viewing changes to cmake/FindOptionalPackage.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
# - FindOptionalPackage
 
2
# Enable or disable optional packages. Also force optional packages.
 
3
#
 
4
#  This module defines the following macros:
 
5
#    find_required_package   : find a required package, can not be disabled
 
6
#    find_suggested_package  : find a suggested package - required but can be disabled
 
7
#    find_optional_package   : find an optional package - required only if enabled
 
8
#
 
9
 
 
10
#=============================================================================
 
11
# Copyright 2011 Nils Andresen <nils@nils-andresen.de>
 
12
#
 
13
# Licensed under the Apache License, Version 2.0 (the "License");
 
14
# you may not use this file except in compliance with the License.
 
15
# You may obtain a copy of the License at
 
16
#
 
17
#     http://www.apache.org/licenses/LICENSE-2.0
 
18
#
 
19
# Unless required by applicable law or agreed to in writing, software
 
20
# distributed under the License is distributed on an "AS IS" BASIS,
 
21
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
22
# See the License for the specific language governing permissions and
 
23
# limitations under the License.
 
24
#=============================================================================
 
25
 
 
26
macro(find_required_package _normal_package)
 
27
        find_package(${_normal_package} REQUIRED)
 
28
endmacro(find_required_package)
 
29
 
 
30
macro(find_suggested_package _normal_package)
 
31
        string(TOUPPER ${_normal_package} _upper_package)
 
32
        option(WITH_${_upper_package} "Add dependency to ${_normal_package} - recommended" ON)
 
33
        
 
34
        if(WITH_${_upper_package})
 
35
                message(STATUS "Finding suggested package ${_normal_package}.")
 
36
                message(STATUS "  Disable this using \"-DWITH_${_upper_package}=OFF\".")
 
37
                find_package(${_normal_package} REQUIRED)
 
38
        endif(WITH_${_upper_package})
 
39
endmacro(find_suggested_package)
 
40
 
 
41
macro(find_optional_package _normal_package)
 
42
        string(TOUPPER ${_normal_package} _upper_package)
 
43
        option(WITH_${_upper_package} "Add dependency to ${_normal_package}" OFF)
 
44
 
 
45
        if(WITH_${_upper_package})
 
46
                find_package(${_normal_package} REQUIRED)
 
47
        else(WITH_${_upper_package})
 
48
                message(STATUS "Skipping optional package ${_normal_package}.")
 
49
                message(STATUS "  Enable this using \"-DWITH_${_upper_package}=ON\".")
 
50
        endif(WITH_${_upper_package})
 
51
endmacro(find_optional_package)