Home | History | Annotate | Line # | Download | only in freetype
      1 #	$NetBSD: Makefile,v 1.24 2019/07/21 12:15:14 rjs Exp $
      2 
      3 .include <bsd.own.mk>
      4 
      5 SUBDIR=	config
      6 
      7 .PATH:	${X11SRCDIR.freetype}/include/freetype
      8 
      9 INCSDIR=${X11INCDIR}/freetype2/freetype
     10 
     11 INCS=	freetype.h ftadvanc.h ftbbox.h ftbdf.h ftbitmap.h ftbzip2.h ftcache.h \
     12 	ftchapters.h ftcid.h ftcolor.h ftdriver.h fterrdef.h fterrors.h \
     13 	ftfntfmt.h ftgasp.h \
     14 	ftglyph.h ftgxval.h ftgzip.h ftimage.h ftincrem.h ftlcdfil.h ftlist.h \
     15 	ftlzw.h ftmac.h ftmm.h ftmodapi.h ftmoderr.h ftotval.h ftoutln.h \
     16 	ftparams.h ftpfr.h ftrender.h ftsizes.h ftsnames.h ftstroke.h ftsynth.h \
     17 	ftsystem.h fttrigon.h fttypes.h ftwinfnt.h \
     18 	t1tables.h ttnameid.h tttables.h tttags.h
     19 
     20 SCRIPTS=	freetype-config
     21 
     22 CLEANFILES+=	${SCRIPTS}
     23 
     24 FT_VERSION!=	sed -n '/^version_info=/{s/version_info=.\([0-9]*\):\([0-9]*\):\([0-9]*\)./\1.\2.\3/;p;q;}' < ${X11SRCDIR.freetype}/builds/unix/configure.ac
     25 
     26 # XXX hijack config-subst from Xft
     27 CONFIG_SUBST=	${TOOL_SED} \
     28 		-e 's,%prefix%,${X11ROOTDIR},' \
     29 		-e 's,%exec_prefix%,${X11BINDIR},' \
     30 		-e 's,%libdir%,${X11USRLIBDIR},g' \
     31 		-e 's,%includedir%,${X11INCDIR},' \
     32 		-e 's,%ft_version%,${FT_VERSION},' \
     33 		-e 's,%LIBS_CONFIG%,-lfreetype -lz -lbz2,' \
     34 		-e 's,%LIBSSTATIC_CONFIG%,-lfreetype -lz -lbz2,' \
     35 		-e 's,%build_libtool_libs%,yes,' \
     36 		-e 's@%hardcode_libdir_flag_spec%@-Wl,-rpath,${X11USRLIBDIR}@' \
     37 		-e 's,%FT2_EXTRA_LIBS%,,' \
     38 		-e 's,%LIBZ%,-lz,' \
     39 		-e 's,%LIBBZ2%,-lbz2,' \
     40 		-e 's,@FT2_EXTRA_LIBS@,,' \
     41 		-e 's,@LIBZ@,-lz,' \
     42 		-e 's,@LIBBZ2@,-lbz2,'
     43 
     44 .PATH: ${X11SRCDIR.freetype}/builds/unix
     45 freetype-config: freetype-config.in
     46 	${_MKTARGET_CREATE}
     47 	${CONFIG_SUBST} < ${.ALLSRC} > ${.TARGET}
     48 
     49 .include <bsd.x11.mk>
     50 .include <bsd.prog.mk>
     51 .include <bsd.subdir.mk>
     52