1 # $NetBSD: Makefile,v 1.9 2005/01/21 05:15:36 rtr Exp $
6 .PATH
: ${X11SRCDIR.xc
}/lib
/${LIB}
8 SRCS
= 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
12 INCS
= Xft.h XftCompat.h
13 INCSDIR
=${X11INCDIR}/X11
/Xft
16 X11
${.CURDIR
}/..
/X11
/dynamic \
17 freetype
${.CURDIR
}/..
/freetype2 \
18 fontconfig
${.CURDIR
}/..
/fontconfig
/src \
19 Xrender
${.CURDIR
}/..
/Xrender
23 CPPFLAGS
+= ${X11FLAGS.THREADS
}
24 CPPFLAGS
+= -DFREETYPE2
-I
${DESTDIR}${X11INCDIR}/freetype2
-DXFREE86_FT2
26 # XXX it would be really swell if SCRIPTS was available from bsd.lib.mk
27 FILES
= xft.
pc xft-config
28 FILESDIR_xft.
pc= ${X11USRLIBDIR}/pkgconfig
29 FILESDIR_xft-config
= ${X11BINDIR}
30 FILESOWN_xft-config
= ${BINOWN}
31 FILESGRP_xft-config
= ${BINGRP}
32 FILESMODE_xft-config
= ${BINMODE}
37 XFTDIR
= ${X11SRCDIR.xc
}/lib
/Xft
38 CONFIG_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}"
53 ${CONFIG_SUBST} < ${XFTDIR}/xft.
pc.in
> ${.TARGET
}
56 ${CONFIG_SUBST} < ${XFTDIR}/xft-config.in
> ${.TARGET
}