contrib: using make -C should spread the threads from "make -j" properly
[vlc.git] / contrib / src / a52 / rules.mak
blob4e042a17dad2443e686da5bd13adb4d0a7d0aa2e
1 # liba52
3 A52DEC_VERSION := 0.7.4
4 A52DEC_URL := $(CONTRIB_VIDEOLAN)/a52/a52dec-$(A52DEC_VERSION).tar.gz
6 ifdef GPL
7 PKGS += a52
8 endif
10 $(TARBALLS)/a52dec-$(A52DEC_VERSION).tar.gz:
11 $(call download,$(A52DEC_URL))
13 .sum-a52: a52dec-$(A52DEC_VERSION).tar.gz
15 a52dec: a52dec-$(A52DEC_VERSION).tar.gz .sum-a52
16 $(UNPACK)
17 $(APPLY) $(SRC)/a52/liba52-pic.patch
18 $(APPLY) $(SRC)/a52/liba52-silence.patch
19 $(APPLY) $(SRC)/a52/liba52-inline.patch
20 ifndef HAVE_FPU
21 $(APPLY) $(SRC)/a52/liba52-fixed.diff
22 endif
23 $(MOVE)
25 .a52: a52dec
26 $(REQUIRE_GPL)
27 $(RECONF)
28 cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
29 cd $< && $(MAKE) -C liba52 install
30 cd $< && $(MAKE) -C include install
31 touch $@