]> git.sesse.net Git - vlc/blob - contrib/src/speexdsp/rules.mak
contrib: use speexdsp 1.2rc3
[vlc] / contrib / src / speexdsp / rules.mak
1 # speexdsp
2
3 SPEEXDSP_VERSION := 1.2rc3
4 SPEEXDSP_URL := http://downloads.us.xiph.org/releases/speex/speexdsp-$(SPEEXDSP_VERSION).tar.gz
5
6 PKGS += speexdsp
7 ifeq ($(call need_pkg,"speexdsp"),)
8 PKGS_FOUND += speexdsp
9 endif
10
11 $(TARBALLS)/speexdsp-$(SPEEXDSP_VERSION).tar.gz:
12         $(call download,$(SPEEXDSP_URL))
13
14 .sum-speexdsp: speexdsp-$(SPEEXDSP_VERSION).tar.gz
15
16 speexdsp: speexdsp-$(SPEEXDSP_VERSION).tar.gz .sum-speexdsp
17         $(UNPACK)
18         $(MOVE)
19
20 SPEEXDSP_CONF := --enable-resample-full-sinc-table --disable-examples
21 ifeq ($(ARCH),aarch64)
22 # old neon, not compatible with aarch64
23 SPEEXDSP_CONF += --disable-neon
24 endif
25 ifndef HAVE_NEON
26 SPEEXDSP_CONF += --disable-neon
27 endif
28 ifndef HAVE_FPU
29 SPEEXDSP_CONF += --enable-fixed-point
30 ifeq ($(ARCH),arm)
31 SPEEXDSP_CONF += --enable-arm5e-asm
32 endif
33 endif
34
35 .speexdsp: speexdsp
36         mkdir -p $</m4 && $(RECONF)
37         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(SPEEXDSP_CONF)
38         cd $< && $(MAKE) install
39         touch $@