~walkerlee/totem/pre-interview

« back to all changes in this revision

Viewing changes to m4/gtk-doc.m4

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-26 00:07:51 UTC
  • mfrom: (1.6.1) (24.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130526000751-kv8ap3x1di4qq8j2
Tags: 3.8.2-0ubuntu1
* Sync with Debian. Remaining changes: 
* debian/control.in:
  - Drop build-depends on libepc-ui-dev and libgrilo-0.2-dev (in universe)
  - Drop libxtst-dev build-depends so that the (redundant) fake key presses
    for inhibiting the screensaver are disabled (LP: #1007438)
  - Build-depend on libzeitgeist-dev
  - Suggest rather than recommend gstreamer components in universe
  - Add totem-plugins-extra
  - Add XB-Npp-Description and XB-Npp-Filename header to the 
    totem-mozilla package to improve ubufox/ubuntu plugin db integration 
  - Refer to Firefox in totem-mozilla description instead of Iceweasel
  - Don't have totem-mozilla recommend any particular browser
  - Drop obsolete python library dependencies since iplayer is no longer
    included
* debian/totem-common.install, debian/source_totem.py:
  - Install Ubuntu apport debugging hook
* debian/totem-plugins-extra.install:
  - Universe plugins split out of totem-plugins (currently only gromit)
* debian/totem-plugins.install:    
  - Skip the plugins split to -extra and add the zeitgeist plugin
* debian/rules:
  - Build with --fail-missing, to ensure we install everything. 
    + Ignore libtotem.{,l}a since we delibrately don't install these.
  - Re-enable hardening, make sure both PIE and BINDNOW are used
    by setting hardening=+all. (LP: #1039604)
* debian/patches/91_quicklist_entries.patch:
  - Add static quicklist
* debian/patches/92_gst-plugins-good.patch:
  - Build without unnecessary gstreamer1.0-bad dependency
* debian/patches/93_grilo_optional.patch:
  - Allow building without grilo while grilo MIR is still pending
* debian/patches/correct_desktop_mimetypes.patch:
  - Don't list the mimetypes after the unity lists
* debian/patches/revert_shell_menu.patch: 
  - revert the use of a shell menu until indicator-appmenu can handle
    the mixed shell/traditional menus itself
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl -*- mode: autoconf -*-
 
2
 
 
3
# serial 1
 
4
 
 
5
dnl Usage:
 
6
dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
 
7
AC_DEFUN([GTK_DOC_CHECK],
 
8
[
 
9
  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
 
10
  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
 
11
  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
 
12
 
 
13
  dnl check for tools we added during development
 
14
  AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
 
15
  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
 
16
  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
 
17
 
 
18
  dnl for overriding the documentation installation directory
 
19
  AC_ARG_WITH([html-dir],
 
20
    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
21
    [with_html_dir='${datadir}/gtk-doc/html'])
 
22
  HTML_DIR="$with_html_dir"
 
23
  AC_SUBST([HTML_DIR])
 
24
 
 
25
  dnl enable/disable documentation building
 
26
  AC_ARG_ENABLE([gtk-doc],
 
27
    AS_HELP_STRING([--enable-gtk-doc],
 
28
                   [use gtk-doc to build documentation [[default=no]]]),,
 
29
    [enable_gtk_doc=no])
 
30
 
 
31
  if test x$enable_gtk_doc = xyes; then
 
32
    ifelse([$1],[],
 
33
      [PKG_CHECK_EXISTS([gtk-doc],,
 
34
                        AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
 
35
      [PKG_CHECK_EXISTS([gtk-doc >= $1],,
 
36
                        AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
 
37
    dnl don't check for glib if we build glib
 
38
    if test "x$PACKAGE_NAME" != "xglib"; then
 
39
      dnl don't fail if someone does not have glib
 
40
      PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,)
 
41
    fi
 
42
  fi
 
43
 
 
44
  AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
45
  AC_MSG_RESULT($enable_gtk_doc)
 
46
 
 
47
  dnl enable/disable output formats
 
48
  AC_ARG_ENABLE([gtk-doc-html],
 
49
    AS_HELP_STRING([--enable-gtk-doc-html],
 
50
                   [build documentation in html format [[default=yes]]]),,
 
51
    [enable_gtk_doc_html=yes])
 
52
    AC_ARG_ENABLE([gtk-doc-pdf],
 
53
      AS_HELP_STRING([--enable-gtk-doc-pdf],
 
54
                     [build documentation in pdf format [[default=no]]]),,
 
55
      [enable_gtk_doc_pdf=no])
 
56
 
 
57
  if test -z "$GTKDOC_MKPDF"; then
 
58
    enable_gtk_doc_pdf=no
 
59
  fi
 
60
 
 
61
 
 
62
  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
 
63
  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
 
64
  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
 
65
  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
 
66
  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
 
67
])