]> git.sesse.net Git - vlc/blob - extras/contrib/src/Patches/theora-doc.patch
contribs: WxWidgets is history
[vlc] / extras / contrib / src / Patches / theora-doc.patch
1 --- libtheora/configure.ac      2008-04-16 22:25:55.000000000 +0200
2 +++ libtheora.new/configure.ac  2008-10-07 10:06:22.000000000 +0200
3 @@ -351,6 +351,12 @@ AC_ARG_ENABLE(examples,
4       [ ac_enable_examples=$enableval ], [ ac_enable_examples=yes] )
5  AM_CONDITIONAL(THEORA_ENABLE_EXAMPLES, [test "x${ac_enable_examples}" != xno])
6  
7 +ac_enable_docs=yes
8 +AC_ARG_ENABLE(docs,
9 +     [  --disable-docs            disable docs ],
10 +     [ ac_enable_docs=$enableval ], [ac_enable_docs=yes ] )
11 +AM_CONDITIONAL(THEORA_ENABLE_DOCS, [test "x${ac_enable_docs}" != xno])
12 +
13  dnl --------------------------------------------------
14  dnl Check for headers
15  dnl --------------------------------------------------
16 @@ -410,7 +416,7 @@ AS_AC_EXPAND(INCLUDEDIR, ${includedir})
17  AS_AC_EXPAND(BINDIR, ${bindir})
18  AS_AC_EXPAND(DOCDIR, ${datadir}/doc)
19  
20 -if test $HAVE_DOXYGEN = "false"; then
21 +if test $HAVE_DOXYGEN = "false" -o "x${ac_enable_docs}" = xno; then
22    doc_build="no"
23  else
24    doc_build="yes"
25 --- libtheora/Makefile.am.orig  2008-10-07 10:01:12.000000000 +0200
26 +++ libtheora/Makefile.am       2008-10-07 10:00:36.000000000 +0200
27 @@ -8,7 +8,13 @@ else
28  EXAMPLES_DIR =
29  endif
30  
31 -SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)
32 +if THEORA_ENABLE_DOCS
33 +DOC_DIR = doc
34 +else
35 +DOC_DIR =
36 +endif
37 +
38 +SUBDIRS = lib include ${DOC_DIR} tests m4 $(EXAMPLES_DIR)
39  
40  
41  # we include the whole debian/ dir in EXTRA_DIST because there's a problem
42 --- libtheora/Makefile.in       2008-10-07 10:21:32.000000000 +0200
43 +++ libtheora.new/Makefile.in   2008-10-07 10:21:05.000000000 +0200
44 @@ -245,7 +245,9 @@ top_srcdir = @top_srcdir@
45  AUTOMAKE_OPTIONS = foreign 1.6 dist-zip dist-bzip2
46  @THEORA_ENABLE_EXAMPLES_FALSE@EXAMPLES_DIR =
47  @THEORA_ENABLE_EXAMPLES_TRUE@EXAMPLES_DIR = examples
48 -SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR)
49 +@THEORA_ENABLE_DOCS_FALSE@DOC_DIR=
50 +@THEORA_ENABLE_DOCS_TRUE@DOC_DIR=doc
51 +SUBDIRS = lib include ${DOC_DIR} tests m4 $(EXAMPLES_DIR)
52  
53  # we include the whole debian/ dir in EXTRA_DIST because there's a problem
54 # with autotools and HFS+ MacOSX file systems that caused debian/Makefile.am