Home | History | Annotate | Line # | Download | only in mkfontscale
Makefile revision 1.12.2.1
      1 #	$NetBSD: Makefile,v 1.12.2.1 2019/06/10 22:02:51 christos 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+=	ftapi.c 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 
     17 .PATH: ${FREETYPE}/src/autofit
     18 SRCS.freetype+=	autofit.c
     19 
     20 .PATH:	${FREETYPE}/src/bdf
     21 SRCS.freetype+=	bdf.c
     22 
     23 .PATH:	${FREETYPE}/src/cff
     24 SRCS.freetype+=	cff.c
     25 
     26 .PATH:	${FREETYPE}/src/cid
     27 SRCS.freetype+=	type1cid.c
     28 
     29 .PATH:	${FREETYPE}/src/gzip
     30 SRCS.freetype+=	ftgzip.c
     31 
     32 #.PATH:	${FREETYPE}/src/bzip2
     33 #SRCS.freetype+=	ftbzip2.c
     34 
     35 .PATH:	${FREETYPE}/src/lzw
     36 SRCS.freetype+=	ftlzw.c
     37 
     38 .PATH:	${FREETYPE}/src/pcf
     39 SRCS.freetype+=	pcf.c
     40 
     41 .PATH:	${FREETYPE}/src/pfr
     42 SRCS.freetype+=	pfr.c
     43 
     44 .PATH:	${FREETYPE}/src/psaux
     45 SRCS.freetype+=	psaux.c
     46 
     47 .PATH:	${FREETYPE}/src/pshinter
     48 SRCS.freetype+=	pshinter.c
     49 
     50 .PATH:	${FREETYPE}/src/psnames
     51 SRCS.freetype+=	psnames.c
     52 
     53 .PATH:	${FREETYPE}/src/raster
     54 SRCS.freetype+=	raster.c
     55 
     56 .PATH:	${FREETYPE}/src/sfnt
     57 SRCS.freetype+=	sfnt.c
     58 
     59 .PATH:	${FREETYPE}/src/smooth
     60 SRCS.freetype+=	smooth.c
     61 
     62 .PATH:	${FREETYPE}/src/truetype
     63 SRCS.freetype+=	truetype.c
     64 
     65 .PATH:	${FREETYPE}/src/type1
     66 SRCS.freetype+=	type1.c
     67 
     68 .PATH:	${FREETYPE}/src/type42
     69 SRCS.freetype+=	type42.c
     70 
     71 .PATH:	${FREETYPE}/src/winfonts
     72 SRCS.freetype+=	winfnt.c
     73 
     74 .PATH:	${X11SRCDIR.fontenc}/src
     75 SRCS.fontenc=	fontenc.c encparse.c
     76 
     77 SRCS+=	${SRCS.mkfontscale} ${SRCS.freetype} ${SRCS.fontenc}
     78 
     79 LDADD=	-lz
     80 #LDADD+=	-lbz2
     81 
     82 HOST_CPPFLAGS=	-DFONTENC_NO_LIBFONT -DXFREE86_FT2 -DFONTENC_NO_LIBFONT \
     83 		-DFT2_BUILD_LIBRARY -DDARWIN_NO_CARBON \
     84 		-DFONT_ENCODINGS_DIRECTORY=\"${DESTDIR}${X11FONTDIR}/encodings/encodings.dir\" \
     85 		-DPACKAGE_STRING=\"NetBSD\ tools\ version\"
     86 HOST_CPPFLAGS+=	-DFT_CONFIG_OPTION_DISABLE_BZIP2
     87 
     88 # If you make mkfontscale multithreaded, remove this and fix the
     89 # fontconfig atomic ops.
     90 HOST_CPPFLAGS+=	-DFC_NO_MT=1
     91 
     92 HOST_CPPFLAGS+=	-I${FREETYPE}/include -I${FREETYPE}/include/freetype \
     93 		-I${DESTDIR}${X11INCDIR} \
     94 		-I${DESTDIR}${X11INCDIR}/freetype2
     95 
     96 .include <bsd.x11.mk>
     97 .include <bsd.hostprog.mk>
     98