summaryrefslogtreecommitdiff
path: root/lib/fontconfig/Makefile
blob: c43d96f642784da906fc29496b8d4a3ebef7efc6 (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
#	$OpenBSD: Makefile,v 1.2 2013/03/16 14:28:35 matthieu Exp $

FONTCONFIG =	${.CURDIR}/../../dist/fontconfig
FC_DEFAULT_FONTS = ${X11BASE}/lib/X11/fonts
FC_FONTPATH = "<dir>/usr/local/lib/X11/fonts</dir>"
CONFIGDIR = conf.d
FC_CACHEDIR = /var/cache/fontconfig

SUBDIR =	fc-case fc-lang fc-glyphname src \
		fc-cache fc-cat fc-list fc-match fc-pattern fc-query \
		fc-scan fc-validate conf.d pc doc

.ifmake	install
SUBDIR += fontconfig
.endif

obj:	_xenocara_obj

all:	fonts.conf _SUBDIRUSE

install: _SUBDIRUSE
	${INSTALL_DATA} fonts.conf ${DESTDIR}/etc/fonts
	${INSTALL_DATA} ${FONTCONFIG}/fonts.dtd ${DESTDIR}/etc/fonts

fonts.conf:	${FONTCONFIG}/fonts.conf.in
	@sed -e s,@FC_DEFAULT_FONTS@,${FC_DEFAULT_FONTS}, \
		-e s,@FC_FONTPATH@,${FC_FONTPATH}, \
		-e s,@CONFIGDIR@,${CONFIGDIR}, \
		-e s,@FC_CACHEDIR@,${FC_CACHEDIR}, \
		< ${FONTCONFIG}/fonts.conf.in > $@

clean: _SUBDIRUSE
	rm -f fonts.conf 

.include <bsd.subdir.mk>
.include <bsd.xorg.mk>