enable truetype fonts for text objects when building with the original
[blender-staging.git] / source / blender / blenkernel / intern / Makefile
index db586d3f0179eabe31a37e88524d286d4d044ba8..2cb1f91634adf3d1f765c1d39cb865661675346d 100644 (file)
@@ -44,11 +44,7 @@ CFLAGS += $(LEVEL_1_C_WARNINGS)
 
 # OpenGL and Python
 CPPFLAGS += -I$(OPENGL_HEADERS)
-ifeq ($(OS),$(findstring $(OS), "freebsd"))
-    CPPFLAGS += -I$(NAN_PYTHON)$(NAN_PYTHON_VERSION)
-else
-    CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
-endif
+CPPFLAGS += -I$(NAN_PYTHON)/include/python$(NAN_PYTHON_VERSION)
 
 CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
 # Reference to the types in makesdna and imbuf
@@ -76,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