blob: 3b122adb37dedcfe3d35f429f5030331f214f5ec (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
macro( tde_setup_paths )
# --prefix
# install architecture-independent files in PREFIX
if( NOT PREFIX )
set( PREFIX "${CMAKE_INSTALL_PREFIX}" )
else( NOT PREFIX )
# PREFIX have precedence over CMAKE_INSTALL_PREFIX
set( CMAKE_INSTALL_PREFIX "${PREFIX}" )
endif( NOT PREFIX )
# --exec-prefix
# install architecture-dependent files in EPREFIX
if( NOT EPREFIX )
set( EPREFIX "${PREFIX}" )
endif( NOT EPREFIX )
# --bindir
# user executables
if( NOT BINDIR )
set( BINDIR "${EPREFIX}/bin" )
endif( NOT BINDIR )
# --sbindir
# system admin executables
if( NOT SBINDIR )
set( SBINDIR "${EPREFIX}/sbin" )
endif( NOT SBINDIR )
# --libexecdir
# program executables
if( NOT LIBEXECDIR )
set( LIBEXECDIR "${EPREFIX}/libexec" )
endif( NOT LIBEXECDIR )
# --sysconfdir
# read-only single-machine data
if( NOT SYSCONFDIR )
set( SYSCONFDIR "${PREFIX}/etc" )
endif( NOT SYSCONFDIR )
# --sharedstatedir
# modifiable architecture-independent data
if( NOT SHAREDSTATEDIR )
set( SHAREDSTATEDIR "${PREFIX}/com" )
endif( NOT SHAREDSTATEDIR )
# --localstatedir
# modifiable single-machine data
if( NOT LOCALSTATEDIR )
set( LOCALSTATEDIR "${PREFIX}/var" )
endif( NOT LOCALSTATEDIR )
# --libdir
# object code libraries
if( NOT LIBDIR )
set( LIBDIR "${EPREFIX}/lib" )
endif( NOT LIBDIR )
# --includedir
# C header files
if( NOT INCLUDEDIR )
set( INCLUDEDIR "${PREFIX}/include" )
endif( NOT INCLUDEDIR )
# --oldincludedir
# C header files for non-gcc
if( NOT OLDINCLUDEDIR )
set( OLDINCLUDEDIR "/usr/include" )
endif( NOT OLDINCLUDEDIR )
# --datarootdir
# read-only arch.-independent data root
if( NOT DATAROOTDIR )
set( DATAROOTDIR "${PREFIX}/share" )
endif( NOT DATAROOTDIR )
# --datadir
# read-only architecture-independent data
if( NOT DATADIR )
set( DATADIR "${DATAROOTDIR}" )
endif( NOT DATADIR )
# --infodir
# info documentation
if( NOT INFODIR )
set( INFODIR "${DATAROOTDIR}/info" )
endif( NOT INFODIR )
# --localedir
# locale-dependent data
if( NOT LOCALEDIR )
set( LOCALEDIR "${DATAROOTDIR}/locale" )
endif( NOT LOCALEDIR )
# --mandir
# man documentation
if( NOT MANDIR )
set( MANDIR "${DATAROOTDIR}/man" )
endif( NOT MANDIR )
# --docdir
# documentation root
if( NOT DOCDIR )
set( DOCDIR "${DATAROOTDIR}/doc/${PACKAGE}" )
endif( NOT DOCDIR )
# --htmldir
# html documentation
if( NOT HTMLDIR )
set( HTMLDIR "${DOCDIR}" )
endif( NOT HTMLDIR )
# --dvidir
# dvi documentation
if( NOT DVIDIR )
set( DVIDIR "${DOCDIR}" )
endif( NOT DVIDIR )
# --pdfdir
# pdf documentation
if( NOT PDFDIR )
set( PDFDIR "${DOCDIR}" )
endif( NOT PDFDIR )
# --psdir
# ps documentation
if( NOT PSDIR )
set( PSDIR "${DOCDIR}" )
endif( NOT PSDIR )
endmacro( tde_setup_paths )
|