Blame SOURCES/kdegraphics-4.5.80-OkularConfig-dont-hardcode-paths.patch

c77150
diff -ur kdegraphics-4.5.80/okular/OkularConfig.cmake kdegraphics-4.5.80-OkularConfig-dont-hardcode-paths/okular/OkularConfig.cmake
c77150
--- kdegraphics-4.5.80/okular/OkularConfig.cmake	2010-10-05 13:38:39.000000000 +0200
c77150
+++ kdegraphics-4.5.80-OkularConfig-dont-hardcode-paths/okular/OkularConfig.cmake	2010-11-22 22:12:53.000000000 +0100
c77150
@@ -1,18 +1,13 @@
c77150
-# get from the full path to OkularConfig.cmake up to the base dir dir:
c77150
-get_filename_component( _okularBaseDir  ${CMAKE_CURRENT_LIST_FILE} PATH)
c77150
-get_filename_component( _okularBaseDir  ${_okularBaseDir} PATH)
c77150
-get_filename_component( _okularBaseDir  ${_okularBaseDir} PATH)
c77150
-get_filename_component( _okularBaseDir  ${_okularBaseDir} PATH)
c77150
-
c77150
-
c77150
 # find the full paths to the library and the includes:
c77150
 find_path(OKULAR_INCLUDE_DIR okular/core/document.h
c77150
-          HINTS ${_okularBaseDir}/include
c77150
-          NO_DEFAULT_PATH)
c77150
-
c77150
-find_library(OKULAR_CORE_LIBRARY okularcore 
c77150
-             HINTS ${_okularBaseDir}/lib
c77150
-             NO_DEFAULT_PATH)
c77150
+          PATHS
c77150
+          ${INCLUDE_INSTALL_DIR}
c77150
+          ${KDE4_INCLUDE_DIR})
c77150
+
c77150
+find_library(OKULAR_CORE_LIBRARY okularcore
c77150
+             PATHS
c77150
+             ${LIB_INSTALL_DIR}
c77150
+             ${KDE4_LIB_DIR})
c77150
 
c77150
 set(OKULAR_LIBRARIES ${OKULAR_CORE_LIBRARY})
c77150