1# $NetBSD: Makefile,v 1.10 2015/07/20 04:10:40 mrg Exp $ 2 3NOMAN= 1 4 5.include <bsd.own.mk> 6 7HOSTPROG= fc-cache 8 9FONTCONFIG= ${X11SRCDIR.fontconfig} 10FREETYPE= ${X11SRCDIR.freetype} 11EXPAT= ${NETBSDSRCDIR}/external/mit/expat/dist 12 13.PATH: ${FONTCONFIG}/fc-cache 14SRCS.fc-cache= fc-cache.c 15 16.PATH: ${FONTCONFIG}/src 17SRCS.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 \ 22 ftglue.c 23 24.PATH: ${FREETYPE}/src/base 25SRCS.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 28 29.PATH: ${FREETYPE}/src/autofit 30SRCS.freetype+= autofit.c 31 32.PATH: ${FREETYPE}/src/bdf 33SRCS.freetype+= bdf.c 34 35.PATH: ${FREETYPE}/src/cff 36SRCS.freetype+= cff.c 37 38.PATH: ${FREETYPE}/src/cid 39SRCS.freetype+= type1cid.c 40 41.PATH: ${FREETYPE}/src/gzip 42SRCS.freetype+= ftgzip.c 43 44#.PATH: ${FREETYPE}/src/bzip2 45#SRCS.freetype+= ftbzip2.c 46 47.PATH: ${FREETYPE}/src/lzw 48SRCS.freetype+= ftlzw.c 49 50.PATH: ${FREETYPE}/src/pcf 51SRCS.freetype+= pcf.c 52 53.PATH: ${FREETYPE}/src/pfr 54SRCS.freetype+= pfr.c 55 56.PATH: ${FREETYPE}/src/psaux 57SRCS.freetype+= psaux.c 58 59.PATH: ${FREETYPE}/src/pshinter 60SRCS.freetype+= pshinter.c 61 62.PATH: ${FREETYPE}/src/psnames 63SRCS.freetype+= psnames.c 64 65.PATH: ${FREETYPE}/src/raster 66SRCS.freetype+= raster.c 67 68.PATH: ${FREETYPE}/src/sfnt 69SRCS.freetype+= sfnt.c 70 71.PATH: ${FREETYPE}/src/smooth 72SRCS.freetype+= smooth.c 73 74.PATH: ${FREETYPE}/src/truetype 75SRCS.freetype+= truetype.c 76 77.PATH: ${FREETYPE}/src/type1 78SRCS.freetype+= type1.c 79 80.PATH: ${FREETYPE}/src/type42 81SRCS.freetype+= type42.c 82 83.PATH: ${FREETYPE}/src/winfonts 84SRCS.freetype+= winfnt.c 85 86.PATH: ${EXPAT}/lib 87SRCS.expat= xmlparse.c xmltok.c xmlrole.c 88 89SRCS= ${SRCS.fc-cache} ${SRCS.fontconfig} ${SRCS.freetype} ${SRCS.expat} 90 91# XXX FONTCONFIG_PATH was arbitrarily chosen 92HOST_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 \ 106 -DHAVE_MKSTEMP \ 107 -DHAVE_SCANDIR \ 108 -DFLEXIBLE_ARRAY_MEMBER="/**/" 109HOST_CPPFLAGS+= -DFT_CONFIG_OPTION_DISABLE_BZIP2 110HOST_CPPFLAGS+= -I${FONTCONFIG} -I${FREETYPE} \ 111 -I${FREETYPE}/include -I${EXPAT}/lib \ 112 -I${FONTCONFIG}/../include \ 113 -I${DESTDIR}${X11INCDIR} -I. 114 115LDADD= -lz 116#LDADD+= -lbz2 117 118.include "../../lib/fontconfig/src/Makefile.fcarch" 119 120.include <bsd.x11.mk> 121.include <bsd.hostprog.mk> 122