summaryrefslogtreecommitdiff
path: root/x11/kde-workspace4/patches/patch-startkde.cmake
blob: f5aba28f43fcad5ef175dce2363b85a7870b0b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-startkde.cmake,v 1.1 2012/03/19 19:44:04 markd Exp $

--- startkde.cmake.orig	2007-11-29 02:29:24.000000000 +1300
+++ startkde.cmake
@@ -38,6 +38,12 @@ if [ -n "$bindir" ]; then
   esac
 fi
 
+qtbindir=@QTDIR@/bin
+case $PATH in
+  $qtbindir|$qtbindir:*|*:$qtbindir|*:$qtbindir:*) ;;
+  *) PATH=$qtbindir:$PATH; export PATH;;
+esac
+
 # Boot sequence:
 #
 # kdeinit is used to fork off processes which improves memory usage
@@ -219,11 +225,11 @@ usr_fdir=$HOME/.fonts
 
 if test -n "$KDEDIRS"; then
   kdedirs_first=`echo "$KDEDIRS"|sed -e 's/:.*//'`
-  sys_odir=$kdedirs_first/share/fonts/override
-  sys_fdir=$kdedirs_first/share/fonts
+  sys_odir=$kdedirs_first/share/kde/fonts/override
+  sys_fdir=$kdedirs_first/share/kde/fonts
 else
-  sys_odir=$KDEDIR/share/fonts/override
-  sys_fdir=$KDEDIR/share/fonts
+  sys_odir=$KDEDIR/share/kde/fonts/override
+  sys_fdir=$KDEDIR/share/kde/fonts
 fi
 
 # We run mkfontdir on the user's font dirs (if we have permission) to pick