File kde4_includes.patch of Package okular
--- okular-4.13.90.orig/OkularConfig.cmake 2014-07-17 01:54:54.000000000 +0200
+++ okular-4.13.90/OkularConfig.cmake 2014-08-14 10:13:40.873895296 +0200
@@ -1,18 +1,13 @@
-# get from the full path to OkularConfig.cmake up to the base dir dir:
-get_filename_component( _okularBaseDir ${CMAKE_CURRENT_LIST_FILE} PATH)
-get_filename_component( _okularBaseDir ${_okularBaseDir} PATH)
-get_filename_component( _okularBaseDir ${_okularBaseDir} PATH)
-get_filename_component( _okularBaseDir ${_okularBaseDir} PATH)
-
-
# find the full paths to the library and the includes:
find_path(OKULAR_INCLUDE_DIR okular/core/document.h
- HINTS ${_okularBaseDir}/include
- NO_DEFAULT_PATH)
+ PATHS
+ ${INCLUDE_INSTALL_DIR}
+ ${KDE4_INCLUDE_DIR})
-find_library(OKULAR_CORE_LIBRARY okularcore
- HINTS ${_okularBaseDir}/lib
- NO_DEFAULT_PATH)
+find_library(OKULAR_CORE_LIBRARY okularcore
+ PATHS
+ ${LIB_INSTALL_DIR}
+ ${KDE4_LIB_DIR})
set(OKULAR_LIBRARIES ${OKULAR_CORE_LIBRARY})