1 # $NetBSD: Makefile,v 1.4 2004/04/12 15:41:27 dbj Exp $
9 .PATH
: ${X11SRCDIR.xc
}/programs
/mkfontscale
10 SRCS.mkfontscale
= mkfontscale.c list.c hash.c ident.c
12 FREETYPETOP
= ${X11SRCDIR.xc
}/extras
/freetype2
13 FREETYPESRC
= ${FREETYPETOP}/src
15 #.PATH: ${FREETYPESRC}
16 .PATH
: ${FREETYPESRC}/autohint
17 .PATH
: ${FREETYPESRC}/base
18 .PATH
: ${FREETYPESRC}/bdf
19 .PATH
: ${FREETYPESRC}/cff
20 .PATH
: ${FREETYPESRC}/cid
21 .PATH
: ${FREETYPESRC}/gzip
22 .PATH
: ${FREETYPESRC}/lzw
23 .PATH
: ${FREETYPESRC}/pcf
24 .PATH
: ${FREETYPESRC}/pfr
25 .PATH
: ${FREETYPESRC}/psaux
26 .PATH
: ${FREETYPESRC}/pshinter
27 .PATH
: ${FREETYPESRC}/psnames
28 .PATH
: ${FREETYPESRC}/raster
29 .PATH
: ${FREETYPESRC}/sfnt
30 .PATH
: ${FREETYPESRC}/smooth
31 .PATH
: ${FREETYPESRC}/truetype
32 .PATH
: ${FREETYPESRC}/type1
33 .PATH
: ${FREETYPESRC}/type42
34 .PATH
: ${FREETYPESRC}/winfonts
35 SRCS.freetype
= ftapi.c ftbase.c ftbbox.c ftbdf.c ftdebug.c ftglyph.c \
36 ftinit.c ftlzw.c ftmm.c ftpfr.c ftsynth.c ftsystem.c \
37 fttype1.c ftwinfnt.c ftxf86.c autohint.c bdf.c cff.c \
38 type1cid.c ftgzip.c pcf.c pfr.c psaux.c pshinter.c psnames.c \
39 raster.c sfnt.c smooth.c truetype.c type1.c type42.c winfnt.c
41 .PATH
: ${X11SRCDIR.xc
}/lib
/font
/fontfile
42 .PATH
: ${X11SRCDIR.xc
}/xc
/lib
/font
/include
43 SRCS.fontenc
= encparse.c fontenc.c
45 # XXX we should be declaring some of these on a per <fn> basis but
46 # XXX HOST_CPPFLAGS doesn't support it we could CPPFLAGS= and then
47 # XXX use CPPFLAGS but thats lame
48 HOST_CPPFLAGS
+= -DFONTENC_NO_LIBFONT \
49 ${X11FLAGS.THREADLIB
} \
50 -DFREETYPE2
-DXFREE86_FT2 \
51 -DFT_CONFIG_OPTION_SYSTEM_ZLIB \
52 -DFONT_ENCODINGS_DIRECTORY
=\"${X11FONTDIR}/encodings
/encodings.
dir\"
53 HOST_CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR} \
54 -I
${DESTDIR}${X11INCDIR}/freetype2 \
55 -I
${DESTDIR}${X11INCDIR}/X11
/fonts \
56 -I
${X11SRCDIR.xc
}/lib
/font
/include \
57 -I
${X11SRCDIR.xc
}/include/fonts
59 # This tells a cross build on darwin not to bother with
60 # resource fork font support which needs the carbon libraries.
61 HOST_CPPFLAGS
+= -DDARWIN_NO_CARBON
63 SRCS
= ${SRCS.mkfontscale
} ${SRCS.freetype
} ${SRCS.fontenc
}
68 .
include <bsd.hostprog.mk
>