#THEORA_URL := $(CONTRIB_VIDEOLAN)/libtheora-$(THEORA_VERSION).tar.xz
PKGS += theora
+ifeq ($(call need_pkg,"theora >= 1.0"),)
+PKGS_FOUND += theora
+endif
$(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz:
$(call download,$(THEORA_URL))
libtheora: libtheora-$(THEORA_VERSION).tar.xz .sum-theora
$(UNPACK)
$(APPLY) $(SRC)/theora/libtheora-includes.patch
-ifdef HAVE_WIN64
- cd $(UNPACK_DIR) && autoreconf -fi -I m4 $(ACLOCAL_AMFLAGS)
-endif
+ echo 'ACLOCAL_AMFLAGS = -I m4' >> $(UNPACK_DIR)/Makefile.am
$(MOVE)
THEORACONF := $(HOSTCONF) \
THEORACONF += --disable-asm
endif
-.theora: libtheora .ogg
+DEPS_theora = ogg $(DEPS_ogg)
+
+.theora: libtheora
ifdef HAVE_WIN32
- cd $<; $(HOSTVARS) ./autogen.sh $(THEORACONF)
+ $(RECONF)
endif
- test -f $</config.status || \
- (cd $< && $(HOSTVARGS) ./configure $(THEORACONF))
+ cd $< && $(HOSTVARS) ./configure $(THEORACONF)
cd $< && $(MAKE) install
touch $@