$NetBSD: patch-libs_ksysguard_processcore_CMakeLists.txt,v 1.2 2025/08/24 15:44:12 wiz Exp $

--- libs/ksysguard/processcore/CMakeLists.txt.orig	2015-08-12 07:03:15.000000000 +0000
+++ libs/ksysguard/processcore/CMakeLists.txt
@@ -18,7 +18,7 @@ target_link_libraries(processcore ${KDE4
 target_link_libraries(processcore LINK_INTERFACE_LIBRARIES ${KDE4_KDECORE_LIBS} )
 if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" )
   message(STATUS "Adding kvm library on NetBSD")
-  target_link_libraries(processcore kvm)
+  target_link_libraries(processcore kvm ${RT_LIB_SCHED})
 endif( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" )
 
 set_target_properties(processcore PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
@@ -39,10 +39,13 @@ set(ksysguardprocesslist_helper_srcs
 
 kde4_add_executable(ksysguardprocesslist_helper ${ksysguardprocesslist_helper_srcs})
 target_link_libraries(ksysguardprocesslist_helper ${KDE4_KDECORE_LIBS})
+if( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" )
+  message(STATUS "Adding kvm library on NetBSD")
+  target_link_libraries(ksysguardprocesslist_helper kvm)
+endif( ${CMAKE_SYSTEM_NAME} MATCHES "NetBSD" )
 install(TARGETS ksysguardprocesslist_helper DESTINATION ${LIBEXEC_INSTALL_DIR})
 
 kde4_install_auth_helper_files(ksysguardprocesslist_helper org.kde.ksysguard.processlisthelper root)
-kde4_install_auth_actions(org.kde.ksysguard.processlisthelper actions.actions)
 
 set_target_properties(ksysguardprocesslist_helper PROPERTIES COMPILE_FLAGS "-Wall -ggdb")
 
