3cc2b15bc899e7e5dfd19051c3fe75967480400f
[vlc.git] / contrib / src / speexdsp / rules.mak
1 # speexdsp
2
3 SPEEXDSP_VERSION := git
4 SPEEXDSP_HASH := HEAD
5 SPEEXDSP_GITURL := http://git.xiph.org/?p=speexdsp.git;a=snapshot;h=$(SPEEXDSP_HASH);sf=tgz
6
7 PKGS += speexdsp
8 ifeq ($(call need_pkg,"speexdsp"),)
9 PKGS_FOUND += speexdsp
10 endif
11
12 $(TARBALLS)/speexdsp-git.tar.gz:
13         $(call download,$(SPEEXDSP_GITURL))
14
15 .sum-speexdsp: speexdsp-$(SPEEXDSP_VERSION).tar.gz
16         $(warning $@ not implemented)
17         touch $@
18
19 speexdsp: speexdsp-$(SPEEXDSP_VERSION).tar.gz .sum-speexdsp
20         rm -Rf $@-git $@
21         mkdir -p $@-git
22         $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
23         $(MOVE)
24
25 SPEEXDSP_CONF := --enable-resample-full-sinc-table --disable-examples
26 ifeq ($(ARCH),aarch64)
27 # old neon,┬ánot compatible with aarch64
28 SPEEXDSP_CONF += --disable-neon
29 endif
30 ifndef HAVE_NEON
31 SPEEXDSP_CONF += --disable-neon
32 endif
33 ifndef HAVE_FPU
34 SPEEXDSP_CONF += --enable-fixed-point
35 ifeq ($(ARCH),arm)
36 SPEEXDSP_CONF += --enable-arm5e-asm
37 endif
38 endif
39
40 .speexdsp: speexdsp
41         mkdir -p $</m4 && $(RECONF)
42         cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(SPEEXDSP_CONF)
43         cd $< && $(MAKE) install
44         touch $@