]> git.sesse.net Git - vlc/blob - contrib/src/theora/rules.mak
17b80d18c91acac7355e1ebec40d33501c26c254
[vlc] / contrib / src / theora / rules.mak
1 # Theora
2
3 THEORA_VERSION := 1.1.1
4 THEORA_URL := http://downloads.xiph.org/releases/theora/libtheora-$(THEORA_VERSION).tar.xz
5 #THEORA_URL := $(CONTRIB_VIDEOLAN)/libtheora-$(THEORA_VERSION).tar.xz
6
7 PKGS += theora
8 ifeq ($(call need_pkg,"theora >= 1.0"),)
9 PKGS_FOUND += theora
10 endif
11
12 $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz:
13         $(call download,$(THEORA_URL))
14
15 .sum-theora: libtheora-$(THEORA_VERSION).tar.xz
16
17 libtheora: libtheora-$(THEORA_VERSION).tar.xz .sum-theora
18         $(UNPACK)
19         $(APPLY) $(SRC)/theora/libtheora-includes.patch
20         $(UPDATE_AUTOCONFIG)
21         $(MOVE)
22
23 THEORACONF := $(HOSTCONF) \
24         --disable-spec \
25         --disable-sdltest \
26         --disable-oggtest \
27         --disable-vorbistest \
28         --disable-examples
29
30 ifndef BUILD_ENCODERS
31 THEORACONF += --disable-encode
32 endif
33 ifndef HAVE_FPU
34 THEORACONF += --disable-float
35 endif
36 ifdef HAVE_MACOSX64
37 THEORACONF += --disable-asm
38 endif
39 ifdef HAVE_IOS
40 THEORACONF += --disable-asm
41 endif
42 ifdef HAVE_WIN64
43 THEORACONF += --disable-asm
44 endif
45
46 DEPS_theora = ogg $(DEPS_ogg)
47
48 .theora: libtheora
49         cd $< && autoreconf -ivf -I m4
50         cd $< && $(HOSTVARS) ./configure $(THEORACONF)
51         cd $< && $(MAKE) install
52         touch $@