diff -Nur modules.backup/KDELibs4LibraryTargets-debian.cmake modules/KDELibs4LibraryTargets-debian.cmake
--- modules.backup/KDELibs4LibraryTargets-debian.cmake	2011-11-19 19:21:49.812979362 +0100
+++ modules/KDELibs4LibraryTargets-debian.cmake	2011-11-19 22:58:53.714833627 +0100
@@ -10,7 +10,7 @@
 SET_TARGET_PROPERTIES(KDE4__nepomuk PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdecore"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdeui;/usr/lib/libsoprano.so"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libnepomuk.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libnepomuk.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libnepomuk.so.4"
   )
 
@@ -18,7 +18,7 @@
 SET_PROPERTY(TARGET KDE4__nepomukquery APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__nepomukquery PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdecore;KDE4__nepomuk"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libnepomukquery.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libnepomukquery.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libnepomukquery.so.4"
   )
 
@@ -26,14 +26,14 @@
 SET_PROPERTY(TARGET KDE4__nepomukutils APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__nepomukutils PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__nepomuk;KDE4__nepomukquery;KDE4__kdecore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libnepomukutils.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libnepomukutils.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libnepomukutils.so.4"
   )
 
 # Import target "KDE4__kdefakes" for configuration "Debian"
 SET_PROPERTY(TARGET KDE4__kdefakes APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kdefakes PROPERTIES
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkdefakes.so.5.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkdefakes.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkdefakes.so.5"
   )
 
@@ -42,7 +42,7 @@
 SET_TARGET_PROPERTIES(KDE4__kdecore PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "dlrestrictions"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "Qt4::QtDBus;Qt4::QtCore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkdecore.so.5.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkdecore.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkdecore.so.5"
   )
 
@@ -50,7 +50,7 @@
 SET_PROPERTY(TARGET KDE4__kdeui APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kdeui PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;Qt4::QtGui;Qt4::QtSvg"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkdeui.so.5.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkdeui.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkdeui.so.5"
   )
 
@@ -58,7 +58,7 @@
 SET_PROPERTY(TARGET KDE4__kpty APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kpty PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;Qt4::QtCore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkpty.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkpty.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkpty.so.4"
   )
 
@@ -67,14 +67,14 @@
 SET_TARGET_PROPERTIES(KDE4__kdesu PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kpty"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "Qt4::QtCore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkdesu.so.5.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkdesu.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkdesu.so.5"
   )
 
 # Import target "KDE4__kjs" for configuration "Debian"
 SET_PROPERTY(TARGET KDE4__kjs APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kjs PROPERTIES
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkjs.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkjs.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkjs.so.4"
   )
 
@@ -82,7 +82,7 @@
 SET_PROPERTY(TARGET KDE4__kjsapi APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kjsapi PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kjs;KDE4__kdecore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkjsapi.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkjsapi.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkjsapi.so.4"
   )
 
@@ -90,7 +90,7 @@
 SET_PROPERTY(TARGET KDE4__kjsembed APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kjsembed PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdecore;KDE4__kjs"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkjsembed.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkjsembed.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkjsembed.so.4"
   )
 
@@ -98,7 +98,7 @@
 SET_PROPERTY(TARGET KDE4__kntlm APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kntlm PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdecore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkntlm.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkntlm.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkntlm.so.4"
   )
 
@@ -106,14 +106,14 @@
 SET_PROPERTY(TARGET KDE4__kio APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kio PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdeui;KDE4__kdecore;Qt4::QtNetwork;Qt4::QtXml;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkio.so.5.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkio.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkio.so.5"
   )
 
 # Import target "KDE4__solid" for configuration "Debian"
 SET_PROPERTY(TARGET KDE4__solid APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__solid PROPERTIES
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libsolid.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libsolid.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libsolid.so.4"
   )
 
@@ -122,7 +122,7 @@
 SET_TARGET_PROPERTIES(KDE4__kfile PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__solid"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kio;KDE4__kdeui;KDE4__kdecore;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkfile.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkfile.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkfile.so.4"
   )
 
@@ -131,7 +131,7 @@
 SET_TARGET_PROPERTIES(KDE4__knewstuff3 PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kio"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdeui;KDE4__kdecore;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libknewstuff3.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libknewstuff3.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libknewstuff3.so.4"
   )
 
