[vlc-commits] Contribs: add faad2

Jean-Baptiste Kempf git at videolan.org
Wed Jun 29 00:03:07 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jun 28 19:57:31 2011 +0200| [6412bbbbd65fc2215c8bf71ea5c1cc96be5ab9fd] | committer: Jean-Baptiste Kempf

Contribs: add faad2

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6412bbbbd65fc2215c8bf71ea5c1cc96be5ab9fd
---

 contrib/src/faad2/arm-fixed.patch |   15 +++++++++++++++
 contrib/src/faad2/rules.mak       |   24 ++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/contrib/src/faad2/arm-fixed.patch b/contrib/src/faad2/arm-fixed.patch
new file mode 100644
index 0000000..966d97d
--- /dev/null
+++ b/contrib/src/faad2/arm-fixed.patch
@@ -0,0 +1,15 @@
+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 @@
+ #define FIXED_POINT
+ #endif
+ 
++#ifdef __arm__
++#define FIXED_POINT
++#endif
++
+ #define ERROR_RESILIENCE
+ 
+ 
+ 
diff --git a/contrib/src/faad2/rules.mak b/contrib/src/faad2/rules.mak
new file mode 100644
index 0000000..a9fadf3
--- /dev/null
+++ b/contrib/src/faad2/rules.mak
@@ -0,0 +1,24 @@
+# faad2
+
+FAAD2_VERSION := 2.7
+FAAD2_URL := $(SF)/faac/faad2-$(FAAD2_VERSION).tar.gz
+
+PKGS += faad2
+
+$(TARBALLS)/faad2-$(FAAD2_VERSION).tar.gz:
+	$(call download,$($(FAAD2_URL))
+
+.sum-faad2: 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
+	mv $@-$(FAAD2_VERSION) $@
+	touch $@
+
+.faad2: faad2
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) CFLAGS="$(NOTHUMB)"
+	cd $< && sed -i.orig "s/shrext_cmds/shrext/g" libtool
+	cd $</libfaad && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list