summaryrefslogtreecommitdiff
path: root/misc/kdeartwork4/patches/patch-aa
blob: 7a748453bc20fa3180b1ce55bdeb1fa2693472ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-aa,v 1.1.1.1 2009/10/02 20:47:46 markd Exp $

--- cmake/modules/FindXscreensaver.cmake.orig	2009-03-08 22:15:30.000000000 +1300
+++ cmake/modules/FindXscreensaver.cmake
@@ -24,6 +24,7 @@ if (NOT XSCREENSAVER_FOUND)
         set(xscreensaver_alldirs ${xscreensaver_alldirs} ${xscreensaver_path}/${suffix})
      endforeach(xscreensaver_path ${xscreensaver_checkdirs} )
   endforeach(suffix lib${LIB_SUFFIX}/xscreensaver lib/xscreensaver lib64/xscreensaver libexec/xscreensaver bin/xscreensaver-hacks hacks)
+if (NOT XSCREENSAVER_DIR)
   FIND_PATH(XSCREENSAVER_DIR deco ${xscreensaver_alldirs})
 
   set(XSCREENSAVER_CONFIG_DIR)
@@ -48,7 +49,7 @@ if (NOT XSCREENSAVER_FOUND)
 	set(XSCREENSAVER_CONFIG_DIR "${XSCREENSAVER_CONFIG_DECO}/config/")
 	#MESSAGE(STATUS "XSCREENSAVER_CONFIG_DIR <${XSCREENSAVER_CONFIG_DIR}>")
   endif(XSCREENSAVER_CONFIG_DECO)
-
+endif(NOT XSCREENSAVER_DIR)
 
   # Try and locate XScreenSaver config when path doesn't include config
   if(NOT XSCREENSAVER_CONFIG_DIR)