diff -r 2a33a74925c5 -r a4a7fd847b77 Makefile --- a/Makefile Fri Nov 17 19:31:44 2006 +0000 +++ b/Makefile Fri Nov 17 22:15:55 2006 +0000 @@ -241,6 +241,12 @@ endif endif +ifdef WITH_FONTCONFIG + ifndef FONTCONFIG_CONFIG +$(error WITH_FONTCONFIG can't be used when FONTOCNFIG_CONFIG is not set. Edit Makefile.config to correct this) + endif +endif + ############################################################################## # # Compiler configuration @@ -508,6 +514,15 @@ LIBS += $(LDFLAGS_FREETYPE) endif +# fontconfig config +ifdef WITH_FONTCONFIG +CDEFS += -DWITH_FONTCONFIG +CCFLAGS_FONTCONFIG := $(shell $(FONTCONFIG_CONFIG) --cflags) +LDFLAGS_FONTCONFIG := $(shell $(FONTCONFIG_CONFIG) --libs) +CFLAGS += $(CCFLAGS_FONTCONFIG) +LIBS += $(LDFLAGS_FONTCONFIG) +endif + # iconv is enabled defaultly on OSX >= 10.3 ifdef OSX ifndef JAGUAR