xref: /netbsd-src/external/mit/xorg/tools/mkfontscale/Makefile (revision 7c192b2a5e1093666e67801684f930ef49b3b363)
1#	$NetBSD: Makefile,v 1.8 2016/02/28 22:12:26 riastradh Exp $
2
3NOMAN=		1
4
5.include <bsd.own.mk>
6
7HOSTPROG=	mkfontscale
8
9FREETYPE=       ${X11SRCDIR.freetype}
10
11.PATH:	${X11SRCDIR.${HOSTPROG}}
12SRCS.mkfontscale=	mkfontscale.c list.c hash.c ident.c
13
14.PATH:	${FREETYPE}/src/base
15SRCS.freetype+=	ftapi.c ftbase.c ftbbox.c ftbdf.c ftdebug.c ftfntfmt.c \
16		ftglyph.c ftinit.c ftmm.c ftpfr.c ftstroke.c ftsynth.c \
17		ftsystem.c fttype1.c ftwinfnt.c ftbitmap.c
18
19.PATH: ${FREETYPE}/src/autofit
20SRCS.freetype+=	autofit.c
21
22.PATH:	${FREETYPE}/src/bdf
23SRCS.freetype+=	bdf.c
24
25.PATH:	${FREETYPE}/src/cff
26SRCS.freetype+=	cff.c
27
28.PATH:	${FREETYPE}/src/cid
29SRCS.freetype+=	type1cid.c
30
31.PATH:	${FREETYPE}/src/gzip
32SRCS.freetype+=	ftgzip.c
33
34#.PATH:	${FREETYPE}/src/bzip2
35#SRCS.freetype+=	ftbzip2.c
36
37.PATH:	${FREETYPE}/src/lzw
38SRCS.freetype+=	ftlzw.c
39
40.PATH:	${FREETYPE}/src/pcf
41SRCS.freetype+=	pcf.c
42
43.PATH:	${FREETYPE}/src/pfr
44SRCS.freetype+=	pfr.c
45
46.PATH:	${FREETYPE}/src/psaux
47SRCS.freetype+=	psaux.c
48
49.PATH:	${FREETYPE}/src/pshinter
50SRCS.freetype+=	pshinter.c
51
52.PATH:	${FREETYPE}/src/psnames
53SRCS.freetype+=	psnames.c
54
55.PATH:	${FREETYPE}/src/raster
56SRCS.freetype+=	raster.c
57
58.PATH:	${FREETYPE}/src/sfnt
59SRCS.freetype+=	sfnt.c
60
61.PATH:	${FREETYPE}/src/smooth
62SRCS.freetype+=	smooth.c
63
64.PATH:	${FREETYPE}/src/truetype
65SRCS.freetype+=	truetype.c
66
67.PATH:	${FREETYPE}/src/type1
68SRCS.freetype+=	type1.c
69
70.PATH:	${FREETYPE}/src/type42
71SRCS.freetype+=	type42.c
72
73.PATH:	${FREETYPE}/src/winfonts
74SRCS.freetype+=	winfnt.c
75
76.PATH:	${X11SRCDIR.fontenc}/src
77SRCS.fontenc=	fontenc.c encparse.c
78
79SRCS+=	${SRCS.mkfontscale} ${SRCS.freetype} ${SRCS.fontenc}
80
81LDADD=	-lz
82#LDADD+=	-lbz2
83
84HOST_CPPFLAGS=	-DFONTENC_NO_LIBFONT -DXFREE86_FT2 -DFONTENC_NO_LIBFONT \
85		-DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON \
86		-DFONT_ENCODINGS_DIRECTORY=\"${X11FONTDIR}/encodings/encodings.dir\" \
87		-DPACKAGE_STRING=\"NetBSD\ tools\ version\"
88HOST_CPPFLAGS+=	-DFT_CONFIG_OPTION_DISABLE_BZIP2
89
90# If you make mkfontscale multithreaded, remove this and fix the
91# fontconfig atomic ops.
92HOST_CPPFLAGS+=	-DFC_NO_MT=1
93
94HOST_CPPFLAGS+=	-I${FREETYPE}/include -I${DESTDIR}${X11INCDIR} \
95		-I${DESTDIR}${X11INCDIR}/freetype2
96
97.include <bsd.x11.mk>
98.include <bsd.hostprog.mk>
99