]> git.sesse.net Git - vlc/blob - contrib/src/vorbis/rules.mak
contrib: run $(RECONF) in an arbitrary list of packages
[vlc] / contrib / src / vorbis / rules.mak
1 # libvorbis
2
3 VORBIS_VERSION := 1.3.2
4 VORBIS_URL := http://downloads.xiph.org/releases/vorbis/libvorbis-$(VORBIS_VERSION).tar.xz
5 #VORBIS_URL := $(CONTRIB_VIDEOLAN)/libvorbis-$(VORBIS_VERSION).tar.gz
6
7 ifndef HAVE_FPU
8 PKGS += vorbis
9 endif
10 ifeq ($(call need_pkg,"vorbis >= 1.1"),)
11 PKGS_FOUND += vorbis
12 endif
13 PKGS_ALL += vorbisenc
14 ifdef BUILD_ENCODERS
15 PKGS += vorbisenc
16 endif
17 ifeq ($(call need_pkg,"vorbisenc >= 1.1"),)
18 PKGS_FOUND += vorbisenc
19 endif
20
21 $(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz:
22         $(call download,$(VORBIS_URL))
23
24 .sum-vorbis: libvorbis-$(VORBIS_VERSION).tar.xz
25
26 libvorbis: libvorbis-$(VORBIS_VERSION).tar.xz .sum-vorbis
27         $(UNPACK)
28         $(MOVE)
29
30 DEPS_vorbis = ogg $(DEPS_ogg)
31
32 .vorbis: libvorbis
33         $(RECONF) -I m4
34         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-docs --disable-examples --disable-oggtest
35         cd $< && $(MAKE) install
36         touch $@
37
38 .sum-vorbisenc: .sum-vorbis
39         touch $@
40
41 DEPS_vorbisenc = vorbis $(DEPS_vorbis)
42
43 .vorbisenc:
44         touch $@