[vlc-commits] contribs: add libtheora
Rémi Denis-Courmont
git at videolan.org
Tue Jun 28 18:45:31 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jun 27 15:24:30 2011 +0300| [d8388be5252c94e5d4c2c5731f2d83d759f23d68] | committer: Rémi Denis-Courmont
contribs: add libtheora
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8388be5252c94e5d4c2c5731f2d83d759f23d68
---
contrib/src/theora/SHA512SUMS | 1 +
contrib/src/theora/libtheora-includes.patch | 16 ++++++++
contrib/src/theora/rules.mak | 52 +++++++++++++++++++++++++++
3 files changed, 69 insertions(+), 0 deletions(-)
diff --git a/contrib/src/theora/SHA512SUMS b/contrib/src/theora/SHA512SUMS
new file mode 100644
index 0000000..d0c728f
--- /dev/null
+++ b/contrib/src/theora/SHA512SUMS
@@ -0,0 +1 @@
+032fb60f10ac0074ec87d5f8c586702309edc50dc0d2842d2f9b9c46ebd1500acc399e9309f858f318fff5b8fbe953234db3afb54ed74a03d0f2c6ee8c3ed481 libtheora-1.1.1.tar.xz
diff --git a/contrib/src/theora/libtheora-includes.patch b/contrib/src/theora/libtheora-includes.patch
new file mode 100644
index 0000000..b3826b1
--- /dev/null
+++ b/contrib/src/theora/libtheora-includes.patch
@@ -0,0 +1,16 @@
+--- libtheora/tests/comment.c 2008-04-16 22:25:49.000000000 +0200
++++ libtheora.old/tests/comment.c 2008-05-14 19:25:34.000000000 +0200
+@@ -15,11 +15,11 @@
+
+ ********************************************************************/
+
+-#include <theora/theoradec.h>
+-
+ #include <string.h>
+ #include "tests.h"
+
++#include <theora/theoradec.h>
++
+ #define ARTIST1 "Bug-eyed Fish"
+ #define ARTIST2 "VJ Fugu"
+ #define COPYRIGHT "Copyright (C) 2005. Some Rights Reserved."
diff --git a/contrib/src/theora/rules.mak b/contrib/src/theora/rules.mak
new file mode 100644
index 0000000..0138514
--- /dev/null
+++ b/contrib/src/theora/rules.mak
@@ -0,0 +1,52 @@
+# Theora
+
+THEORA_VERSION := 1.1.1
+THEORA_URL := http://downloads.xiph.org/releases/theora/libtheora-$(THEORA_VERSION).tar.xz
+#THEORA_URL := $(CONTRIB_VIDEOLAN)/libtheora-$(THEORA_VERSION).tar.xz
+
+PKGS += theora
+
+$(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz:
+ $(DOWNLOAD) $(THEORA_URL)
+
+.sum-theora: $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz
+ $(CHECK_SHA512)
+ touch $@
+
+libtheora: $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz .sum-theora
+ $(UNPACK_XZ)
+ (cd $@-$(THEORA_VERSION) && patch -p1) < $(SRC)/theora/libtheora-includes.patch
+ifdef HAVE_WIN64
+ cd $@ && autoreconf -fi -I m4
+endif
+ mv $@-$(THEORA_VERSION) $@
+ touch $@
+
+THEORACONF := $(HOSTCONF) \
+ --disable-spec \
+ --disable-sdltest \
+ --disable-oggtest \
+ --disable-vorbistest \
+ --disable-examples
+
+ifndef BUILD_ENCODERS
+THEORACONF += --disable-encode
+endif
+ifndef HAVE_FPU
+THEORACONF += --disable-float
+endif
+ifdef HAVE_MACOSX64
+THEORACONF += --disable-asm
+endif
+ifdef HAVE_WIN64
+THEORACONF += --disable-asm
+endif
+
+.theora: libtheora .ogg
+ifdef HAVE_WIN32
+ cd $<; $(HOSTVARS) ./autogen.sh $(THEORACONF)
+endif
+ test -f $</config.status || \
+ (cd $< && $(HOSTVARGS) ./configure $(THEORACONF))
+ cd $< && $(MAKE) install
+ touch $@
More information about the vlc-commits
mailing list