]> git.sesse.net Git - vlc/blob - contrib/src/opus/rules.mak
contrib: opus: don't build extra programs and doc
[vlc] / contrib / src / opus / rules.mak
1 # opus
2
3 OPUS_VERSION := 1.1
4
5 OPUS_URL := http://downloads.xiph.org/releases/opus/opus-$(OPUS_VERSION).tar.gz
6
7 PKGS += opus
8 ifeq ($(call need_pkg,"opus >= 0.9.14"),)
9 PKGS_FOUND += opus
10 endif
11
12 $(TARBALLS)/opus-$(OPUS_VERSION).tar.gz:
13         $(call download,$(OPUS_URL))
14
15 .sum-opus: opus-$(OPUS_VERSION).tar.gz
16
17 opus: opus-$(OPUS_VERSION).tar.gz .sum-opus
18         $(UNPACK)
19         $(UPDATE_AUTOCONFIG)
20         $(MOVE)
21
22 OPUS_CONF= --disable-extra-programs --disable-doc
23 ifndef HAVE_FPU
24 OPUS_CONF += --enable-fixed-point
25 endif
26
27 .opus: opus
28         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(OPUS_CONF)
29         cd $< && $(MAKE) install
30         touch $@