Blame SOURCES/phonon-4.6.0-rpath.patch

fea47d
diff -up phonon-4.6.0/cmake/FindPhononInternal.cmake.rpath phonon-4.6.0/cmake/FindPhononInternal.cmake
fea47d
--- phonon-4.6.0/cmake/FindPhononInternal.cmake.rpath	2011-12-19 14:30:45.000000000 -0600
fea47d
+++ phonon-4.6.0/cmake/FindPhononInternal.cmake	2012-05-20 15:56:48.031739000 -0500
fea47d
@@ -122,8 +122,13 @@ endif(APPLE)
fea47d
 # These two options below make it set the RPATH of the installed targets to all
fea47d
 # RPATH directories outside the current CMAKE_BINARY_DIR and also the library 
fea47d
 # install directory. Alex
fea47d
+list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}" _isSystemPlatformLibDir)
fea47d
+list(FIND CMAKE_C_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}" _isSystemCLibDir)
fea47d
+list(FIND CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "%{CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}" _isSystemCxxLibDir)
fea47d
+if("${_isSystemPlatformLibDir}" STREQUAL "-1" AND "${_isSystemCLibDir}" STREQUAL "-1" AND "${_isSystemCxxLibDir}" STREQUAL "-1")
fea47d
 set(CMAKE_INSTALL_RPATH_USE_LINK_PATH  TRUE)
fea47d
-set(CMAKE_INSTALL_RPATH "${LIB_INSTALL_DIR}")
fea47d
+set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}")
fea47d
+endif("${_isSystemPlatformLibDir}" STREQUAL "-1" AND "${_isSystemCLibDir}" STREQUAL "-1" AND "${_isSystemCxxLibDir}" STREQUAL "-1")
fea47d
 
fea47d
 
fea47d
 # Uninstall Target