[vlc-commits] contribs: add libmad

Rémi Denis-Courmont git at videolan.org
Wed Jun 29 18:14:02 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 29 14:04:28 2011 +0300| [9c0b836a35bced0ede45054b85640694f54faeaa] | committer: Rémi Denis-Courmont

contribs: add libmad

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

 contrib/src/mad/SHA512SUMS |    1 +
 contrib/src/mad/rules.mak  |   27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/contrib/src/mad/SHA512SUMS b/contrib/src/mad/SHA512SUMS
new file mode 100644
index 0000000..d205e35
--- /dev/null
+++ b/contrib/src/mad/SHA512SUMS
@@ -0,0 +1 @@
+2cad30347fb310dc605c46bacd9da117f447a5cabedd8fefdb24ab5de641429e5ec5ce8af7aefa6a75a3f545d3adfa255e3fa0a2d50971f76bc0c4fc0400cc45  libmad-0.15.1b.tar.gz
diff --git a/contrib/src/mad/rules.mak b/contrib/src/mad/rules.mak
new file mode 100644
index 0000000..d50bdcf
--- /dev/null
+++ b/contrib/src/mad/rules.mak
@@ -0,0 +1,27 @@
+# mad
+
+MAD_VERSION := 0.15.1b
+MAD_URL := $(CONTRIB_VIDEOLAN)/libmad-$(MAD_VERSION).tar.gz
+
+PKGS += mad
+
+$(TARBALLS)/libmad-$(MAD_VERSION).tar.gz:
+	$(call download,$(MAD_URL))
+
+.sum-mad: libmad-$(MAD_VERSION).tar.gz
+
+libmad: libmad-$(MAD_VERSION).tar.gz .sum-mad
+	$(UNPACK)
+ifdef HAVE_MACOSX
+	cd $@-$(MAD_VERSION) && sed \
+		-e 's%-march=i486%$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' \
+		-e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' \
+		-i.orig configure
+endif
+	mv $@-$(MAD_VERSION) $@
+	touch $@
+
+.mad: libmad
+	cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS) -O3 $(NOTHUMB)" ./configure $(HOSTCONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list