]> granicus.if.org Git - handbrake/commitdiff
HarfBuzz: disable Fontconfig (#609)
authorOleg Oshmyan <chortos@inbox.lv>
Fri, 10 Mar 2017 19:54:32 +0000 (21:54 +0200)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 10 Mar 2017 19:54:32 +0000 (12:54 -0700)
HarfBuzz uses Fontconfig only in command-line utilities, which we don't need.

contrib/harfbuzz/module.defs

index 07415f3f3b884d24aa4d930c5fcac3c7aae9f34e..064c92f22f568796d7a4ccdbb51202501c95943e 100644 (file)
@@ -1,9 +1,5 @@
 __deps__ := FREETYPE
 
-ifneq ($(BUILD.system),darwin)
-    __deps__ += FONTCONFIG
-endif
-
 $(eval $(call import.MODULE.defs,HARFBUZZ,harfbuzz,$(__deps__)))
 $(eval $(call import.CONTRIB.defs,HARFBUZZ))
 
@@ -17,14 +13,10 @@ HARFBUZZ.CONFIGURE.extra = \
     FREETYPE_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfreetype" \
     FREETYPE_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include/freetype2" \
 
-ifneq ($(BUILD.system),darwin)
-       # Tell configure where to find our version of fontconfig
-       HARFBUZZ.CONFIGURE.extra += \
-           --with-fontconfig=yes \
-           FONTCONFIG_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfontconfig" \
-           FONTCONFIG_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include"
-else
-    HARFBUZZ.CONFIGURE.extra += --with-coretext=yes --with-fontconfig=no --with-glib=no
+HARFBUZZ.CONFIGURE.extra += --with-fontconfig=no
+
+ifeq ($(BUILD.system),darwin)
+    HARFBUZZ.CONFIGURE.extra += --with-coretext=yes --with-glib=no
 endif
 
 ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))