Contribs: fix harfbuzz tests build for ios/tvos
authorAndré Silva <andre.silva@xpand-it.com>
Wed, 12 Apr 2017 12:32:04 +0000 (14:32 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 13 Apr 2017 15:29:48 +0000 (17:29 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
contrib/src/harfbuzz/harfbuzz-coretext.patch [new file with mode: 0644]
contrib/src/harfbuzz/rules.mak

diff --git a/contrib/src/harfbuzz/harfbuzz-coretext.patch b/contrib/src/harfbuzz/harfbuzz-coretext.patch
new file mode 100644 (file)
index 0000000..15b39c4
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ru harfbuzz/configure.ac harfbuzz/configure.ac
+--- harfbuzz/configure.ac      2017-04-11 19:36:57.000000000 +0200
++++ harfbuzz/configure.ac      2017-04-12 10:05:34.000000000 +0200
+@@ -419,7 +419,7 @@
+               if $have_coretext; then
+                       CORETEXT_CFLAGS=
+-                      CORETEXT_LIBS="-framework CoreText -framework CoreGraphics"
++                      CORETEXT_LIBS="-framework CoreText -framework CoreGraphics -framework CoreFoundation"
+                       AC_SUBST(CORETEXT_CFLAGS)
+                       AC_SUBST(CORETEXT_LIBS)
+               fi
\ No newline at end of file
index 9eea552..b37cdef 100644 (file)
@@ -23,6 +23,7 @@ harfbuzz: harfbuzz-$(HARFBUZZ_VERSION).tar.bz2 .sum-harfbuzz
        $(UPDATE_AUTOCONFIG)
        $(APPLY) $(SRC)/harfbuzz/harfbuzz-aarch64.patch
        $(APPLY) $(SRC)/harfbuzz/harfbuzz-clang.patch
+       $(APPLY) $(SRC)/harfbuzz/harfbuzz-coretext.patch
        $(MOVE)
 
 DEPS_harfbuzz = freetype2 $(DEPS_freetype2)