diff options
Diffstat (limited to 'net-im/kadu/files/kadu-0.10.0-sdk-cmake.patch')
-rw-r--r-- | net-im/kadu/files/kadu-0.10.0-sdk-cmake.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/net-im/kadu/files/kadu-0.10.0-sdk-cmake.patch b/net-im/kadu/files/kadu-0.10.0-sdk-cmake.patch new file mode 100644 index 000000000000..64855367b5ad --- /dev/null +++ b/net-im/kadu/files/kadu-0.10.0-sdk-cmake.patch @@ -0,0 +1,46 @@ +diff -ruN kadu-0.10.0/cmake/FindKadu.cmake new/cmake/FindKadu.cmake +--- kadu-0.10.0/cmake/FindKadu.cmake 2011-08-24 08:43:41.000000000 +0200 ++++ new/cmake/FindKadu.cmake 2011-09-30 23:26:39.043004993 +0200 +@@ -133,10 +133,12 @@ + set (KADU_PLUGINS_DIR ${KADU_DATA_DIR}/plugins) + + macro (kadu_api_directories INCLUDE_DIR) +- foreach (ARG ${ARGN}) +- file (GLOB API_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${ARG}/*.h) +- install (FILES ${API_HEADERS} DESTINATION ${KADU_INSTALL_INCLUDE_DIR}/kadu/${INCLUDE_DIR}/${ARG}) +- endforeach (ARG) ++ if (INSTALL_SDK) ++ foreach (ARG ${ARGN}) ++ file (GLOB API_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${ARG}/*.h) ++ install (FILES ${API_HEADERS} DESTINATION ${KADU_INSTALL_INCLUDE_DIR}/kadu/${INCLUDE_DIR}/${ARG}) ++ endforeach (ARG) ++ endif (INSTALL_SDK) + endmacro (kadu_api_directories) + + macro (kadu_configuration) +diff -ruN kadu-0.10.0/CMakeLists.txt new/CMakeLists.txt +--- kadu-0.10.0/CMakeLists.txt 2011-08-24 08:43:41.000000000 +0200 ++++ new/CMakeLists.txt 2011-09-30 23:28:24.979005031 +0200 +@@ -7,7 +7,7 @@ + option (BUILD_PLUGINS "Switch to Off if you do not want to build plugins" ON) + + # configuration +-option (INSTALL_CMAKE_MODULE "Install cmake modules" ON) ++option (INSTALL_SDK "Install SDK (API headers, cmake modules)" ON) + if (UNIX) + option (SIG_HANDLING_ENABLED "Define if you want system signals handling" ON) + if (UNIX AND NOT APPLE) +@@ -105,11 +105,11 @@ + include (cmake/FindKadu.cmake) + include_directories (${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/kadu-core ${QT_INCLUDES}) + +-if (INSTALL_CMAKE_MODULE) ++if (INSTALL_SDK) + install (FILES cmake/FindKadu.cmake DESTINATION ${KADU_CMAKE_MODULES_DIR}) + install (PROGRAMS translations/plugintsupdate.sh DESTINATION ${KADU_PLUGINS_DIR}/sdk) + install (FILES translations/configuration-ui.xsl DESTINATION ${KADU_PLUGINS_DIR}/sdk) +-endif (INSTALL_CMAKE_MODULE) ++endif (INSTALL_SDK) + + # build + configure_file (${CMAKE_SOURCE_DIR}/kadu-config.h.cmake ${CMAKE_BINARY_DIR}/kadu-config.h) |