summaryrefslogtreecommitdiff
path: root/devel/cmake/patches/patch-aa
blob: fd0264652d417336a68819a4bc8579f288dad7d5 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$NetBSD: patch-aa,v 1.11 2015/04/07 20:53:48 adam Exp $

Patch in pkgsrc paths for finding stuff.

--- Modules/Platform/UnixPaths.cmake.orig	2015-03-10 14:38:44.000000000 +0000
+++ Modules/Platform/UnixPaths.cmake
@@ -33,7 +33,7 @@ get_filename_component(_CMAKE_INSTALL_DI
 # search types.
 list(APPEND CMAKE_SYSTEM_PREFIX_PATH
   # Standard
-  /usr/local /usr /
+  @LOCALBASE@ /usr/local /usr /
 
   # CMake install location
   "${_CMAKE_INSTALL_DIR}"
@@ -57,10 +57,10 @@ list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
   /usr/include/w32api
 
   # X11
-  /usr/X11R6/include /usr/include/X11
+  @X11BASE@/include /usr/X11R6/include /usr/include/X11
 
   # Other
-  /usr/pkg/include
+  @LOCALBASE@/include
   /opt/csw/include /opt/include
   /usr/openwin/include
   )
@@ -70,16 +70,16 @@ list(APPEND CMAKE_SYSTEM_LIBRARY_PATH
   /usr/lib/w32api
 
   # X11
-  /usr/X11R6/lib /usr/lib/X11
+  @X11BASE@/lib /usr/X11R6/lib /usr/lib/X11
 
   # Other
-  /usr/pkg/lib
+  @LOCALBASE@/lib
   /opt/csw/lib /opt/lib
   /usr/openwin/lib
   )
 
 list(APPEND CMAKE_SYSTEM_PROGRAM_PATH
-  /usr/pkg/bin
+  @LOCALBASE@/bin
   )
 
 list(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES