forked from ports/contrib
15 lines
692 B
Diff
15 lines
692 B
Diff
--- a/trunk/Source/autotools/FindDependencies.m4
|
|
+++ b/trunk/Source/autotools/FindDependencies.m4
|
|
@@ -376,4 +376,11 @@
|
|
[cairo-ft fontconfig >= fontconfig_required_version freetype2 >= freetype2_required_version harfbuzz >= harfbuzz_required_version])
|
|
fi
|
|
+# HarfBuzz 0.9.18 splits harbuzz-icu into a separate library.
|
|
+# Since we support earlier HarfBuzz versions we keep this conditional for now.
|
|
+if $PKG_CONFIG --atleast-version 0.9.18 harfbuzz; then
|
|
+ PKG_CHECK_MODULES(HARFBUZZ_ICU, harfbuzz-icu >= $harfbuzz_required_version)
|
|
+ FREETYPE_CFLAGS+=" $HARFBUZZ_ICU_CFLAGS"
|
|
+ FREETYPE_LIBS+=" $HARFBUZZ_ICU_LIBS"
|
|
+fi
|
|
AC_SUBST([FREETYPE_CFLAGS])
|
|
AC_SUBST([FREETYPE_LIBS])
|