]> git.sesse.net Git - vlc/blob - contrib/src/vorbis/rules.mak
contribs: improve UNPACK macro
[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 ifdef BUILD_ENCODERS
11 PKGS += vorbisenc
12 endif
13
14 $(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz:
15         $(DOWNLOAD) $(VORBIS_URL)
16
17 .sum-vorbis: libvorbis-$(VORBIS_VERSION).tar.xz
18
19 libvorbis: libvorbis-$(VORBIS_VERSION).tar.xz .sum-vorbis
20         $(UNPACK)
21         mv $@-$(VORBIS_VERSION) $@
22         touch $@
23
24 .vorbis: libvorbis .ogg
25         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-docs --disable-examples --disable-oggtest
26         cd $< && $(MAKE) install
27         touch $@
28
29 .sum-vorbisenc: .sum-vorbis
30         touch $@
31
32 .vorbisenc: .vorbis
33         touch $@