summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gtk-doc
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-gnome/gtk-doc
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-gnome/gtk-doc')
-rw-r--r--meta/recipes-gnome/gtk-doc/gtk-doc.bb13
-rw-r--r--meta/recipes-gnome/gtk-doc/gtk-doc.m461
2 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk-doc/gtk-doc.bb b/meta/recipes-gnome/gtk-doc/gtk-doc.bb
new file mode 100644
index 0000000000..3f5e29121b
--- /dev/null
+++ b/meta/recipes-gnome/gtk-doc/gtk-doc.bb
@@ -0,0 +1,13 @@
1SECTION = "x11/base"
2SRC_URI = "file://gtk-doc.m4"
3LICENSE = "LGPL"
4PR = "r4"
5
6ALLOW_EMPTY_${PN} = "1"
7
8BBCLASSEXTEND = "native"
9
10do_install () {
11 install -d ${D}${datadir}/aclocal/
12 install -m 0644 ${WORKDIR}/gtk-doc.m4 ${D}${datadir}/aclocal/
13}
diff --git a/meta/recipes-gnome/gtk-doc/gtk-doc.m4 b/meta/recipes-gnome/gtk-doc/gtk-doc.m4
new file mode 100644
index 0000000000..2cfa1e7178
--- /dev/null
+++ b/meta/recipes-gnome/gtk-doc/gtk-doc.m4
@@ -0,0 +1,61 @@
1dnl -*- mode: autoconf -*-
2
3# serial 1
4
5dnl Usage:
6dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
7AC_DEFUN([GTK_DOC_CHECK],
8[
9 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
10 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
11
12 dnl check for tools we added during development
13 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
14 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
15 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
16
17 dnl for overriding the documentation installation directory
18 AC_ARG_WITH([html-dir],
19 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
20 [with_html_dir='${datadir}/gtk-doc/html'])
21 HTML_DIR="$with_html_dir"
22 AC_SUBST([HTML_DIR])
23
24 dnl enable/disable documentation building
25 AC_ARG_ENABLE([gtk-doc],
26 AS_HELP_STRING([--enable-gtk-doc],
27 [use gtk-doc to build documentation [[default=no]]]),,
28 [enable_gtk_doc=no])
29
30 if test x$enable_gtk_doc = xyes; then
31 ifelse([$1],[],
32 [PKG_CHECK_EXISTS([gtk-doc],,
33 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
34 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
35 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
36 fi
37
38 AC_MSG_CHECKING([whether to build gtk-doc documentation])
39 AC_MSG_RESULT($enable_gtk_doc)
40
41 dnl enable/disable output formats
42 AC_ARG_ENABLE([gtk-doc-html],
43 AS_HELP_STRING([--enable-gtk-doc-html],
44 [build documentation in html format [[default=yes]]]),,
45 [enable_gtk_doc_html=yes])
46 AC_ARG_ENABLE([gtk-doc-pdf],
47 AS_HELP_STRING([--enable-gtk-doc-pdf],
48 [build documentation in pdf format [[default=no]]]),,
49 [enable_gtk_doc_pdf=no])
50
51 if test -z "$GTKDOC_MKPDF"; then
52 enable_gtk_doc_pdf=no
53 fi
54
55
56 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
57 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
58 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
59 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
60 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
61])