1# $NetBSD: Makefile,v 1.9 2005/01/21 05:15:36 rtr Exp $ 2 3.include <bsd.own.mk> 4 5LIB= Xft 6.PATH: ${X11SRCDIR.xc}/lib/${LIB} 7 8SRCS= xftcolor.c xftcore.c xftdbg.c xftdpy.c xftdraw.c xftextent.c \ 9 xftfont.c xftfreetype.c xftglyphs.c xftinit.c xftlist.c \ 10 xftname.c xftrender.c xftstr.c xftswap.c xftxlfd.c 11 12INCS= Xft.h XftCompat.h 13INCSDIR=${X11INCDIR}/X11/Xft 14 15LIBDPLIBS=\ 16 X11 ${.CURDIR}/../X11/dynamic \ 17 freetype ${.CURDIR}/../freetype2 \ 18 fontconfig ${.CURDIR}/../fontconfig/src \ 19 Xrender ${.CURDIR}/../Xrender 20 21MAN= Xft.3 22 23CPPFLAGS+= ${X11FLAGS.THREADS} 24CPPFLAGS+= -DFREETYPE2 -I${DESTDIR}${X11INCDIR}/freetype2 -DXFREE86_FT2 25 26# XXX it would be really swell if SCRIPTS was available from bsd.lib.mk 27FILES= xft.pc xft-config 28FILESDIR_xft.pc= ${X11USRLIBDIR}/pkgconfig 29FILESDIR_xft-config= ${X11BINDIR} 30FILESOWN_xft-config= ${BINOWN} 31FILESGRP_xft-config= ${BINGRP} 32FILESMODE_xft-config= ${BINMODE} 33 34CLEANFILES+=${FILES} 35realall: ${FILES} 36 37XFTDIR= ${X11SRCDIR.xc}/lib/Xft 38CONFIG_SUBST= ${HOST_SH} ${XFTDIR}/config/config-subst \ 39 prefix="${X11ROOTDIR}" \ 40 exec_prefix="${X11BINDIR}" \ 41 libdir="${X11USRLIBDIR}" \ 42 includedir="${X11INCDIR}" \ 43 hardcode_libdir_flag_spec="-Wl,-rpath,${X11USRLIBDIR}" \ 44 PACKAGE_VERSION="2.1.0" \ 45 FREETYPE_LIBS="-L${X11USRLIBDIR} -lfreetype" \ 46 FREETYPE_CFLAGS="-I${X11INCDIR}/freetype2" \ 47 XRENDER_LIBS="-L${X11USRLIBDIR} -lXrender" \ 48 XRENDER_CFLAGS="-I${X11INCDIR}" \ 49 FONTCONFIG_LIBS="-L${X11USRLIBDIR} -lfontconfig" \ 50 FONTCONFIG_CFLAGS="-I${X11INCDIR}" 51 52xft.pc: 53 ${CONFIG_SUBST} < ${XFTDIR}/xft.pc.in > ${.TARGET} 54 55xft-config: 56 ${CONFIG_SUBST} < ${XFTDIR}/xft-config.in > ${.TARGET} 57 58.include <bsd.x11.mk> 59.include <bsd.lib.mk> 60