summaryrefslogtreecommitdiff
path: root/devel/cmake/patches/patch-Modules_FindX11.cmake
blob: 88a095d8f41ba339ed9214a49906abe9eaee2b47 (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
$NetBSD: patch-Modules_FindX11.cmake,v 1.4 2012/09/14 13:26:20 wiz Exp $

Patch in pkgsrc paths for finding X.

--- Modules/FindX11.cmake.orig	2011-10-04 16:09:24.000000000 +0000
+++ Modules/FindX11.cmake
@@ -61,7 +61,8 @@ IF (UNIX)
   SET(CMAKE_FIND_FRAMEWORK_SAVE ${CMAKE_FIND_FRAMEWORK})
   SET(CMAKE_FIND_FRAMEWORK NEVER)
   SET(X11_INC_SEARCH_PATH
-    /usr/pkg/xorg/include
+    @LOCALBASE@/xorg/include
+    @X11BASE@/include
     /usr/X11R6/include
     /usr/X11R7/include
     /usr/include/X11
@@ -71,7 +72,8 @@ IF (UNIX)
   )
 
   SET(X11_LIB_SEARCH_PATH
-    /usr/pkg/xorg/lib
+    @LOCALBASE@/xorg/lib
+    @X11BASE@/lib
     /usr/X11R6/lib
     /usr/X11R7/lib
     /usr/openwin/lib