enable truetype fonts for text objects when building with the original
[blender-staging.git] / source / blender / blenkernel / intern / Makefile
index eeaa4c574639e7eb13c1bead62dd25e2b8e233c5..2cb1f91634adf3d1f765c1d39cb865661675346d 100644 (file)
@@ -58,8 +58,6 @@ CPPFLAGS += -I../../bpython/include
 CPPFLAGS += -I../../avi
 CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
 
-CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2
-
 # we still refer to /include a bit...
 CPPFLAGS += -I../../include
 
@@ -74,3 +72,8 @@ CPPFLAGS += -I$(NAN_IKSOLVER)/include
 # path to our own external headerfiles
 CPPFLAGS += -I..
 
+ifdef WITH_FREETYPE2
+    CPPFLAGS += -DWITH_FREETYPE2
+    CPPFLAGS += -I$(NAN_FREETYPE)/include
+    CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2
+endif