]> git.sesse.net Git - vlc/blob - contrib/src/speexdsp/rules.mak
contrib: speexdsp: install headers in include/speex, where we expect them
[vlc] / 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         $(APPLY) $(SRC)/speexdsp/neon.patch
24         $(APPLY) $(SRC)/speexdsp/includedir.patch
25         $(MOVE)
26
27 SPEEXDSP_CONF := --enable-resample-full-sinc-table
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 $@