Index: head/x11-themes/kde4-windeco-crystal/files/patch-CMakeLists.txt =================================================================== --- head/x11-themes/kde4-windeco-crystal/files/patch-CMakeLists.txt +++ head/x11-themes/kde4-windeco-crystal/files/patch-CMakeLists.txt @@ -0,0 +1,27 @@ +First hunk: + Include KDE4Workspace cmake magic so that KDE4WORKSPACE_KDECORATIONS_LIBS gets defined. + +Second hunk: + CMP0005 Preprocessor definition values are now escaped automatically. + https://cmake.org/cmake/help/v3.0/policy/CMP0005.html + +--- CMakeLists.txt.orig 2017-03-29 09:58:52 UTC ++++ CMakeLists.txt +@@ -3,6 +3,7 @@ project(KWIN_CRYSTAL) + set(VERSION 2.2.1) + + find_package(KDE4 REQUIRED) ++find_package(KDE4Workspace REQUIRED) + + include (CPack) + include (MacroLibrary) +@@ -42,7 +43,8 @@ include (KDE4Defaults) + + ########### global ############### + +-add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1 -DVERSION=\\"${VERSION}\\") ++cmake_policy(SET CMP0005 NEW) ++add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -DHAVE_CONFIG_H=1 -DVERSION="${VERSION}") + include_directories (${KDE4_INCLUDES} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}) + + include_directories( Index: head/x11-themes/kde4-windeco-crystal/files/patch-client_CMakeLists.txt =================================================================== --- head/x11-themes/kde4-windeco-crystal/files/patch-client_CMakeLists.txt +++ head/x11-themes/kde4-windeco-crystal/files/patch-client_CMakeLists.txt @@ -0,0 +1,13 @@ +Use the variables defined by the KDE4 cmake files to link against kdecorations. + +--- client/CMakeLists.txt.orig 2017-03-29 09:58:23 UTC ++++ client/CMakeLists.txt +@@ -77,7 +77,7 @@ set(kwin3_crystal_PART_SRCS + ) + + kde4_add_plugin(kwin3_crystal ${kwin3_crystal_PART_SRCS}) +-target_link_libraries(kwin3_crystal ${KDE4_KDEUI_LIBS} kdecorations ) ++target_link_libraries(kwin3_crystal ${KDE4_KDEUI_LIBS} ${KDE4WORKSPACE_KDECORATIONS_LIBS} ) + + install(TARGETS kwin3_crystal DESTINATION ${PLUGIN_INSTALL_DIR} ) + install( FILES crystal.desktop DESTINATION ${DATA_INSTALL_DIR}/kwin/ ) Index: head/x11-themes/kde4-windeco-crystal/files/patch-client_config_CMakeLists.txt =================================================================== --- head/x11-themes/kde4-windeco-crystal/files/patch-client_config_CMakeLists.txt +++ head/x11-themes/kde4-windeco-crystal/files/patch-client_config_CMakeLists.txt @@ -0,0 +1,13 @@ +Use the variables defined by the KDE4 cmake files to link against kio and kdeui. + +--- client/config/CMakeLists.txt.orig 2017-03-29 09:58:23 UTC ++++ client/config/CMakeLists.txt +@@ -12,7 +12,7 @@ kde4_add_plugin(kwin_crystal_config ${kwin_crystal_con + + + +-target_link_libraries(kwin_crystal_config kdeui kio ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${QT_QT3SUPPORT_LIBRARY}) ++target_link_libraries(kwin_crystal_config ${KDE4_KIO_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QTGUI_LIBRARY} ${QT_QT3SUPPORT_LIBRARY}) + + install(TARGETS kwin_crystal_config DESTINATION ${PLUGIN_INSTALL_DIR} ) +