Browse Source

fix to freetype detection

Juan Linietsky 10 years ago
parent
commit
751202768c
1 changed files with 5 additions and 2 deletions
  1. 5 2
      platform/x11/detect.py

+ 5 - 2
platform/x11/detect.py

@@ -131,8 +131,11 @@ def configure(env):
 		env.ParseConfig('pkg-config openssl --cflags --libs')
 		env.ParseConfig('pkg-config openssl --cflags --libs')
 
 
 
 
-	env.ParseConfig('pkg-config freetype2 --cflags --libs')
-	env.Append(CCFLAGS=['-DFREETYPE_ENABLED'])
+	if (env["freetype"]=="yes"):
+		env.ParseConfig('pkg-config freetype2 --cflags --libs')
+
+	if (env["freetype"]!="no"):
+		env.Append(CCFLAGS=['-DFREETYPE_ENABLED'])
 
 
 	
 	
 	env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
 	env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])