2005-09-24 17:51:46 +04:00
|
|
|
# $NetBSD: Makefile,v 1.11 2005/09/24 13:51:47 chs Exp $
|
2003-09-12 06:49:56 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
LIB= Xfont
|
2004-03-06 06:05:39 +03:00
|
|
|
#.PATH: ${X11SRCDIR.xc}/lib/font
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
# bitmap
|
2003-09-12 06:49:56 +04:00
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/font/bitmap
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.bitmap= bdfread.c bdfutils.c bitmap.c bitmaputil.c bitscale.c \
|
|
|
|
bitmapfunc.c pcfread.c pcfwrite.c snfread.c fontink.c
|
2003-09-12 06:49:56 +04:00
|
|
|
.for fn in ${SRCS.bitmap}
|
2004-03-06 06:05:39 +03:00
|
|
|
CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/lib/font/include \
|
|
|
|
-I${X11SRCDIR.xc}/include/fonts
|
|
|
|
CPPFLAGS.${fn}+=-DBDFFORMAT -DPCFFORMAT -DSNFFORMAT
|
2003-09-12 06:49:56 +04:00
|
|
|
.endfor
|
|
|
|
CPPFLAGS.bitmapfunc.c+= -DX_GZIP_FONT_COMPRESSION
|
|
|
|
CPPFLAGS.bitscale.c+= -DX_GZIP_FONT_COMPRESSION
|
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
|
|
|
|
# fontfile
|
2003-09-12 06:49:56 +04:00
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/font/fontfile
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.fontfile= dirfile.c fontdir.c fontfile.c fileio.c fontscale.c \
|
|
|
|
defaults.c bitsource.c register.c renderers.c bufio.c \
|
|
|
|
decompress.c filewr.c printerfont.c ffcheck.c \
|
|
|
|
fontenc.c encparse.c fontencc.c gunzip.c
|
2003-09-12 06:49:56 +04:00
|
|
|
.for fn in ${SRCS.fontfile}
|
2004-03-06 06:05:39 +03:00
|
|
|
CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/lib/font/include \
|
|
|
|
-I${X11SRCDIR.xc}/include/fonts \
|
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/include
|
|
|
|
CPPFLAGS.${fn}+=-DFONTDIRATTRIB -DBUILD_SPEEDO -DBUILD_TYPE1 \
|
|
|
|
-DBUILD_CID -DBUILD_FREETYPE -DX_GZIP_FONT_COMPRESSION \
|
|
|
|
-DFONT_ENCODINGS_DIRECTORY=\"${X11FONTDIR}/encodings/encodings.dir\"
|
2003-09-12 06:49:56 +04:00
|
|
|
.endfor
|
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
|
|
|
|
# fc
|
2003-09-12 06:49:56 +04:00
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/font/fc
|
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/xtrans
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.fc= fsconvert.c fserve.c fsio.c transport.c
|
2003-09-12 06:49:56 +04:00
|
|
|
.for fn in ${SRCS.fc}
|
2004-03-06 06:05:39 +03:00
|
|
|
CPPFLAGS.${fn}= -I${DESTDIR}${X11INCDIR}/X11/fonts \
|
2003-09-12 06:49:56 +04:00
|
|
|
-I${X11SRCDIR.xc}/lib/font/include \
|
2004-04-05 16:03:25 +04:00
|
|
|
-I${X11SRCDIR.xc}/lib/xtrans \
|
2004-03-06 06:05:39 +03:00
|
|
|
-I${X11SRCDIR.xc}/include/fonts
|
|
|
|
CPPFLAGS.${fn}+=${X11FLAGS.CONNECTION} -DFONT_t -DTRANS_CLIENT \
|
|
|
|
-DTRANS_SERVER -DTRANS_REOPEN -DBSD44SOCKETS
|
2003-09-12 06:49:56 +04:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/font/fontcache
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.fontcache= fontcache.c
|
|
|
|
CPPFLAGS.fontcache.c= -DFONTCACHE
|
|
|
|
CPPFLAGS.fontcache.c+= -I${X11SRCDIR.xc}/lib/font/include \
|
|
|
|
-I${X11SRCDIR.xc}/include/fonts
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
|
|
|
|
# Speedo
|
2003-09-12 06:49:56 +04:00
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/font/Speedo
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.Speedo= spfuncs.c spfile.c spinfo.c sperr.c spfont.c spglyph.c \
|
|
|
|
spencode.c bics-unicode.c do_char.c do_trns.c \
|
|
|
|
out_bl2d.c out_blk.c out_scrn.c out_util.c reset.c \
|
|
|
|
set_spcs.c set_trns.c
|
2003-09-12 06:49:56 +04:00
|
|
|
.for fn in ${SRCS.Speedo}
|
2004-03-06 06:05:39 +03:00
|
|
|
CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/lib/font/include \
|
|
|
|
-I${X11SRCDIR.xc}/include/fonts \
|
2003-09-12 06:49:56 +04:00
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/include
|
|
|
|
.endfor
|
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
|
|
|
|
# Type1
|
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/font/Type1
|
|
|
|
SRCS.Type1= arith.c curves.c fontfcn.c hints.c lines.c objects.c \
|
|
|
|
paths.c regions.c scanfont.c spaces.c t1funcs.c \
|
|
|
|
t1info.c t1io.c t1malloc.c t1snap.c t1stub.c token.c \
|
|
|
|
type1.c util.c cidchar.c afm.c t1unicode.c
|
2003-09-12 06:49:56 +04:00
|
|
|
.for fn in ${SRCS.Type1}
|
2004-03-06 06:05:39 +03:00
|
|
|
CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/lib/font/include \
|
|
|
|
-I${X11SRCDIR.xc}/include/fonts \
|
2003-09-12 06:49:56 +04:00
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/include \
|
2004-03-06 06:05:39 +03:00
|
|
|
-I${DESTDIR}${X11INCDIR}/X11
|
|
|
|
CPPFLAGS.${fn}+=-DBUILDCID -DHAVE_CFM -DUSE_MMAP
|
2003-09-12 06:49:56 +04:00
|
|
|
.endfor
|
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
|
|
|
|
# FreeType
|
2003-09-12 06:49:56 +04:00
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/font/FreeType
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.FreeType= xttcap.c ftfuncs.c ftenc.c fttools.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/base
|
|
|
|
#SRCS.FreeType+= ftbase.c ftinit.c ftglyph.c ftbbox.c ftsystem.c fttype1.c ftxf86.c ftbdf.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/bdf
|
|
|
|
#SRCS.FreeType+= bdfdrivr.c bdflib.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/raster
|
|
|
|
#SRCS.FreeType+= ftrend1.c ftraster.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/smooth
|
|
|
|
#SRCS.FreeType+= ftsmooth.c ftgrays.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/truetype
|
|
|
|
#SRCS.FreeType+= ttdriver.c ttobjs.c ttpload.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/psaux
|
|
|
|
#SRCS.FreeType+= psauxmod.c psobjs.c t1cmap.c t1decode.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/type1
|
|
|
|
#SRCS.FreeType+= t1driver.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/cid
|
|
|
|
#SRCS.FreeType+= cidriver.c cidgload.c cidobjs.c cidload.c cidparse.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/type42
|
|
|
|
#SRCS.FreeType+= t42drivr.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/psnames
|
|
|
|
#SRCS.FreeType+= psmodule.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/sfnt
|
|
|
|
#SRCS.FreeType+= sfdriver.c ttload.c ttpost.c ttsbit.c ttcmap.c sfobjs.c ttcmap0.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/winfonts
|
|
|
|
#SRCS.FreeType+= winfnt.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/autohint
|
|
|
|
#SRCS.FreeType+= ahmodule.c ahhint.c ahglyph.c ahangles.c ahglobal.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/cff
|
|
|
|
#SRCS.FreeType+= cffdrivr.c cffobjs.c cffload.c cffparse.c cffcmap.c cffgload.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/pfr
|
|
|
|
#SRCS.FreeType+= pfrdrivr.c pfrobjs.c pfrload.c pfrgload.c pfrcmap.c
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/extras/freetype2/src/pcf
|
|
|
|
#SRCS.FreeType+= pcfdriver.c pcfutil.c
|
2003-09-12 06:49:56 +04:00
|
|
|
.for fn in ${SRCS.FreeType}
|
2004-03-06 06:05:39 +03:00
|
|
|
CPPFLAGS.${fn}= -I${DESTDIR}${X11INCDIR}/freetype2 \
|
2003-09-12 06:49:56 +04:00
|
|
|
-I${X11SRCDIR.xc}/include/fonts \
|
|
|
|
-I${X11SRCDIR.xc}/lib/font/include \
|
2003-09-30 10:41:29 +04:00
|
|
|
-I${DESTDIR}${X11INCDIR}/X11 \
|
2003-09-12 06:49:56 +04:00
|
|
|
-I${X11SRCDIR.xc}/programs/Xserver/include \
|
2004-03-06 06:05:39 +03:00
|
|
|
-I${X11SRCDIR.xc}/extras/freetype2/src/truetype \
|
|
|
|
-I${X11SRCDIR.xc}/extras/freetype2/src/pcf
|
|
|
|
CPPFLAGS.${fn}+=${X11FLAGS.SERVER} -DXFreeXDGA -DXFree86LOADER \
|
|
|
|
-DXF86VIDMODE -DXFREE86_FT2
|
2003-09-12 06:49:56 +04:00
|
|
|
.endfor
|
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
|
|
|
|
# X-TrueType
|
|
|
|
# .PATH: ${X11SRCDIR.xc}/lib/font/X-TrueType
|
|
|
|
# .PATH: ${X11SRCDIR.xc}/extras/FreeType/lib/arch/unix
|
|
|
|
# SRCS.X-TrueType=xttprop.c xttfuncs.c xttcconv.c xttcap.c xttmisc.c \
|
|
|
|
# xttblit.c freetype.c ftxcmap.c ftxsbit.c
|
|
|
|
#.for fn in ${SRCS.X-TrueType}
|
|
|
|
#CPPFLAGS.${fn}= -DTT_MAKE_OPTION_SINGLE_OBJECT=1 \
|
|
|
|
# -DTT_CONFIG_OPTION_EXTEND_ENGINE \
|
|
|
|
# -DOPT_ENCODINGS -DFREETYPE1_BUILD_DEFINES
|
|
|
|
# .endfor
|
|
|
|
|
|
|
|
|
|
|
|
# builtins
|
|
|
|
#.PATH: ${X11SRCDIR.xc}/lib/font/builtins
|
|
|
|
#SRCS.builtins= dir.c file.c fonts.c fpe.c render.c
|
|
|
|
#.for fn in ${SRCS.builtins}
|
|
|
|
#CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/lib/font/include \
|
|
|
|
# -I${X11SRCDIR.xc}/include/fonts
|
|
|
|
#.endfor
|
|
|
|
|
|
|
|
|
|
|
|
# util
|
2003-09-12 06:49:56 +04:00
|
|
|
.PATH: ${X11SRCDIR.xc}/lib/font/util
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS.util= utilbitmap.c fontnames.c fontutil.c fontxlfd.c \
|
|
|
|
format.c fontaccel.c atom.c miscutil.c private.c \
|
|
|
|
patcache.c
|
2003-09-12 06:49:56 +04:00
|
|
|
.for fn in ${SRCS.util}
|
2004-03-06 06:05:39 +03:00
|
|
|
CPPFLAGS.${fn}= -I${X11SRCDIR.xc}/lib/font/include \
|
|
|
|
-I${X11SRCDIR.xc}/include/fonts
|
2003-09-12 06:49:56 +04:00
|
|
|
.endfor
|
|
|
|
|
2004-03-06 06:05:39 +03:00
|
|
|
SRCS= ${SRCS.bitmap} ${SRCS.fontfile} ${SRCS.fc} \
|
|
|
|
${SRCS.fontcache} ${SRCS.Speedo} ${SRCS.Type1} \
|
|
|
|
${SRCS.FreeType} ${SRCS.X-TrueType} ${SRCS.builtins} \
|
|
|
|
${SRCS.util}
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2005-03-20 00:41:58 +03:00
|
|
|
SUBDIR= stubs
|
2003-09-12 06:49:56 +04:00
|
|
|
|
2005-09-24 17:51:46 +04:00
|
|
|
LIBDPLIBS=\
|
|
|
|
freetype ${.CURDIR}/../freetype2 \
|
|
|
|
Xext ${.CURDIR}/../Xext \
|
|
|
|
X11 ${.CURDIR}/../X11/dynamic
|
|
|
|
|
2003-09-14 00:17:57 +04:00
|
|
|
.include <bsd.x11.mk>
|
2003-09-12 06:49:56 +04:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.include <bsd.subdir.mk>
|