2016-11-19 01:43:19 -07:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2016/11/19 08:43:19 tb Exp $
|
2010-01-16 01:58:54 -07:00
|
|
|
|
|
|
|
FONT_FILES= \
|
2016-08-29 11:27:25 -06:00
|
|
|
DejaVuMathTeXGyre.ttf \
|
2010-01-16 01:58:54 -07:00
|
|
|
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 ; \
|
2016-10-02 03:23:26 -06:00
|
|
|
ln -s ../conf.avail/$$f ; \
|
2016-11-19 01:43:19 -07:00
|
|
|
chown -h ${BINOWN}:bin $$f ) ; \
|
2010-01-16 01:58:54 -07:00
|
|
|
done
|
|
|
|
@rm -f ${DESTDIR}${fontdir}/fonts.scale
|
|
|
|
mkfontscale ${DESTDIR}${fontdir}
|
2016-10-02 03:23:26 -06:00
|
|
|
chown root:wheel ${DESTDIR}${fontdir}/fonts.scale
|
2016-11-19 01:43:19 -07:00
|
|
|
chmod 644 ${DESTDIR}${fontdir}/fonts.scale
|
2010-01-16 01:58:54 -07:00
|
|
|
@rm -f ${DESTDIR}${fontdir}/fonts.dir
|
|
|
|
mkfontdir ${DESTDIR}${fontdir}
|
2016-10-02 03:23:26 -06:00
|
|
|
chown root:wheel ${DESTDIR}${fontdir}/fonts.dir
|
2016-11-19 01:43:19 -07:00
|
|
|
chmod 644 ${DESTDIR}${fontdir}/fonts.dir
|
2010-01-16 01:58:54 -07:00
|
|
|
|
|
|
|
.include <bsd.xorg.mk>
|