summaryrefslogtreecommitdiff
path: root/mk/dirs.mk
blob: 7d0c81a43e93eb8713d34f1860699dcc5702ec21 (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
# $NetBSD: dirs.mk,v 1.14 2008/11/03 10:31:46 markd Exp $
#

.if !defined(DIRS_MK)
DIRS_MK=		# defined

_USE_GNOME1_DIRS=	# empty
_USE_GNOME2_DIRS=	# empty
_USE_KDE3_DIRS=		# empty
_USE_KDE4_DIRS=		# empty
_USE_TEXMF_DIRS=	# empty
_USE_THEME_DIRS=	# empty
_USE_XDG_DIRS=		# empty
_USE_XDG_X11_DIRS=	# empty
_USE_XFREE86_DIRS=	# empty

.for dir in ${USE_DIRS}
pkg:=			${dir:C/-[^-]*$//}
ver:=			${dir:C/^.*-//}

.  if ${pkg} == "gnome1" && ${_USE_GNOME1_DIRS} < ${ver}
_USE_GNOME1_DIRS:=	${ver}
.  elif ${pkg} == "gnome2" && ${_USE_GNOME2_DIRS} < ${ver}
_USE_GNOME2_DIRS:=	${ver}
.  elif ${pkg} == "kde3" && ${_USE_KDE3_DIRS} < ${ver}
_USE_KDE3_DIRS:=	${ver}
.  elif ${pkg} == "kde4" && ${_USE_KDE4_DIRS} < ${ver}
_USE_KDE4_DIRS:=	${ver}
.  elif ${pkg} == "texmf" && ${_USE_TEXMF_DIRS} < ${ver}
_USE_TEXMF_DIRS:=	${ver}
.  elif ${pkg} == "theme" && ${_USE_THEME_DIRS} < ${ver}
_USE_THEME_DIRS:=	${ver}
.  elif ${pkg} == "xdg" && ${_USE_XDG_DIRS} < ${ver} && !defined(USE_X11BASE)
_USE_XDG_DIRS:=		${ver}
.  elif ${pkg} == "xdg-x11" && ${_USE_XDG_X11_DIRS} < ${ver} && \
	defined(USE_X11BASE)
_USE_XDG_X11_DIRS:=	${ver}
.  endif

.endfor
.undef ver
.undef pkg
.undef dir

.if !empty(_USE_GNOME1_DIRS)
.  include "../../misc/gnome1-dirs/dirs.mk"
.endif

.if !empty(_USE_GNOME2_DIRS)
.  include "../../misc/gnome2-dirs/dirs.mk"
.endif

.if !empty(_USE_KDE3_DIRS)
.  include "../../misc/kde3-dirs/dirs.mk"
.endif

.if !empty(_USE_KDE4_DIRS)
.  include "../../misc/kde4-dirs/dirs.mk"
.endif

.if !empty(_USE_TEXMF_DIRS)
.  include "../../print/texmf-dirs/dirs.mk"
.endif

.if !empty(_USE_THEME_DIRS)
.  include "../../misc/theme-dirs/dirs.mk"
.endif

.if !empty(_USE_XDG_DIRS)
.  include "../../misc/xdg-dirs/dirs.mk"
.endif

.if !empty(_USE_XDG_X11_DIRS)
.  include "../../misc/xdg-x11-dirs/dirs.mk"
.endif

.endif # !defined(DIRS_MK)