2017-06-18 15:09:07 -06:00
|
|
|
# $OpenBSD: Makefile,v 1.5 2017/06/18 21:09:07 espie Exp $
|
2013-03-16 08:28:35 -06:00
|
|
|
|
|
|
|
FONTCONFIG = ${.CURDIR}/../../dist/fontconfig
|
|
|
|
FC_DEFAULT_FONTS = ${X11BASE}/lib/X11/fonts
|
2015-03-31 03:42:56 -06:00
|
|
|
FC_FONTPATH = "<dir>/usr/local/share/fonts</dir>"
|
2013-03-16 08:28:35 -06:00
|
|
|
CONFIGDIR = conf.d
|
|
|
|
FC_CACHEDIR = /var/cache/fontconfig
|
2013-03-09 07:34:40 -07:00
|
|
|
|
2017-06-18 15:09:07 -06:00
|
|
|
# Respect order:
|
|
|
|
SUBDIR = fc-case
|
|
|
|
|
|
|
|
# fc-lang depends on fc-case
|
|
|
|
SUBDIR += fc-lang fc-glyphname
|
|
|
|
|
|
|
|
# src requires fc-case fc-lang and fc-glyphname
|
|
|
|
SUBDIR += src \
|
2013-03-09 07:34:40 -07:00
|
|
|
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
|
|
|
|
|
2013-03-16 08:28:35 -06:00
|
|
|
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 > $@
|
|
|
|
|
2015-04-05 10:05:34 -06:00
|
|
|
cleandir clean: _SUBDIRUSE
|
2013-03-16 08:28:35 -06:00
|
|
|
rm -f fonts.conf
|
|
|
|
|
2013-03-09 07:34:40 -07:00
|
|
|
.include <bsd.subdir.mk>
|
|
|
|
.include <bsd.xorg.mk>
|