]> git.sesse.net Git - vlc/blob - contrib/src/theora/rules.mak
contrib: run $(RECONF) in an arbitrary list of packages
[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         echo 'ACLOCAL_AMFLAGS = -I m4' >> $(UNPACK_DIR)/Makefile.am
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_WIN64
40 THEORACONF += --disable-asm
41 endif
42
43 DEPS_theora = ogg $(DEPS_ogg)
44
45 .theora: libtheora
46         $(RECONF)
47         cd $< && $(HOSTVARS) ./configure $(THEORACONF)
48         cd $< && $(MAKE) install
49         touch $@