freetype and expat are installed in /usr/local on my machine. Doing the
out-of-the box "make World" build of the XOrg tree produced several errors:
xc/lib/fontconfig Makefile could not find the freetype include files and libraries
xc/lib/Xft1 Makefile could not find expat library
xc/lib/Xft: could not find freetype include files
Brute-force fix - changing FREETYPE2INCDIR from "/usr/include" to
"/usr/local/include"; FREETYPE2INCLUDES to "-I$(FREETYPE2INCDIR)
-I$(FREETYPE2INCDIR)/freetype"; FREETYPE2LIBDIR to "/usr/local/dir"; EXPATLIB to
"-L/usr/local/lib -lexpat" directly in makefiles fixed the problem.
I am not sure what changes to Imake configuration files need to be made.
Try adding these lines to xc/config/cf/host.def:
#define HasFreeType2 YES
#define Freetype2Dir /usr/local
Thanks, Alan. I will test it. Additional problem:
lib/Xst Makefile does not add -I/usr/local/include and Xst could pick up
"unicode/utypes.h" from /usr/include. What do I need to add for ICU?
You would need to add all the missing imake infrastructure that's needed to do
this. We have $(ICUINC) in the Xst imakefiles in Solaris, but no way to set it,
and even that's missing from the ones in the open source tree.
(The Xst Imakefile in the open source tree seems to be very different than the
one I created, and even has the wrong copyright header - how did that happen?)
Damn - it looks like a lot of the Imake config work I did for the original XFreeST
releases has gotten lost in the latest trees. I guess I'll merge that back in.
I've committed changes that I think should fix this, but I don't have a FreeBSD
machine handy to check - Alex: can you confirm this fixes the problem? (I merged
the changes that worked for FreeBSD in our old XFreeST tree back into this tree.)