summaryrefslogtreecommitdiff
path: root/misc/xdg-x11-dirs/dirs.mk
blob: 3796ab34fcae8528772a9ce6e50a5c031e462655 (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
# $NetBSD: dirs.mk,v 1.3 2005/05/31 18:53:32 jmmv Exp $
#
# This file is intended to be included by mk/dirs.mk, not directly by packages.
#

.if !defined(DIRS_XDG_X11_MK)
DIRS_XDG_X11_MK=	# defined

XDG_X11_DIRS=		share/application-registry
XDG_X11_DIRS+=		share/applications
XDG_X11_DIRS+=		share/desktop-directories
XDG_X11_DIRS+=		share/icons
XDG_X11_DIRS+=		share/images
XDG_X11_DIRS+=		share/mime-info
XDG_X11_DIRS+=		share/pixmaps
XDG_X11_DIRS+=		share/sounds
XDG_X11_DIRS+=		share/themes

.if defined(_USE_XDG_X11_DIRS) && !empty(_USE_XDG_X11_DIRS)
DEPENDS+=		xdg-x11-dirs>=${_USE_XDG_X11_DIRS}:../../misc/xdg-x11-dirs

.  for dir in ${XDG_X11_DIRS}
PRINT_PLIST_AWK+=	/^@exec $${MKDIR} %D/${dir:S|/|\\/|g}$$/ { next; }
PRINT_PLIST_AWK+=	/^@dirrm ${dir:S|/|\\/|g}$$/ \
				{ print "@comment in xdg-x11-dirs: " $$0; next; }
.  endfor
.  undef dir
.endif

.endif			# !defined(DIRS_XDG_X11_MK)