Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / mit / xorg / bin / xft-config / Makefile
blob8569ffb8eada3c57c4f6042ceb3214a952cfdaeb
1 # $NetBSD: Makefile,v 1.1 2008/10/03 03:52:15 cube Exp $
3 .include <bsd.own.mk>
5 .PATH: ${X11SRCDIR.Xft} ${X11SRCDIR.Xft}/man
7 SCRIPTS= xft-config
8 MAN= xft-config.1
10 xft-config: xft-config.in
11 ${_MKTARGET_CREATE}
12 ${TOOL_SED} \
13 -e 's,@prefix@,${X11ROOTDIR},; \
14 s,@exec_prefix@,$${prefix},; \
15 s,@libdir@,$${prefix}/lib,; \
16 s,@includedir@,$${prefix}/include,; \
17 s,@VERSION@,2.1.12,; \
18 s,@FREETYPE_LIBS@,-lfreetype -lz,; \
19 s,@FREETYPE_CFLAGS@,-I$${includedir}/freetype2, ; \
20 s,@FONTCONFIG_LIBS@,-lfontconfig,; \
21 s,@FONTCONFIG_CFLAGS@,,; \
22 s,@XRENDER_LIBS@,-lXrender,; \
23 s,@XRENDER_CFLAGS@,,; \
24 s%-L\([^ ]*\)%-Wl,-R\1 &%g' \
25 < ${.ALLSRC} > ${.TARGET}.tmp && \
26 mv -f ${.TARGET}.tmp ${.TARGET}
28 xft-config.in: Makefile
30 CLEANFILES+= xft-config xft-config.tmp
32 .include <bsd.x11.mk>
33 .include <bsd.prog.mk>