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