NetBSD/external/mit/xorg/bin/xft-config/Makefile
mrg ec49af9bdc fill in cflags for freetype. make xft-config.in depend on Makefile,
so that changes to the Makefile cause rebuilds.

fixes PR#40285.
2009-01-31 21:23:45 +00:00

34 lines
827 B
Makefile

# $NetBSD: Makefile,v 1.2 2009/01/31 21:23:45 mrg Exp $
.include <bsd.own.mk>
.PATH: ${X11SRCDIR.Xft} ${X11SRCDIR.Xft}/man
SCRIPTS= xft-config
MAN= xft-config.1
xft-config: xft-config.in
${_MKTARGET_CREATE}
${TOOL_SED} \
-e 's,@prefix@,${X11ROOTDIR},; \
s,@exec_prefix@,$${prefix},; \
s,@libdir@,$${prefix}/lib,; \
s,@includedir@,$${prefix}/include,; \
s,@VERSION@,2.1.12,; \
s,@FREETYPE_LIBS@,-lfreetype -lz,; \
s,@FREETYPE_CFLAGS@,-I$${includedir}/freetype2, ; \
s,@FONTCONFIG_LIBS@,-lfontconfig,; \
s,@FONTCONFIG_CFLAGS@,,; \
s,@XRENDER_LIBS@,-lXrender,; \
s,@XRENDER_CFLAGS@,,; \
s%-L\([^ ]*\)%-Wl,-R\1 &%g' \
< ${.ALLSRC} > ${.TARGET}.tmp && \
mv -f ${.TARGET}.tmp ${.TARGET}
xft-config.in: Makefile
CLEANFILES+= xft-config xft-config.tmp
.include <bsd.x11.mk>
.include <bsd.prog.mk>