Commit a1f22537 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contribs: use fixed-point for faad2 iff !HAVE_FPU

parent ec32355f
diff -ru faad2-2.7/libfaad/common.h faad2/libfaad/common.h
--- faad2-2.7/libfaad/common.h 2009-02-05 02:51:03.000000000 +0200
+++ faad2/libfaad/common.h 2009-09-01 20:41:20.000000000 +0300
@@ -79,6 +79,10 @@
@@ -79,6 +79,8 @@
#define FIXED_POINT
#endif
+#ifdef __arm__
+#define FIXED_POINT
+#endif
+
#define ERROR_RESILIENCE
......
......@@ -12,12 +12,15 @@ $(TARBALLS)/faad2-$(FAAD2_VERSION).tar.gz:
faad2: faad2-$(FAAD2_VERSION).tar.gz .sum-faad2
$(UNPACK)
(cd $@-$(FAAD2_VERSION); echo|$(CC) -iquote . -E - || sed -i 's/-iquote /-I/' libfaad/Makefile.am; autoreconf -ivf)
patch -p0 < $(SRC)/faad2/arm-fixed.patch
ifndef HAVE_FPU
(cd $@-$(FAAD2_VERSION) && patch -p1) < $(SRC)/faad2/faad2-fixed.patch
endif
(cd $@-$(FAAD2_VERSION) && $(CC) -iquote . -E - </dev/null || sed -i 's/-iquote /-I/' libfaad/Makefile.am)
mv $@-$(FAAD2_VERSION) $@
touch $@
.faad2: faad2
cd $< && autoreconf -fiv
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) CFLAGS="$(NOTHUMB)"
cd $< && sed -i.orig "s/shrext_cmds/shrext/g" libtool
cd $</libfaad && $(MAKE) install
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment