Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 282403 Details for
Bug 371941
net-im/licq-1.3.9[ncurses] should call cdk5-config for dev-libs/cdk-5.0.20110517[unicode]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
cmake fix for licq 1.5.1
gentoo371941b.patch (text/plain), 2.76 KB, created by
Martin von Gagern
on 2011-08-07 12:09:35 UTC
(
hide
)
Description:
cmake fix for licq 1.5.1
Filename:
MIME Type:
Creator:
Martin von Gagern
Created:
2011-08-07 12:09:35 UTC
Size:
2.76 KB
patch
obsolete
>Use cdk5-config to determine appropriate flags for cdk. If that fails, try >libcdkw in preference to libcdk. > >2011-08-07 Martin von Gagern > >https://bugs.gentoo.org/371941 > >Index: licq-1.5.1/cmake/Modules/FindCDK.cmake >=================================================================== >--- /dev/null >+++ licq-1.5.1/cmake/Modules/FindCDK.cmake >@@ -0,0 +1,54 @@ >+# Heavily inspired by the FindGpgme.cmake file in this same directory. >+# Written August 2011 by Martin von Gagern for Licq on Gentoo Linux. >+ >+find_program(_CDKCONFIG_EXECUTABLE NAMES cdk5-config) >+ >+message(STATUS "Searching for Curses Development Kit (CDK)") >+if(_CDKCONFIG_EXECUTABLE) >+ >+ message(STATUS " Found cdk5-config: ${_CDKCONFIG_EXECUTABLE}") >+ exec_program(${_CDKCONFIG_EXECUTABLE} ARGS --version OUTPUT_VARIABLE CDK_VERSION) >+ exec_program(${_CDKCONFIG_EXECUTABLE} ARGS --abi-version OUTPUT_VARIABLE CDK_ABIVERSION) >+ message(STATUS " CDK version: ${CDK_VERSION}") >+ >+ exec_program(${_CDKCONFIG_EXECUTABLE} ARGS --cflags OUTPUT_VARIABLE CDK_CFLAGS) >+ set(CDK_INCLUDE_DIR) >+ string(REGEX REPLACE "[ \r\n]+" ";" _flags ${CDK_CFLAGS}) >+ foreach(_flag ${_flags}) >+ if( "${_flag}" MATCHES "^-I" ) >+ string(SUBSTRING "${_flag}" 2 -1 _dir) >+ file(TO_CMAKE_PATH "${_dir}" _dir) >+ set(CDK_INCLUDE_DIR ${CDK_INCLUDE_DIR} ${_dir}) >+ endif() >+ endforeach() >+ >+ exec_program( ${_CDKCONFIG_EXECUTABLE} ARGS --libs OUTPUT_VARIABLE CDK_LIBS ) >+ set(CDK_LIBRARY) >+ string(REGEX REPLACE "[ \r\n]+" ";" _flags ${CDK_LIBS}) >+ foreach(_flag ${_flags}) >+ if( "${_flag}" MATCHES "^-l" ) >+ string(SUBSTRING "${_flag}" 2 -1 _name) >+ set(CDK_LIBRARY ${CDK_LIBRARY} ${_name}) >+ endif() >+ endforeach() >+ >+else() >+ >+ message(STATUS " No cdk5-config found") >+ find_path(CDK_INCLUDE_DIR cdk.h PATH_SUFFIXES cdk) >+ if(CDK_INCLUDE_DIR) >+ find_library(CDK_LIBRARY NAMES cdkw cdk) >+ endif(CDK_INCLUDE_DIR) >+ >+endif() >+ >+if(CDK_LIBRARY) >+ message(STATUS " CDK library: ${CDK_LIBRARY}") >+ message(STATUS " CDK include directory: ${CDK_INCLUDE_DIR}") >+else() >+ if(CDK_FIND_REQUIRED) >+ message(FATAL_ERROR "Did not find CDK") >+ else() >+ message(STATUS " Did not find CDK") >+ endif() >+endif() >Index: licq-1.5.1/plugins/console/CMakeLists.txt >=================================================================== >--- licq-1.5.1.orig/plugins/console/CMakeLists.txt >+++ licq-1.5.1/plugins/console/CMakeLists.txt >@@ -16,11 +16,8 @@ set(CURSES_NEED_NCURSES TRUE) > find_package(Curses REQUIRED) > > # CDK >-find_path(CDK_INCLUDE_DIR cdk.h PATH_SUFFIXES cdk) >-if (CDK_INCLUDE_DIR) >- find_library(CDK_LIBRARY cdk) >-endif (CDK_INCLUDE_DIR) >- >+set(CMAKE_MODULE_PATH ${Licq_CMAKE_DIR}/Modules) >+find_package(CDK REQUIRED) > if (NOT CDK_LIBRARY) > message(FATAL_ERROR "Could NOT find Curses Development Kit (CDK)") > endif (NOT CDK_LIBRARY)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 371941
:
277317
|
282391
| 282403