1 # $NetBSD: Makefile,v 1.10 2015/07/20 04:10:40 mrg Exp $
9 FONTCONFIG
= ${X11SRCDIR.fontconfig
}
10 FREETYPE
= ${X11SRCDIR.freetype
}
11 EXPAT
= ${NETBSDSRCDIR}/external
/mit
/expat
/dist
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 \
18 fccharset.c fcdbg.c fccompat.c fcdefault.c fcdir.c \
19 fcfreetype.c fcfs.c fchash.c fcinit.c fclang.c \
20 fclist.c fcmatch.c fcmatrix.c fcname.c fcobjs.c \
21 fcpat.c fcserialize.c fcstat.c fcstr.c fcxml.c \
24 .PATH
: ${FREETYPE}/src
/base
25 SRCS.freetype
= ftapi.c ftbase.c ftbbox.c ftbdf.c ftdebug.c ftfntfmt.c \
26 ftglyph.c ftinit.c ftmm.c ftpfr.c ftstroke.c ftsynth.c \
27 ftsystem.c fttype1.c ftwinfnt.c ftbitmap.c
29 .PATH
: ${FREETYPE}/src
/autofit
30 SRCS.freetype
+= autofit.c
32 .PATH
: ${FREETYPE}/src
/bdf
35 .PATH
: ${FREETYPE}/src
/cff
38 .PATH
: ${FREETYPE}/src
/cid
39 SRCS.freetype
+= type1cid.c
41 .PATH
: ${FREETYPE}/src
/gzip
42 SRCS.freetype
+= ftgzip.c
44 #.PATH: ${FREETYPE}/src/bzip2
45 #SRCS.freetype+= ftbzip2.c
47 .PATH
: ${FREETYPE}/src
/lzw
48 SRCS.freetype
+= ftlzw.c
50 .PATH
: ${FREETYPE}/src
/pcf
53 .PATH
: ${FREETYPE}/src
/pfr
56 .PATH
: ${FREETYPE}/src
/psaux
57 SRCS.freetype
+= psaux.c
59 .PATH
: ${FREETYPE}/src
/pshinter
60 SRCS.freetype
+= pshinter.c
62 .PATH
: ${FREETYPE}/src
/psnames
63 SRCS.freetype
+= psnames.c
65 .PATH
: ${FREETYPE}/src
/raster
66 SRCS.freetype
+= raster.c
68 .PATH
: ${FREETYPE}/src
/sfnt
69 SRCS.freetype
+= sfnt.c
71 .PATH
: ${FREETYPE}/src
/smooth
72 SRCS.freetype
+= smooth.c
74 .PATH
: ${FREETYPE}/src
/truetype
75 SRCS.freetype
+= truetype.c
77 .PATH
: ${FREETYPE}/src
/type1
78 SRCS.freetype
+= type1.c
80 .PATH
: ${FREETYPE}/src
/type42
81 SRCS.freetype
+= type42.c
83 .PATH
: ${FREETYPE}/src
/winfonts
84 SRCS.freetype
+= winfnt.c
87 SRCS.expat
= xmlparse.c xmltok.c xmlrole.c
89 SRCS
= ${SRCS.fc-cache
} ${SRCS.fontconfig
} ${SRCS.freetype
} ${SRCS.expat
}
91 # XXX FONTCONFIG_PATH was arbitrarily chosen
92 HOST_CPPFLAGS
= -DFONTCONFIG_PATH
='"${DESTDIR}/etc/X11/fonts"' \
93 -DFC_DEFAULT_FONTS
='"${X11FONTDIR}/Type1"' \
94 -DFC_CACHEDIR
='"${DESTDIR}/var/cache/fontconfig"' \
95 -DHAVE_FT_BITMAP_SIZE_Y_PPEM \
96 -DHAVE_FT_GET_BDF_PROPERTY \
97 -DHAVE_FT_GET_NEXT_CHAR \
98 -DHAVE_FT_GET_PS_FONT_INFO \
99 -DHAVE_FT_GET_X11_FONT_FORMAT \
100 -DHAVE_FT_HAS_PS_GLYPH_NAMES \
101 -DHAVE_EXPAT
-DXFREE86_FT2
-DHAVE_INTTYPES_H \
102 -DFT2_BUILD_LIBRARY \
103 -DXML_BYTE_ORDER
=0 -DHAVE_MEMMOVE
=1 \
104 -DHAVE_STDINT_H
-DHAVE_RANDOM
-DDARWIN_NO_CARBON \
105 -DHAVE_SYS_TYPES_H
-DHAVE_FCNTL_H
-DHAVE_SYS_STAT_H \
108 -DFLEXIBLE_ARRAY_MEMBER
="/**/"
109 HOST_CPPFLAGS
+= -DFT_CONFIG_OPTION_DISABLE_BZIP2
110 HOST_CPPFLAGS
+= -I
${FONTCONFIG} -I
${FREETYPE} \
111 -I
${FREETYPE}/include -I
${EXPAT}/lib \
112 -I
${FONTCONFIG}/..
/include \
113 -I
${DESTDIR}${X11INCDIR} -I.
118 .
include "../../lib/fontconfig/src/Makefile.fcarch"
120 .
include <bsd.x11.mk
>
121 .
include <bsd.hostprog.mk
>