summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-02-08 13:08:16 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-10 14:38:42 +0000
commit15ff81be40ad085ae7990079c4228b8836ad408e (patch)
tree41268af4e00484c54c796723d448d12164268e69 /meta/recipes-graphics
parent51c719d779e18f9cc59d9ead3d2dcc82f56b7800 (diff)
downloadpoky-15ff81be40ad085ae7990079c4228b8836ad408e.tar.gz
mx: update to 1.4.2
Patch in a copy of introspection.m4 so that we can continue to easily and cleanly disable introspection. (From OE-Core rev: 84d62181f80402fa461675e03b20ba08da1991e8) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/mx/files/introspection-m4.patch106
-rw-r--r--meta/recipes-graphics/mx/mx_1.4.2.bb (renamed from meta/recipes-graphics/mx/mx_1.3.2.bb)9
2 files changed, 111 insertions, 4 deletions
diff --git a/meta/recipes-graphics/mx/files/introspection-m4.patch b/meta/recipes-graphics/mx/files/introspection-m4.patch
new file mode 100644
index 0000000000..2dcb62abe7
--- /dev/null
+++ b/meta/recipes-graphics/mx/files/introspection-m4.patch
@@ -0,0 +1,106 @@
1A copy of introspection.m4 from upstream gobject-introspection so that
2we can use the GOBJECT_INTROSPECTION_CHECK([0.6.4]) and --disable-introspection
3
4Signed-off-by: Joshua Lock <josh@linux.intel.com>
5
6Upstream-Status: Inappropriate (build system specific).
7
8Index: mx-1.4.2/m4/introspection.m4
9===================================================================
10--- /dev/null
11+++ mx-1.4.2/m4/introspection.m4
12@@ -0,0 +1,94 @@
13+dnl -*- mode: autoconf -*-
14+dnl Copyright 2009 Johan Dahlin
15+dnl
16+dnl This file is free software; the author(s) gives unlimited
17+dnl permission to copy and/or distribute it, with or without
18+dnl modifications, as long as this notice is preserved.
19+dnl
20+
21+# serial 1
22+
23+m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
24+[
25+ AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
26+ AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
27+ AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
28+
29+ dnl enable/disable introspection
30+ m4_if([$2], [require],
31+ [dnl
32+ enable_introspection=yes
33+ ],[dnl
34+ AC_ARG_ENABLE(introspection,
35+ AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
36+ [Enable introspection for this build]),,
37+ [enable_introspection=auto])
38+ ])dnl
39+
40+ AC_MSG_CHECKING([for gobject-introspection])
41+
42+ dnl presence/version checking
43+ AS_CASE([$enable_introspection],
44+ [no], [dnl
45+ found_introspection="no (disabled, use --enable-introspection to enable)"
46+ ],dnl
47+ [yes],[dnl
48+ PKG_CHECK_EXISTS([gobject-introspection-1.0],,
49+ AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
50+ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
51+ found_introspection=yes,
52+ AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
53+ ],dnl
54+ [auto],[dnl
55+ PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
56+ ],dnl
57+ [dnl
58+ AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
59+ ])dnl
60+
61+ AC_MSG_RESULT([$found_introspection])
62+
63+ INTROSPECTION_SCANNER=
64+ INTROSPECTION_COMPILER=
65+ INTROSPECTION_GENERATE=
66+ INTROSPECTION_GIRDIR=
67+ INTROSPECTION_TYPELIBDIR=
68+ if test "x$found_introspection" = "xyes"; then
69+ INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
70+ INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
71+ INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
72+ INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
73+ INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
74+ INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
75+ INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
76+ INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
77+ fi
78+ AC_SUBST(INTROSPECTION_SCANNER)
79+ AC_SUBST(INTROSPECTION_COMPILER)
80+ AC_SUBST(INTROSPECTION_GENERATE)
81+ AC_SUBST(INTROSPECTION_GIRDIR)
82+ AC_SUBST(INTROSPECTION_TYPELIBDIR)
83+ AC_SUBST(INTROSPECTION_CFLAGS)
84+ AC_SUBST(INTROSPECTION_LIBS)
85+ AC_SUBST(INTROSPECTION_MAKEFILE)
86+
87+ AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
88+])
89+
90+
91+dnl Usage:
92+dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
93+
94+AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
95+[
96+ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
97+])
98+
99+dnl Usage:
100+dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
101+
102+
103+AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
104+[
105+ _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
106+])
diff --git a/meta/recipes-graphics/mx/mx_1.3.2.bb b/meta/recipes-graphics/mx/mx_1.4.2.bb
index 695249b10d..91eca2960f 100644
--- a/meta/recipes-graphics/mx/mx_1.3.2.bb
+++ b/meta/recipes-graphics/mx/mx_1.4.2.bb
@@ -1,14 +1,15 @@
1DESCRIPTION = "Clutter based widget library" 1DESCRIPTION = "Clutter based widget library"
2LICENSE = "LGPLv2.1" 2LICENSE = "LGPLv2.1"
3PR = "r1"
4 3
5DEPENDS = "clutter-1.8" 4DEPENDS = "clutter-1.8"
6 5
7inherit autotools 6inherit autotools
8 7
9SRC_URI = "http://source.clutter-project.org/sources/mx/1.3/mx-${PV}.tar.bz2" 8SRC_URI = "http://source.clutter-project.org/sources/mx/1.4/mx-${PV}.tar.bz2 \
10SRC_URI[md5sum] = "6057f3403d1109191dc7ef492bae5867" 9 file://introspection-m4.patch"
11SRC_URI[sha256sum] = "94fd2b307b204945643af1e3193a2a7be96712f9296cf0e525f5fd7538f85513" 10
11SRC_URI[md5sum] = "faf8d97ad9995f54cc91f90bc90c8f9d"
12SRC_URI[sha256sum] = "9d40dd48a8e3d098cc75c05163f77305ffb83439783dc91be50681c9502660ce"
12 13
13LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24 \ 14LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=fbc093901857fcd118f065f900982c24 \
14 file://mx/mx-widget.c;beginline=8;endline=20;md5=13bba3c973a72414a701e1e87b5ee879" 15 file://mx/mx-widget.c;beginline=8;endline=20;md5=13bba3c973a72414a701e1e87b5ee879"