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