rules.mak 954 Bytes
Newer Older
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
1 2 3 4 5
# faad2

FAAD2_VERSION := 2.7
FAAD2_URL := $(SF)/faac/faad2-$(FAAD2_VERSION).tar.gz

6 7
ifeq ($(findstring $(ARCH),arm),)
# FAAD is a lot slower than lavc on ARM. Skip it.
8
ifdef GPL
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
9
PKGS += faad2
10
endif
11
endif
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
12 13

$(TARBALLS)/faad2-$(FAAD2_VERSION).tar.gz:
14
	$(call download_pkg,$(FAAD2_URL),faad2)
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
15 16 17 18 19

.sum-faad2: faad2-$(FAAD2_VERSION).tar.gz

faad2: faad2-$(FAAD2_VERSION).tar.gz .sum-faad2
	$(UNPACK)
20
ifndef HAVE_FPU
21
	$(APPLY) $(SRC)/faad2/faad2-fixed.patch
22
endif
23
	$(APPLY) $(SRC)/faad2/faad2-disable-drc.patch
24
	$(APPLY) $(SRC)/faad2/faad2-fix-71wPCEmapping.patch
25
	$(APPLY) $(SRC)/faad2/faad2-fix-cpe-reconstruction.patch
26
	$(APPLY) $(SRC)/faad2/faad2-add-define.patch
27 28
	cd $(UNPACK_DIR) && $(CC) -iquote . -E - </dev/null || sed -i 's/-iquote /-I/' libfaad/Makefile.am
	$(MOVE)
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
29 30

.faad2: faad2
31
	$(RECONF)
32
	cd $< && $(HOSTVARS) ./configure --without-drm $(HOSTCONF)
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
33 34 35
	cd $< && sed -i.orig "s/shrext_cmds/shrext/g" libtool
	cd $</libfaad && $(MAKE) install
	touch $@