Sync usage with man page.
[netbsd-mini2440.git] / external / mit / xorg / tools / fc-cache / Makefile
blob674a170e518cf61e2ca7073aaa70d8b7fa6ff039
1 # $NetBSD: Makefile,v 1.2 2008/07/31 01:37:58 mrg Exp $
3 NOMAN= 1
5 .include <bsd.own.mk>
7 HOSTPROG= fc-cache
9 FONTCONFIG= ${X11SRCDIR.fontconfig}
10 FREETYPE= ${X11SRCDIR.freetype}
11 EXPAT= ${X11SRCDIR.expat}/
13 .PATH: ${FONTCONFIG}/fc-cache
14 SRCS.fc-cache= fc-cache.c
16 .PATH: ${FONTCONFIG}/src
17 SRCS.fontconfig= fcatomic.c fcblanks.c fccache.c fccfg.c fccharset.c fcdbg.c \
18 fcdefault.c fcdir.c fcfreetype.c fcfs.c fcinit.c fclang.c \
19 fclist.c fcmatch.c fcmatrix.c fcname.c fcpat.c fcserialize.c \
20 fcstr.c fcxml.c ftglue.h ftglue.c
22 .PATH: ${FREETYPE}/src/base
23 SRCS.freetype= ftapi.c ftbase.c ftbbox.c ftbdf.c ftdebug.c ftglyph.c \
24 ftinit.c ftmm.c ftpfr.c ftstroke.c ftsynth.c ftsystem.c \
25 fttype1.c ftwinfnt.c ftxf86.c ftbitmap.c
27 .PATH: ${FREETYPE}/src/autofit
28 SRCS.freetype+= autofit.c
30 .PATH: ${FREETYPE}/src/bdf
31 SRCS.freetype+= bdf.c
33 .PATH: ${FREETYPE}/src/cff
34 SRCS.freetype+= cff.c
36 .PATH: ${FREETYPE}/src/cid
37 SRCS.freetype+= type1cid.c
39 .PATH: ${FREETYPE}/src/gzip
40 SRCS.freetype+= ftgzip.c
42 .PATH: ${FREETYPE}/src/lzw
43 SRCS.freetype+= ftlzw.c
45 .PATH: ${FREETYPE}/src/pcf
46 SRCS.freetype+= pcf.c
48 .PATH: ${FREETYPE}/src/pfr
49 SRCS.freetype+= pfr.c
51 .PATH: ${FREETYPE}/src/psaux
52 SRCS.freetype+= psaux.c
54 .PATH: ${FREETYPE}/src/pshinter
55 SRCS.freetype+= pshinter.c
57 .PATH: ${FREETYPE}/src/psnames
58 SRCS.freetype+= psnames.c
60 .PATH: ${FREETYPE}/src/raster
61 SRCS.freetype+= raster.c
63 .PATH: ${FREETYPE}/src/sfnt
64 SRCS.freetype+= sfnt.c
66 .PATH: ${FREETYPE}/src/smooth
67 SRCS.freetype+= smooth.c
69 .PATH: ${FREETYPE}/src/truetype
70 SRCS.freetype+= truetype.c
72 .PATH: ${FREETYPE}/src/type1
73 SRCS.freetype+= type1.c
75 .PATH: ${FREETYPE}/src/type42
76 SRCS.freetype+= type42.c
78 .PATH: ${FREETYPE}/src/winfonts
79 SRCS.freetype+= winfnt.c
81 .PATH: ${EXPAT}/lib
82 SRCS.expat= xmlparse.c xmltok.c xmlrole.c
84 SRCS= ${SRCS.fc-cache} ${SRCS.fontconfig} ${SRCS.freetype} ${SRCS.expat}
86 # XXX FONTCONFIG_PATH was arbitrarily chosen
87 HOST_CPPFLAGS= -DFONTCONFIG_PATH='"${DESTDIR}/etc/X11/fonts"' \
88 -DFC_DEFAULT_FONTS='"${X11FONTDIR}/Type1"' \
89 -DFC_CACHEDIR='"${DESTDIR}/var/cache/fontconfig"' \
90 -DHAVE_FT_BITMAP_SIZE_Y_PPEM \
91 -DHAVE_FT_GET_BDF_PROPERTY \
92 -DHAVE_FT_GET_NEXT_CHAR \
93 -DHAVE_FT_GET_PS_FONT_INFO \
94 -DHAVE_FT_GET_X11_FONT_FORMAT \
95 -DHAVE_FT_HAS_PS_GLYPH_NAMES \
96 -DHAVE_EXPAT -DXFREE86_FT2 -DHAVE_INTTYPES_H \
97 -DFT2_BUILD_LIBRARY \
98 -DXML_BYTE_ORDER=0 -DHAVE_MEMMOVE=1 \
99 -DHAVE_STDINT_H -DHAVE_RANDOM -DDARWIN_NO_CARBON
100 HOST_CPPFLAGS+= -I${FONTCONFIG} -I${FREETYPE} \
101 -I${FREETYPE}/include -I${EXPAT}/lib \
102 -I${FONTCONFIG}/../include \
103 -I${DESTDIR}${X11INCDIR} -I.
105 FCARCH_DEPFILE= fc-cache.c
106 .include "../../lib/fontconfig/src/Makefile.fcarch"
108 .include <bsd.x11.mk>
109 .include <bsd.hostprog.mk>