$NetBSD$

--- CMakeLists.txt.orig	2015-11-05 04:23:05.000000000 +0000
+++ CMakeLists.txt
@@ -27,6 +27,8 @@ if(NOT INSIDE_KDENETWORK)
     include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
 endif(NOT INSIDE_KDENETWORK)
 
+add_definitions(${KDE4_ENABLE_EXCEPTIONS})
+
 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
 
 macro_optional_find_package(NepomukCore)
@@ -41,7 +43,7 @@ macro_log_feature(SQLITE_FOUND "SQLite"
 macro_optional_find_package(QCA2)
 macro_log_feature(QCA2_FOUND "QCA2" "Qt Cryptographic Architecture" "http://delta.affinix.com/qca" FALSE "2.0.0" "Needed for the KGet bittorrent-plugin and some Kopete plugins")
 
-macro_optional_find_package(QGpgme)
+macro_optional_find_package(KdepimLibs)
 macro_log_feature(QGPGME_FOUND "QGpgME" "The QGpgME library" "http://www.kde.org" FALSE "" "QGpgME is required to have signature verifying support in KGet.")
 
 macro_optional_find_package(KTorrent)
