Subject: Re: freetype2 required for fontconfig
To: Thomas Klausner <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 10/28/2003 09:58:39
On Tue, 28 Oct 2003, Thomas Klausner wrote:

> > So I moved /usr/X11R6/bin/freetype-config out of the way. make clean and
> > then make worked.
> So we should probably link the correct freetype-config into
> .buildlinkdir/bin -- that should work, shouldn't it?

I tested it. I put old freetype-config back in place (I am glad I didn't
delete it). And the build failed.

Then I used the following and fontconfig built fine. (I based the
following example on libart2/

Index: graphics/freetype2/
RCS file: /cvsroot/pkgsrc/graphics/freetype2/,v
retrieving revision 1.9
diff -b -u -r1.9
--- graphics/freetype2/	2002/12/24 05:48:28	1.9
+++ graphics/freetype2/	2003/10/28 17:52:46
@@ -63,7 +63,8 @@
 USE_X11=			# defined

-BUILDLINK_FILES.freetype2=	include/ft2build.h
+BUILDLINK_FILES.freetype2=	bin/freetype-config
+BUILDLINK_FILES.freetype2+=	include/ft2build.h
 BUILDLINK_FILES.freetype2+=	include/freetype2/ft2build.h
 BUILDLINK_FILES.freetype2+=	include/freetype2/freetype/*
 BUILDLINK_FILES.freetype2+=	include/freetype2/freetype/cache/*

Should I commit the above?

This reminds me that I have had similar problems over past few years. My
01/June/2001 diary says: "After I woke up... smpeg didn't install. The
configure script found old /usr/local/bin/sdl-config but it was the wrong
version." And on 15/Mar/2002, I had wrong gtk-config. And again on
26/Nov/2002:  "I had a bogus /usr/bin/gtk-config in place which was being
used. This made the imlib only build partially. I finally realized it and
removed it. So it would use my good /usr/X11R6/bin/gtk-config instead."
And on 27/Nov/2002: "Also had a bad /usr/bin/imlib-config inplace. So I
removed it too."

It might be good to force some of these too.

   Jeremy C. Reed