Make fc-cache a host tool.

This commit is contained in:
lukem 2003-09-12 18:52:57 +00:00
parent e2e6a041ad
commit 2be62157bb
2 changed files with 55 additions and 3 deletions

View File

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.1.1.1 2003/09/11 18:37:09 lukem Exp $
# $NetBSD: Makefile,v 1.2 2003/09/12 18:52:57 lukem Exp $
SUBDIR= pswrap
SUBDIR+=bdftopcf mkfontdir ucs2any
SUBDIR+=bdftopcf fc-cache mkfontdir ucs2any
SUBDIR+=makekeys .WAIT xkbcomp
XTODO= fc-cache
.include <bsd.subdir.mk>

View File

@ -0,0 +1,53 @@
# $NetBSD: Makefile,v 1.1 2003/09/12 18:52:59 lukem Exp $
NOMAN= 1
.include <bsd.own.mk>
HOSTPROG= fc-cache
FONTCONFIGSRC= ${X11SRCDIR.xc}/lib/fontconfig
FREETYPESRC= ${X11SRCDIR.xc}/extras/freetype2/src
.PATH: ${FONTCONFIGSRC}/${HOSTPROG}
SRCS= fc-cache.c
.PATH: ${FONTCONFIGSRC}/src
SRCS+= fcatomic.c fcblanks.c fccache.c fccfg.c fccharset.c fcdbg.c \
fcdefault.c fcdir.c fcfreetype.c fcfs.c fcinit.c fclang.c \
fclist.c fcmatch.c fcmatrix.c fcname.c fcpat.c fcstr.c fcxml.c
.PATH: ${FREETYPESRC}/autohint
.PATH: ${FREETYPESRC}/base
.PATH: ${FREETYPESRC}/bdf
.PATH: ${FREETYPESRC}/cff
.PATH: ${FREETYPESRC}/cid
.PATH: ${FREETYPESRC}/pcf
.PATH: ${FREETYPESRC}/pfr
.PATH: ${FREETYPESRC}/psaux
.PATH: ${FREETYPESRC}/pshinter
.PATH: ${FREETYPESRC}/psnames
.PATH: ${FREETYPESRC}/raster
.PATH: ${FREETYPESRC}/sfnt
.PATH: ${FREETYPESRC}/smooth
.PATH: ${FREETYPESRC}/truetype
.PATH: ${FREETYPESRC}/type1
.PATH: ${FREETYPESRC}/type42
.PATH: ${FREETYPESRC}/winfonts
SRCS+= autohint.c bdf.c cff.c ftbase.c ftbbox.c ftbdf.c ftdebug.c \
ftglyph.c ftinit.c ftmm.c ftsynth.c ftsystem.c fttype1.c \
ftxf86.c pcf.c pfr.c psaux.c pshinter.c psnames.c raster.c \
sfnt.c smooth.c truetype.c type1.c type1cid.c type42.c winfnt.c
.PATH: ${X11SRCDIR.xc}/extras/expat/lib
SRCS+= xmlparse.c xmlrole.c xmltok.c
.include "../../lib/expat/Makefile.expatdefs"
HOST_CPPFLAGS+= -I${DESTDIR}/${X11INCDIR} \
-I${DESTDIR}/${X11INCDIR}/freetype2 \
-I${X11SRCDIR.xc}/lib/expat \
-DFC_DEFAULT_FONTS='"${X11FONTDIR}/Type1"' -DHAVE_EXPAT \
${EXPAT_FLAGS}
.include <bsd.hostprog.mk>
.include <bsd.x11.mk>