]> git.sesse.net Git - vlc/commitdiff
(win32 contrib) Build theora without docs on win32.
authorJean-Paul Saman <jpsaman@videolan.org>
Mon, 13 Oct 2008 07:46:20 +0000 (09:46 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Tue, 14 Oct 2008 13:07:28 +0000 (15:07 +0200)
extras/contrib/src/Makefile
extras/contrib/src/Patches/theora-doc.patch [new file with mode: 0644]

index 04abfd06cad97e94d9b70b67ff156c4a92f8b508..0a1aeeb84440e5b9484149f36b868a33f31ba052 100644 (file)
@@ -781,9 +781,15 @@ libtheora: libtheora-$(THEORA_VERSION).tar.bz2
        $(EXTRACT_BZ2)
        patch -p0 < Patches/theora.patch
        patch -p0 < Patches/libtheora-includes.patch
+ifdef HAVE_WIN32
+       patch -p0 < Patches/theora-doc.patch
+endif
        (cd $@; autoconf)
 
 THEORACONF = --disable-sdltest --disable-oggtest --disable-vorbistest --disable-examples
+ifdef HAVE_WIN32
+THEORACONF += --disable-docs
+endif
 
 .theora: libtheora .ogg
 ifdef HAVE_BEOS
diff --git a/extras/contrib/src/Patches/theora-doc.patch b/extras/contrib/src/Patches/theora-doc.patch
new file mode 100644 (file)
index 0000000..cf7e5f8
--- /dev/null
@@ -0,0 +1,54 @@
+--- libtheora/configure.ac     2008-04-16 22:25:55.000000000 +0200
++++ libtheora.new/configure.ac 2008-10-07 10:06:22.000000000 +0200
+@@ -351,6 +351,12 @@ AC_ARG_ENABLE(examples,
+      [ ac_enable_examples=$enableval ], [ ac_enable_examples=yes] )
+ AM_CONDITIONAL(THEORA_ENABLE_EXAMPLES, [test "x${ac_enable_examples}" != xno])
++ac_enable_docs=yes
++AC_ARG_ENABLE(docs,
++     [  --disable-docs            disable docs ],
++     [ ac_enable_docs=$enableval ], [ac_enable_docs=yes ] )
++AM_CONDITIONAL(THEORA_ENABLE_DOCS, [test "x${ac_enable_docs}" != xno])
++
+ dnl --------------------------------------------------
+ dnl Check for headers
+ dnl --------------------------------------------------
+@@ -410,7 +416,7 @@ AS_AC_EXPAND(INCLUDEDIR, ${includedir})
+ AS_AC_EXPAND(BINDIR, ${bindir})
+ AS_AC_EXPAND(DOCDIR, ${datadir}/doc)
+-if test $HAVE_DOXYGEN = "false"; then
++if test $HAVE_DOXYGEN = "false" -o "x${ac_enable_docs}" = xno; then
+   doc_build="no"
+ else
+   doc_build="yes"
+--- libtheora/Makefile.am.orig 2008-10-07 10:01:12.000000000 +0200
++++ libtheora/Makefile.am      2008-10-07 10:00:36.000000000 +0200
+@@ -8,7 +8,13 @@ else
+ EXAMPLES_DIR =
+ endif
+-SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)
++if THEORA_ENABLE_DOCS
++DOC_DIR = doc
++else
++DOC_DIR =
++endif
++
++SUBDIRS = lib include ${DOC_DIR} tests m4 $(EXAMPLES_DIR)
+ # we include the whole debian/ dir in EXTRA_DIST because there's a problem
+--- libtheora/Makefile.in      2008-10-07 10:21:32.000000000 +0200
++++ libtheora.new/Makefile.in  2008-10-07 10:21:05.000000000 +0200
+@@ -245,7 +245,9 @@ top_srcdir = @top_srcdir@
+ AUTOMAKE_OPTIONS = foreign 1.6 dist-zip dist-bzip2
+ @THEORA_ENABLE_EXAMPLES_FALSE@EXAMPLES_DIR =
+ @THEORA_ENABLE_EXAMPLES_TRUE@EXAMPLES_DIR = examples
+-SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)
++@THEORA_ENABLE_DOCS_FALSE@DOC_DIR=
++@THEORA_ENABLE_DOCS_TRUE@DOC_DIR=doc
++SUBDIRS = lib include ${DOC_DIR} tests m4 $(EXAMPLES_DIR)
+ # we include the whole debian/ dir in EXTRA_DIST because there's a problem
+# with autotools and HFS+ MacOSX file systems that caused debian/Makefile.am
\ No newline at end of file