[vlc-commits] contrib: add opus

Rafaël Carré git at videolan.org
Wed Sep 5 00:02:06 CEST 2012


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Mon Aug  6 17:50:44 2012 +0200| [2d582b6e64c33c1f1be335d56224c4d75f57ed72] | committer: Jean-Baptiste Kempf

contrib: add opus

(cherry picked from commit 3e954c9811e72ef7486be92723bb96f7e5b4af06)
(cherry picked from commit 0f82e032376e3d03f11530745ca4047195d3ba2c)
(cherry picked from commit f559e33ca77317b9c43630bdaf5484ef419fb757)
(cherry picked from commit 67b2f035a8e602c266c9b20f0a48ab8f399b538b)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=2d582b6e64c33c1f1be335d56224c4d75f57ed72
---

 contrib/src/opus/SHA512SUMS |    1 +
 contrib/src/opus/rules.mak  |   30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/contrib/src/opus/SHA512SUMS b/contrib/src/opus/SHA512SUMS
new file mode 100644
index 0000000..eb0326a
--- /dev/null
+++ b/contrib/src/opus/SHA512SUMS
@@ -0,0 +1 @@
+62450dd3009c0ca5dd26ce4cb14a4334d5ff4348b1615efab45203a806846f1ba8cbd1e36ea5e565b1b422bd26d814e28678917410b006b0f18c6bf6f0944996  opus-1.0.1-rc.tar.gz
diff --git a/contrib/src/opus/rules.mak b/contrib/src/opus/rules.mak
new file mode 100644
index 0000000..fa75943
--- /dev/null
+++ b/contrib/src/opus/rules.mak
@@ -0,0 +1,30 @@
+# opus
+
+OPUS_VERSION := 1.0.1-rc
+
+OPUS_URL := http://downloads.xiph.org/releases/opus/opus-$(OPUS_VERSION).tar.gz
+
+#PKGS += opus
+ifeq ($(call need_pkg,"opus >= 0.9.14"),)
+PKGS_FOUND += opus
+endif
+
+$(TARBALLS)/opus-$(OPUS_VERSION).tar.gz:
+	$(call download,$(OPUS_URL))
+
+.sum-opus: opus-$(OPUS_VERSION).tar.gz
+
+opus: opus-$(OPUS_VERSION).tar.gz .sum-opus
+	$(UNPACK)
+	$(UPDATE_AUTOCONFIG)
+	$(MOVE)
+
+OPUS_CONF=
+ifndef HAVE_FPU
+OPUS_CONF += --enable-fixed-point
+endif
+
+.opus: opus
+	cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(OPUS_CONF)
+	cd $< && $(MAKE) install
+	touch $@



More information about the vlc-commits mailing list