qt: playlist: use item title if available
[vlc.git] / contrib / src / theora / rules.mak
blob612c73ce0da5a7048e0b6ff02a6c044331924107
1 # Theora
3 THEORA_VERSION := 1.1.1
4 THEORA_URL := http://downloads.xiph.org/releases/theora/libtheora-$(THEORA_VERSION).tar.xz
6 PKGS += theora
7 ifeq ($(call need_pkg,"theora >= 1.0"),)
8 PKGS_FOUND += theora
9 endif
11 $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz:
12 $(call download_pkg,$(THEORA_URL),theora)
14 .sum-theora: libtheora-$(THEORA_VERSION).tar.xz
16 libtheora: libtheora-$(THEORA_VERSION).tar.xz .sum-theora
17 $(UNPACK)
18 $(APPLY) $(SRC)/theora/libtheora-compiler-differentiation.patch
19 $(APPLY) $(SRC)/theora/libtheora-no-forceaddr.patch
20 # Disable the generation of documentation. In 1.2.x it can be replaced by
21 # a --disable-doc parameter.
22 sed -i.orig "/^SUBDIRS =/s/doc//g" "$(UNPACK_DIR)/Makefile.am" "$(UNPACK_DIR)/Makefile.in"
23 $(UPDATE_AUTOCONFIG)
24 $(MOVE)
26 THEORACONF := $(HOSTCONF) \
27 --disable-spec \
28 --disable-sdltest \
29 --disable-oggtest \
30 --disable-vorbistest \
31 --disable-examples
33 ifndef BUILD_ENCODERS
34 THEORACONF += --disable-encode
35 endif
36 ifndef HAVE_FPU
37 THEORACONF += --disable-float
38 endif
39 ifdef HAVE_MACOSX64
40 THEORACONF += --disable-asm
41 endif
42 ifdef HAVE_IOS
43 THEORACONF += --disable-asm
44 endif
45 ifdef HAVE_WIN32
46 ifeq ($(ARCH),x86_64)
47 THEORACONF += --disable-asm
48 endif
49 endif
51 DEPS_theora = ogg $(DEPS_ogg)
53 .theora: libtheora
54 cd $< && $(HOSTVARS) ./configure $(THEORACONF)
55 cd $< && $(MAKE) install
56 touch $@