@@ -139,7 +139,7 @@
 SET_PROPERTY(TARGET KDE4__kparts APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kparts PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kio;KDE4__kdeui;KDE4__kdecore;Qt4::QtCore;Qt4::QtGui;KDE4__nepomuk;KDE4__nepomukutils"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkparts.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkparts.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkparts.so.4"
   )
 
@@ -148,7 +148,7 @@
 SET_TARGET_PROPERTIES(KDE4__kemoticons PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kio"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;KDE4__kdeui;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkemoticons.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkemoticons.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkemoticons.so.4"
   )
 
@@ -156,7 +156,7 @@
 SET_PROPERTY(TARGET KDE4__kidletime APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kidletime PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;KDE4__kdeui;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkidletime.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkidletime.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkidletime.so.4"
   )
 
@@ -164,7 +164,7 @@
 SET_PROPERTY(TARGET KDE4__kcmutils APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kcmutils PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;KDE4__kdeui;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkcmutils.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkcmutils.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkcmutils.so.4"
   )
 
@@ -173,7 +173,7 @@
 SET_TARGET_PROPERTIES(KDE4__kprintutils PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kparts"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;KDE4__kdeui;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkprintutils.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkprintutils.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkprintutils.so.4"
   )
 
@@ -181,7 +181,7 @@
 SET_PROPERTY(TARGET KDE4__threadweaver APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__threadweaver PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "Qt4::QtCore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libthreadweaver.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libthreadweaver.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libthreadweaver.so.4"
   )
 
@@ -189,8 +189,8 @@
 SET_PROPERTY(TARGET KDE4__khtml APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__khtml PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__ktexteditor"
-  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "/usr/lib/libphonon.so;KDE4__kparts;KDE4__kjs;KDE4__kio;KDE4__kdeui;KDE4__kdecore;Qt4::QtCore;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkhtml.so.5.7.0"
+  IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libphonon.so;KDE4__kparts;KDE4__kjs;KDE4__kio;KDE4__kdeui;KDE4__kdecore;Qt4::QtCore;Qt4::QtGui"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkhtml.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkhtml.so.5"
   )
 
@@ -199,7 +199,7 @@
 SET_TARGET_PROPERTIES(KDE4__ktexteditor PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdecore"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kparts"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libktexteditor.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libktexteditor.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libktexteditor.so.4"
   )
 
@@ -207,7 +207,7 @@
 SET_PROPERTY(TARGET KDE4__kmediaplayer APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kmediaplayer PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kparts;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkmediaplayer.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkmediaplayer.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkmediaplayer.so.4"
   )
 
@@ -216,7 +216,7 @@
 SET_TARGET_PROPERTIES(KDE4__kimproxy PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kio"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "Qt4::QtCore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkimproxy.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkimproxy.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkimproxy.so.4"
   )
 
@@ -225,7 +225,7 @@
 SET_TARGET_PROPERTIES(KDE4__knotifyconfig PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kio"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libknotifyconfig.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libknotifyconfig.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libknotifyconfig.so.4"
   )
 
@@ -233,7 +233,7 @@
 SET_PROPERTY(TARGET KDE4__kdnssd APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kdnssd PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;Qt4::QtCore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkdnssd.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkdnssd.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkdnssd.so.4"
   )
 
@@ -242,7 +242,7 @@
 SET_TARGET_PROPERTIES(KDE4__krosscore PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdeui"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdecore;Qt4::QtScript;Qt4::QtXml"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkrosscore.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkrosscore.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkrosscore.so.4"
   )
 
@@ -250,7 +250,7 @@
 SET_PROPERTY(TARGET KDE4__krossui APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__krossui PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__krosscore;KDE4__kdeui;KDE4__kparts;KDE4__kio"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkrossui.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkrossui.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkrossui.so.4"
   )
 
@@ -259,7 +259,7 @@
 SET_TARGET_PROPERTIES(KDE4__plasma PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdnssd;KDE4__threadweaver"
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kdeui;KDE4__kdecore;Qt4::QtGui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libplasma.so.3.0.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libplasma.so.3.0.0"
   IMPORTED_SONAME_DEBIAN "libplasma.so.3"
   )
 
