Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#	$NetBSD: Makefile,v 1.17 2023/02/24 17:08:31 mrg Exp $

.include <bsd.hostinit.mk>

HOSTPROG=	mkfontscale

FREETYPE=       ${X11SRCDIR.freetype}

.PATH:	${X11SRCDIR.${HOSTPROG}}
SRCS.mkfontscale=	mkfontscale.c hash.c ident.c list.c constlist.c

.PATH:	${FREETYPE}/src/base
SRCS.freetype+=	ftbase.c ftbbox.c ftbdf.c ftdebug.c \
		ftglyph.c ftinit.c ftmm.c ftpfr.c ftstroke.c ftsynth.c \
		ftsystem.c fttype1.c ftwinfnt.c ftbitmap.c \
		reallocarray.c

.PATH: ${FREETYPE}/src/autofit
SRCS.freetype+=	autofit.c

.PATH:	${FREETYPE}/src/bdf
SRCS.freetype+=	bdf.c

.PATH:	${FREETYPE}/src/cff
SRCS.freetype+=	cff.c

.PATH:	${FREETYPE}/src/cid
SRCS.freetype+=	type1cid.c

.PATH:	${FREETYPE}/src/gzip
SRCS.freetype+=	ftgzip.c

#.PATH:	${FREETYPE}/src/bzip2
#SRCS.freetype+=	ftbzip2.c

.PATH:	${FREETYPE}/src/lzw
SRCS.freetype+=	ftlzw.c

.PATH:	${FREETYPE}/src/pcf
SRCS.freetype+=	pcf.c

.PATH:	${FREETYPE}/src/pfr
SRCS.freetype+=	pfr.c

.PATH:	${FREETYPE}/src/psaux
SRCS.freetype+=	psaux.c

.PATH:	${FREETYPE}/src/pshinter
SRCS.freetype+=	pshinter.c

.PATH:	${FREETYPE}/src/psnames
SRCS.freetype+=	psnames.c

.PATH:	${FREETYPE}/src/raster
SRCS.freetype+=	raster.c

.PATH:	${FREETYPE}/src/sfnt
SRCS.freetype+=	sfnt.c

.PATH:	${FREETYPE}/src/smooth
SRCS.freetype+=	smooth.c

.PATH:	${FREETYPE}/src/truetype
SRCS.freetype+=	truetype.c

.PATH:	${FREETYPE}/src/type1
SRCS.freetype+=	type1.c

.PATH:	${FREETYPE}/src/type42
SRCS.freetype+=	type42.c

.PATH:	${FREETYPE}/src/winfonts
SRCS.freetype+=	winfnt.c

.PATH:	${X11SRCDIR.fontenc}/src
SRCS.fontenc=	fontenc.c encparse.c

SRCS+=	${SRCS.mkfontscale} ${SRCS.freetype} ${SRCS.fontenc}

LDADD=	-lz
#LDADD+=	-lbz2

HOST_CPPFLAGS=	-DFONTENC_NO_LIBFONT -DXFREE86_FT2 -DFONTENC_NO_LIBFONT \
		-DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON \
		-DFONT_ENCODINGS_DIRECTORY=\"${DESTDIR}${X11FONTDIR}/encodings/encodings.dir\" \
		-DPACKAGE_STRING=\"NetBSD\ tools\ version\"
HOST_CPPFLAGS+=	-DFT_CONFIG_OPTION_DISABLE_BZIP2

# If you make mkfontscale multithreaded, remove this and fix the
# fontconfig atomic ops.
HOST_CPPFLAGS+=	-DFC_NO_MT=1

HOST_CPPFLAGS+=	-I${FREETYPE}/include -I${FREETYPE}/include/freetype \
		-I${DESTDIR}${X11INCDIR} \
		-I${DESTDIR}${X11INCDIR}/freetype2

HOST_CPPFLAGS+=	-DTOOL_FCCACHE

.include <bsd.x11.mk>
.include <bsd.hostprog.mk>