This is a new requirement for libbluray 0.7.0.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
PKGS_FOUND += bluray
endif
+ifdef HAVE_ANDROID
+WITH_FONTCONFIG = 0
+else
+ifdef HAVE_IOS
+WITH_FONTCONFIG = 0
+else
+ifdef HAVE_WIN32
+WITH_FONTCONFIG = 0
+else
+WITH_FONTCONFIG = 1
+endif
+endif
+endif
+
DEPS_bluray = libxml2 $(DEPS_libxml2) freetype2 $(DEPS_freetype2)
BLURAY_CONF = --disable-examples \
--with-libxml2 \
--enable-bdjava
+ifneq ($(WITH_FONTCONFIG), 0)
+DEPS_bluray += fontconfig $(DEPS_fontconfig)
+else
+BLURAY_CONF += --without-fontconfig
+endif
+
$(TARBALLS)/libbluray-$(BLURAY_VERSION).tar.bz2:
$(call download,$(BLURAY_URL))