summaryrefslogtreecommitdiff
path: root/font/dejavu-ttf/Makefile
blob: c3ad3847e8f30772fca34f8ffa7d7e831ebe3c16 (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
# $OpenBSD: Makefile,v 1.1 2010/01/16 08:58:54 matthieu Exp $

FONT_FILES= \
	DejaVuSans-Bold.ttf \
	DejaVuSans-BoldOblique.ttf \
	DejaVuSans-ExtraLight.ttf \
	DejaVuSans-Oblique.ttf \
	DejaVuSans.ttf \
	DejaVuSansCondensed-Bold.ttf \
	DejaVuSansCondensed-BoldOblique.ttf \
	DejaVuSansCondensed-Oblique.ttf \
	DejaVuSansCondensed.ttf \
	DejaVuSansMono-Bold.ttf \
	DejaVuSansMono-BoldOblique.ttf \
	DejaVuSansMono-Oblique.ttf \
	DejaVuSansMono.ttf \
	DejaVuSerif-Bold.ttf \
	DejaVuSerif-BoldItalic.ttf \
	DejaVuSerif-Italic.ttf \
	DejaVuSerif.ttf \
	DejaVuSerifCondensed-Bold.ttf \
	DejaVuSerifCondensed-BoldItalic.ttf \
	DejaVuSerifCondensed-Italic.ttf \
	DejaVuSerifCondensed.ttf

CONFIG_FILES= \
	20-unhint-small-dejavu-sans-mono.conf \
	20-unhint-small-dejavu-sans.conf \
	20-unhint-small-dejavu-serif.conf

BINGRP=	wheel

fontdir=	${X11BASE}/lib/X11/fonts/TTF
fontconfigdir=	/etc/fonts

depend:

all:

clean:

cleandir:

install:
	@for f in ${FONT_FILES}; do \
		echo "${INSTALL_DATA} -c ${.CURDIR}/ttf/$$f ${DESTDIR}${fontdir}" ; \
		${INSTALL_DATA} -c ${.CURDIR}/ttf/$$f ${DESTDIR}${fontdir} ; \
	done
	@for f in ${CONFIG_FILES}; do \
		echo ${INSTALL_DATA} -c ${.CURDIR}/fontconfig/$$f \
			${DESTDIR}${fontconfigdir}/conf.avail ; \
		${INSTALL_DATA} -c ${.CURDIR}/fontconfig/$$f \
			${DESTDIR}${fontconfigdir}/conf.avail ; \
		( cd ${DESTDIR}${fontconfigdir}/conf.d ;  \
		  rm -f $$f ; \
		  ln -s ../conf.avail/$$f ) ; \
	done
	@rm -f ${DESTDIR}${fontdir}/fonts.scale
	mkfontscale ${DESTDIR}${fontdir}
	@rm -f ${DESTDIR}${fontdir}/fonts.dir
	mkfontdir ${DESTDIR}${fontdir}

.include <bsd.xorg.mk>