diff --git a/kde4/FUNCTIONS b/kde4/FUNCTIONS
index f41c6ca..900f37a 100755
--- a/kde4/FUNCTIONS
+++ b/kde4/FUNCTIONS
@@ -19,3 +19,21 @@ cmake -DCMAKE_INSTALL_PREFIX=$KDE4DIR \
../ &&
make
}
+
+# kde4 also needs a special default_install,
+# to maintain some environment variables
+default_install() {
+QTDIR=$INSTALL_ROOT/usr &&
+PATH=$QTDIR/bin/qt4:$PATH &&
+
+KDE4DIR=$INSTALL_ROOT/opt &&
+
+PATH=$KDE4DIR/bin:$PATH &&
+LD_LIBRARY_PATH=$KDE4DIR/lib:$LD_LIBRARY_PATH &&
+QT_PLUGIN_PATH=$KDE4DIR/lib/kde4/plugins &&
+
+XDG_DATA_DIRS=$KDE4DIR/share &&
+
+cd $SOURCE_DIRECTORY/build &&
+make install
+}
diff --git a/kde4/HISTORY b/kde4/HISTORY
index 44c6fb6..e587093 100644
--- a/kde4/HISTORY
+++ b/kde4/HISTORY
@@ -1,3 +1,7 @@
+2007-07-05 Treeve Jelbert <treeve AT sourcemage.org>
+ * FUNCTIONS: add default_install,
+ to fix environment when using 'delve INSTALL'
+
2007-06-04 Treeve Jelbert <treeve AT sourcemage.org>
* KDE_DEPENDS: add boost for kdepimlibs
(may need a sub_dpends?)
diff --git a/kde4/NOTES b/kde4/NOTES
index 4131584..a9d40e2 100644
--- a/kde4/NOTES
+++ b/kde4/NOTES
@@ -12,16 +12,19 @@
5. need proper xorg-modular support (most of this was copied from kde3
spells)
6. need sub-depends support
+ mostly added
-7. we need to check that our CFLAGS are being used correctly.
-
+#7. we need to check that our CFLAGS are being used correctly.
+# ok
8. need to check startup scripts (kdm4?), session manager?
coexistence with kde3?
-
+ duplicate icons on desktop
#9. must setup session bus (dbus) correctly, should not be necessary to do
this
# add 'eval `dbus-launch --auto-syntax` ' to ~./.xsession
10. add an entry for kde4 to /usr/share/xsessions (similar to that for kde3),
so that can run kde4 from kdm
-11. use the logic from kdebase/{BUILD,INSTALL} to preserve
/opt/share/config/kdm/
+#11. use the logic from kdebase/{BUILD,INSTALL} to preserve
+#/opt/share/config/kdm/
+# ok
diff --git a/kde4/kdebase4/DEPENDS b/kde4/kdebase4/DEPENDS
index 8b5b263..344d262 100755
--- a/kde4/kdebase4/DEPENDS
+++ b/kde4/kdebase4/DEPENDS
@@ -13,7 +13,8 @@ if check_if_xorg_modular_libs qt4 ; then
depends libxtst &&
depends libxxf86misc &&
depends xsetroot &&
- depends xset
+ depends xset &&
+ optional_depends libxdamage '' '' 'Compositing support'
fi &&