diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2013-03-16 14:28:36 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2013-03-16 14:28:36 +0000 |
commit | 810e142e651862ec6f5eed380b07eee16bb0cf22 (patch) | |
tree | e779730b385a13f385f0b9c44be34a7a1a6769e3 /lib | |
parent | 0cd8bc8e25f4fa4328bdad6944ea778d78699d57 (diff) |
Generate and install fonts.conf and fonts.dtd.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fontconfig/Makefile | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/fontconfig/Makefile b/lib/fontconfig/Makefile index c05c1d61b..c43d96f64 100644 --- a/lib/fontconfig/Makefile +++ b/lib/fontconfig/Makefile @@ -1,4 +1,10 @@ -# $OpenBSD: Makefile,v 1.1 2013/03/09 14:34:40 matthieu Exp $ +# $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 \ @@ -10,5 +16,21 @@ SUBDIR += fontconfig 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> |