@@ -267,7 +267,7 @@
 SET_PROPERTY(TARGET KDE4__kunitconversion APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kunitconversion PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdecore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkunitconversion.so.4.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkunitconversion.so.4.7.0"
   IMPORTED_SONAME_DEBIAN "libkunitconversion.so.4"
   )
 
@@ -275,7 +275,7 @@
 SET_PROPERTY(TARGET KDE4__kdewebkit APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kdewebkit PROPERTIES
   IMPORTED_LINK_INTERFACE_LIBRARIES_DEBIAN "KDE4__kparts;KDE4__kio;KDE4__kdecore;Qt4::QtWebKit;Qt4::QtNetwork;Qt4::QtGui;Qt4::QtCore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkdewebkit.so.5.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkdewebkit.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkdewebkit.so.5"
   )
 
@@ -283,7 +283,7 @@
 SET_PROPERTY(TARGET KDE4__kdeclarative APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kdeclarative PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdecore;KDE4__kdeui"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkdeclarative.so.5.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkdeclarative.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkdeclarative.so.5"
   )
 
@@ -291,7 +291,7 @@
 SET_PROPERTY(TARGET KDE4__kactivities APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBIAN)
 SET_TARGET_PROPERTIES(KDE4__kactivities PROPERTIES
   IMPORTED_LINK_DEPENDENT_LIBRARIES_DEBIAN "KDE4__kdecore"
-  IMPORTED_LOCATION_DEBIAN "/usr/lib/libkactivities.so.5.7.0"
+  IMPORTED_LOCATION_DEBIAN "$ENV{SYSROOT_DIR}/usr/lib/libkactivities.so.5.7.0"
   IMPORTED_SONAME_DEBIAN "libkactivities.so.5"
   )
 
diff -Nur modules.backup/KDELibsDependencies.cmake modules/KDELibsDependencies.cmake
--- modules.backup/KDELibsDependencies.cmake	2011-11-19 19:22:03.802978515 +0100
+++ modules/KDELibsDependencies.cmake	2011-11-19 22:59:02.304833108 +0100
@@ -7,37 +7,37 @@
 set(KDE_DEFAULT_HOME ".kde")
 
 if (NOT KDE4_INSTALL_DIR)
-   set(KDE4_INSTALL_DIR         "/usr")
+   set(KDE4_INSTALL_DIR         "$ENV{SYSROOT_DIR}/usr")
 endif (NOT KDE4_INSTALL_DIR)
 
