summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome')
-rw-r--r--meta/recipes-gnome/gtk-doc/files/pkg-config-native.patch34
-rw-r--r--meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb2
2 files changed, 35 insertions, 1 deletions
diff --git a/meta/recipes-gnome/gtk-doc/files/pkg-config-native.patch b/meta/recipes-gnome/gtk-doc/files/pkg-config-native.patch
new file mode 100644
index 0000000000..c7688704eb
--- /dev/null
+++ b/meta/recipes-gnome/gtk-doc/files/pkg-config-native.patch
@@ -0,0 +1,34 @@
1Use native pkg-config when looking for gtk-doc.
2
3Upstream-Status: Inappropriate
4Signed-off-by: Ross Burton <ross.burton@intel.com>
5
6diff --git a/gtk-doc.m4 b/gtk-doc.m4
7index 3675543..94881ae 100644
8--- a/gtk-doc.m4
9+++ b/gtk-doc.m4
10@@ -1,6 +1,6 @@
11 dnl -*- mode: autoconf -*-
12
13-# serial 2
14+# serial 2.1
15
16 dnl Usage:
17 dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
18@@ -10,11 +10,16 @@ AC_DEFUN([GTK_DOC_CHECK],
19 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
20 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
21
22+ gtkdoc_pkgconfig_save=$PKG_CONFIG
23+ PKG_CONFIG=pkg-config-native
24+
25 ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"])
26 AC_MSG_CHECKING([for gtk-doc])
27 PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no])
28 AC_MSG_RESULT($have_gtk_doc)
29
30+ PKG_CONFIG=$gtkdoc_pkgconfig_save
31+
32 if test "$have_gtk_doc" = "no"; then
33 AC_MSG_WARN([
34 You will not be able to create source packages with 'make dist'
diff --git a/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb b/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb
index 9b9f191e0c..3d1cdae385 100644
--- a/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb
+++ b/meta/recipes-gnome/gtk-doc/gtk-doc_1.25.bb
@@ -20,6 +20,7 @@ PACKAGECONFIG[working-scripts] = "--with-highlight=source-highlight,--with-highl
20SRC_URI += "file://0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch \ 20SRC_URI += "file://0001-Do-not-hardocode-paths-to-perl-python-in-scripts.patch \
21 file://0001-Do-not-error-out-if-xsltproc-is-not-found.patch \ 21 file://0001-Do-not-error-out-if-xsltproc-is-not-found.patch \
22 " 22 "
23SRC_URI_append_class-native = " file://pkg-config-native.patch"
23 24
24SRC_URI[archive.md5sum] = "0dc6570953112a464a409fb99258ccbc" 25SRC_URI[archive.md5sum] = "0dc6570953112a464a409fb99258ccbc"
25SRC_URI[archive.sha256sum] = "1ea46ed400e6501f975acaafea31479cea8f32f911dca4dff036f59e6464fd42" 26SRC_URI[archive.sha256sum] = "1ea46ed400e6501f975acaafea31479cea8f32f911dca4dff036f59e6464fd42"
@@ -45,4 +46,3 @@ gtkdoc_makefiles_sysroot_preprocess() {
45 -e "s|GTKDOC_RUN =.*|GTKDOC_RUN = \$(top_builddir)/gtkdoc-qemuwrapper|" \ 46 -e "s|GTKDOC_RUN =.*|GTKDOC_RUN = \$(top_builddir)/gtkdoc-qemuwrapper|" \
46 ${SYSROOT_DESTDIR}${datadir}/gtk-doc/data/gtk-doc*make 47 ${SYSROOT_DESTDIR}${datadir}/gtk-doc/data/gtk-doc*make
47} 48}
48