]> git.sesse.net Git - vlc/blob - contrib/src/vorbis/rules.mak
89df9377d60603f50945c524edc31904cb638552
[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         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-docs --disable-examples --disable-oggtest
34         cd $< && $(MAKE) install
35         touch $@
36
37 .sum-vorbisenc: .sum-vorbis
38         touch $@
39
40 DEPS_vorbisenc = vorbis $(DEPS_vorbis)
41
42 .vorbisenc:
43         touch $@