-set(KDE4_LIB_INSTALL_DIR     "/usr/lib")
-set(KDE4_IMPORTS_INSTALL_DIR     "/usr/lib/kde4/imports")
-set(KDE4_LIBEXEC_INSTALL_DIR "/usr/lib/kde4/libexec")
-set(KDE4_LIBKDEINIT_INSTALL_DIR "/usr/lib/kde4/libkdeinit")
-set(KDE4_INCLUDE_INSTALL_DIR "/usr/include")
-set(KDE4_BIN_INSTALL_DIR     "/usr/bin")
-set(KDE4_SBIN_INSTALL_DIR    "/usr/sbin")
-set(KDE4_DATA_INSTALL_DIR    "/usr/share/kde4/apps")
-set(KDE4_HTML_INSTALL_DIR    "/usr/share/doc/kde/HTML")
-set(KDE4_CONFIG_INSTALL_DIR  "/usr/share/kde4/config")
-set(KDE4_ICON_INSTALL_DIR    "/usr/share/icons")
-set(KDE4_KCFG_INSTALL_DIR    "/usr/share/kde4/config.kcfg")
-set(KDE4_LOCALE_INSTALL_DIR  "/usr/share/locale")
-set(KDE4_MIME_INSTALL_DIR    "/usr/share/mimelnk")
-set(KDE4_SOUND_INSTALL_DIR   "/usr/share/sounds")
-set(KDE4_TEMPLATES_INSTALL_DIR "/usr/share/templates")
-set(KDE4_WALLPAPER_INSTALL_DIR "/usr/share/wallpapers")
-set(KDE4_KCONF_UPDATE_INSTALL_DIR "/usr/share/kde4/apps/kconf_update")
-set(KDE4_AUTOSTART_INSTALL_DIR "/usr/share/autostart")
-set(KDE4_XDG_APPS_INSTALL_DIR        "/usr/share/applications/kde4")
-set(KDE4_XDG_DIRECTORY_INSTALL_DIR   "/usr/share/desktop-directories")
+set(KDE4_LIB_INSTALL_DIR     "$ENV{SYSROOT_DIR}/usr/lib")
+set(KDE4_IMPORTS_INSTALL_DIR     "$ENV{SYSROOT_DIR}/usr/lib/kde4/imports")
+set(KDE4_LIBEXEC_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/lib/kde4/libexec")
+set(KDE4_LIBKDEINIT_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/lib/kde4/libkdeinit")
+set(KDE4_INCLUDE_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/include")
+set(KDE4_BIN_INSTALL_DIR     "$ENV{SYSROOT_DIR}/usr/bin")
+set(KDE4_SBIN_INSTALL_DIR    "$ENV{SYSROOT_DIR}/usr/sbin")
+set(KDE4_DATA_INSTALL_DIR    "$ENV{SYSROOT_DIR}/usr/share/kde4/apps")
+set(KDE4_HTML_INSTALL_DIR    "$ENV{SYSROOT_DIR}/usr/share/doc/kde/HTML")
+set(KDE4_CONFIG_INSTALL_DIR  "$ENV{SYSROOT_DIR}/usr/share/kde4/config")
+set(KDE4_ICON_INSTALL_DIR    "$ENV{SYSROOT_DIR}/usr/share/icons")
+set(KDE4_KCFG_INSTALL_DIR    "$ENV{SYSROOT_DIR}/usr/share/kde4/config.kcfg")
+set(KDE4_LOCALE_INSTALL_DIR  "$ENV{SYSROOT_DIR}/usr/share/locale")
+set(KDE4_MIME_INSTALL_DIR    "$ENV{SYSROOT_DIR}/usr/share/mimelnk")
+set(KDE4_SOUND_INSTALL_DIR   "$ENV{SYSROOT_DIR}/usr/share/sounds")
+set(KDE4_TEMPLATES_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/share/templates")
+set(KDE4_WALLPAPER_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/share/wallpapers")
+set(KDE4_KCONF_UPDATE_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/share/kde4/apps/kconf_update")
+set(KDE4_AUTOSTART_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/share/autostart")
+set(KDE4_XDG_APPS_INSTALL_DIR        "$ENV{SYSROOT_DIR}/usr/share/applications/kde4")
+set(KDE4_XDG_DIRECTORY_INSTALL_DIR   "$ENV{SYSROOT_DIR}/usr/share/desktop-directories")
 set(KDE4_SYSCONF_INSTALL_DIR "/etc")
-set(KDE4_MAN_INSTALL_DIR     "/usr/share/man")
-set(KDE4_INFO_INSTALL_DIR    "/usr/share/info")
-set(KDE4_DBUS_INTERFACES_DIR "/usr/share/dbus-1/interfaces")
-set(KDE4_DBUS_SERVICES_DIR   "/usr/share/dbus-1/services")
-set(KDE4_SERVICES_INSTALL_DIR "/usr/share/kde4/services")
-set(KDE4_SERVICETYPES_INSTALL_DIR "/usr/share/kde4/servicetypes")
+set(KDE4_MAN_INSTALL_DIR     "$ENV{SYSROOT_DIR}/usr/share/man")
+set(KDE4_INFO_INSTALL_DIR    "$ENV{SYSROOT_DIR}/usr/share/info")
+set(KDE4_DBUS_INTERFACES_DIR "$ENV{SYSROOT_DIR}/usr/share/dbus-1/interfaces")
+set(KDE4_DBUS_SERVICES_DIR   "$ENV{SYSROOT_DIR}/usr/share/dbus-1/services")
+set(KDE4_SERVICES_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/share/kde4/services")
+set(KDE4_SERVICETYPES_INSTALL_DIR "$ENV{SYSROOT_DIR}/usr/share/kde4/servicetypes")
 
 set(KDE4_TARGET_PREFIX KDE4__ )
 
