aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/FindLCMS.cmake
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2017-05-20 08:08:20 +0200
committerPino Toscano <pino@kde.org>2017-05-20 08:08:20 +0200
commit97ba63aafa510e64c78a529cb5e88eebd2e97967 (patch)
treeaa845b80f997f86db2fef8878b8d55576dff189a /attic/modules/FindLCMS.cmake
parentb58820c4af6407ca6a67d342d7bc43ab09778e7d (diff)
downloadextra-cmake-modules-97ba63aafa510e64c78a529cb5e88eebd2e97967.tar.gz
extra-cmake-modules-97ba63aafa510e64c78a529cb5e88eebd2e97967.tar.bz2
Drop modules from attic that are not useful anymore
Even if they are in attic and not actually in use, drop a number of modules (and old tests) that it does not make sense to keep carry further: - FindAlsa.cmake, config-alsa.h.cmake: cmake has been providing a better FindALSA for long time - FindEigen.cmake, FindEigen2.cmake & test: Eigen v1 & v2 are deprecated and unmaintained for years - FindGStreamer.cmake: gstreamer-0.10 is long dead upstream - FindKdcraw.cmake, FindKDE4Workspace.cmake, FindKdeMultimedia.cmake, FindKDevPlatform.cmake, FindKexiv2.cmake, FindKipi.cmake, FindLibAttica.cmake, FindLibKonq.cmake: modules for KDE 4 libraries -- they are provided already by kdelibs 4.x, and the frameworks versions of those libraries provide cmake config files already - FindKNepomuk.cmake, FindKonto.cmake, FindNepomuk.cmake, NepomukAddOntologyClasses.cmake, NepomukMacros.cmake: Nepomuk stuff, which is long dead - FindKopete.cmake: the Frameworks version of Kopete is not released yet, so it'd rather provide own cmake config files - FindKorundum.cmake: Korudum is dead upstream, and so is Ruby 1.8 - FindLCMS.cmake & test: LCMS 1 is dead for many years already - FindMusicBrainz.cmake: libmusicbrainz v2 is long dead, and the web service API it uses was dismantled years ago - FindOpenEXR.cmake & test: ECM already provides an improved and polished version of this module - FindPolkitQt.cmake: polkit-qt is long dead, replaced by polkit-qt-1 - FindPopplerQt4.cmake: ECM 5.19+ already provides a better FindPoppler module - FindSharedDesktopOntologies.cmake: dead upstream, but also used to provide cmake config files already - tests for Blitz, Flex, LibXslt: their modules are not even in attic
Diffstat (limited to 'attic/modules/FindLCMS.cmake')
-rw-r--r--attic/modules/FindLCMS.cmake60
1 files changed, 0 insertions, 60 deletions
diff --git a/attic/modules/FindLCMS.cmake b/attic/modules/FindLCMS.cmake
deleted file mode 100644
index ba8890f8..00000000
--- a/attic/modules/FindLCMS.cmake
+++ /dev/null
@@ -1,60 +0,0 @@
-# - Find LCMS
-# Find the LCMS (Little Color Management System) library and includes and
-# This module defines
-# LCMS_INCLUDE_DIR, where to find lcms.h
-# LCMS_LIBRARIES, the libraries needed to use LCMS.
-# LCMS_DOT_VERSION, The version number of the LCMS library, e.g. "1.19"
-# LCMS_VERSION, Similar to LCMS_DOT_VERSION, but without the dots, e.g. "119"
-# LCMS_FOUND, If false, do not try to use LCMS.
-#
-# The minimum required version of LCMS can be specified using the
-# standard syntax, e.g. find_package(LCMS 1.10)
-
-# Copyright (c) 2008, Adrian Page, <adrian@pagenet.plus.com>
-# Copyright (c) 2009, Cyrille Berger, <cberger@cberger.net>
-#
-# Redistribution and use is allowed according to the terms of the BSD license.
-# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
-
-
-# use pkg-config to get the directories and then use these values
-# in the FIND_PATH() and FIND_LIBRARY() calls
-if(NOT WIN32)
- find_package(PkgConfig)
- pkg_check_modules(PC_LCMS lcms)
- set(LCMS_DEFINITIONS ${PC_LCMS_CFLAGS_OTHER})
-endif()
-
-find_path(LCMS_INCLUDE_DIR lcms.h
- HINTS
- ${PC_LCMS_INCLUDEDIR}
- ${PC_LCMS_INCLUDE_DIRS}
- PATH_SUFFIXES lcms liblcms1
-)
-
-find_library(LCMS_LIBRARIES NAMES lcms liblcms lcms-1 liblcms-1
- HINTS
- ${PC_LCMS_LIBDIR}
- ${PC_LCMS_LIBRARY_DIRS}
- PATH_SUFFIXES lcms
-)
-
-# Store the LCMS version number in the cache, so we don't have to search everytime again
-if(LCMS_INCLUDE_DIR AND NOT LCMS_VERSION)
- file(READ ${LCMS_INCLUDE_DIR}/lcms.h LCMS_VERSION_CONTENT)
- string(REGEX MATCH "#define LCMS_VERSION[ ]*[0-9]*\n" LCMS_VERSION_MATCH ${LCMS_VERSION_CONTENT})
- if(LCMS_VERSION_MATCH)
- string(REGEX REPLACE "#define LCMS_VERSION[ ]*([0-9]*)\n" "\\1" _LCMS_VERSION ${LCMS_VERSION_MATCH})
- string(SUBSTRING ${_LCMS_VERSION} 0 1 LCMS_MAJOR_VERSION)
- string(SUBSTRING ${_LCMS_VERSION} 1 2 LCMS_MINOR_VERSION)
- endif()
- set(LCMS_VERSION "${LCMS_MAJOR_VERSION}${LCMS_MINOR_VERSION}" CACHE STRING "Version number of lcms" FORCE)
- set(LCMS_DOT_VERSION "${LCMS_MAJOR_VERSION}.${LCMS_MINOR_VERSION}" CACHE STRING "Version number of lcms split into components" FORCE)
-endif()
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(LCMS REQUIRED_VARS LCMS_LIBRARIES LCMS_INCLUDE_DIR
- VERSION_VAR LCMS_DOT_VERSION )
-
-mark_as_advanced(LCMS_INCLUDE_DIR LCMS_LIBRARIES LCMS_VERSION)
-