summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Jamfile18
-rw-r--r--contrib/version_libtheora.txt2
2 files changed, 20 insertions, 0 deletions
diff --git a/contrib/Jamfile b/contrib/Jamfile
index 06cb557ec..891483102 100644
--- a/contrib/Jamfile
+++ b/contrib/Jamfile
@@ -336,6 +336,24 @@ actions LibVorbisEnc
}
LibVorbisEnc $(SUBDIR)/lib/libvorbisenc.a : $(SUBDIR)/lib/libvorbis.a ;
+# libtheora
+rule LibTheora
+{
+ Depends $(<) : $(>) ;
+ Depends lib : $(<) ;
+}
+actions LibTheora
+{
+ cd `dirname $(>)` && CONTRIB=`pwd` && rm -rf libtheora &&
+ (gzip -dc libtheora.tar.gz | tar xf - ) && cd libtheora &&
+ ./configure --prefix=$CONTRIB --with-ogg=$CONTRIB --with-vorbis=$CONTRIB --cache-file=$CONTRIB/config.cache --disable-shared \
+ --disable-oggtest --disable-vorbistest --disable-sdltest --disable-examples &&
+ $(MAKE) && $(MAKE) install &&
+ $(STRIP) $CONTRIB/lib/libtheora.a
+}
+Wget $(SUBDIR)/libtheora.tar.gz : $(SUBDIR)/version_libtheora.txt ;
+LibTheora $(SUBDIR)/lib/libtheora.a : $(SUBDIR)/libtheora.tar.gz ;
+
# libx264
rule LibX264
{
diff --git a/contrib/version_libtheora.txt b/contrib/version_libtheora.txt
new file mode 100644
index 000000000..30401afb3
--- /dev/null
+++ b/contrib/version_libtheora.txt
@@ -0,0 +1,2 @@
+http://download.m0k.org/handbrake/contrib/libtheora-1.0beta2.tar.gz
+