Makefile
changeset 5117 d64bf0093ff4
parent 5108 aeaef6fe53b7
child 5187 12dc9dfa6af6
--- 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