Commit 691e604c authored by Rafaël Carré's avatar Rafaël Carré

libass doesn't need fontconfig on android

parent c7d27607
...@@ -7,6 +7,12 @@ ifeq ($(call need_pkg,"libass"),) ...@@ -7,6 +7,12 @@ ifeq ($(call need_pkg,"libass"),)
PKGS_FOUND += ass PKGS_FOUND += ass
endif endif
ifdef HAVE_ANDROID
WITH_FONTCONFIG = 0
else
WITH_FONTCONFIG = 1
endif
$(TARBALLS)/libass-$(ASS_VERSION).tar.gz: $(TARBALLS)/libass-$(ASS_VERSION).tar.gz:
$(call download,$(ASS_URL)) $(call download,$(ASS_URL))
...@@ -16,10 +22,18 @@ libass: libass-$(ASS_VERSION).tar.gz .sum-ass ...@@ -16,10 +22,18 @@ libass: libass-$(ASS_VERSION).tar.gz .sum-ass
$(UNPACK) $(UNPACK)
$(MOVE) $(MOVE)
DEPS_ass = freetype2 $(DEPS_freetype2) fontconfig $(DEPS_fontconfig) fribidi DEPS_ass = freetype2 $(DEPS_freetype2) fribidi
ASS_CONF=--disable-enca
ifneq ($(WITH_FONTCONFIG), 0)
DEPS_ass += fontconfig $(DEPS_fontconfig)
else
ASS_CONF += --disable-fontconfig
endif
.ass: libass .ass: libass
#$(RECONF) $(UPDATE_AUTOCONFIG)
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3" ./configure $(HOSTCONF) --disable-enca cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3" ./configure $(HOSTCONF) $(ASS_CONF)
cd $< && $(MAKE) install cd $< && $(MAKE) install
touch $@ touch $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment