diff options
author | Phil Blundell <philb@gnu.org> | 2011-08-26 15:23:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-29 13:48:06 +0100 |
commit | 7d8d3e678493e44b292711bde8462252aa2762dc (patch) | |
tree | c04f650433007b4e0318cb39c328f53ffe442ef0 | |
parent | 0963d513a03bf42c0227d5f89a337613c615be23 (diff) | |
download | poky-7d8d3e678493e44b292711bde8462252aa2762dc.tar.gz |
pango: make x11 support conditional on DISTRO_FEATURES
This allows pango to build on DISTROs which don't enable x11.
Also adjust the SECTION since pango isn't really an X library.
(From OE-Core rev: ac92a573dd38270a28967c76472435cfd7f9bdfe)
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/pango/pango.inc | 10 | ||||
-rw-r--r-- | meta/recipes-graphics/pango/pango_1.28.4.bb | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/meta/recipes-graphics/pango/pango.inc b/meta/recipes-graphics/pango/pango.inc index 5a8a5aef75..a8e99e2f6d 100644 --- a/meta/recipes-graphics/pango/pango.inc +++ b/meta/recipes-graphics/pango/pango.inc | |||
@@ -6,14 +6,15 @@ been done in the context of the GTK+ widget toolkit. Pango forms the \ | |||
6 | core of text and font handling for GTK+-2.x." | 6 | core of text and font handling for GTK+-2.x." |
7 | HOMEPAGE = "http://www.pango.org/" | 7 | HOMEPAGE = "http://www.pango.org/" |
8 | BUGTRACKER = "http://bugzilla.gnome.org" | 8 | BUGTRACKER = "http://bugzilla.gnome.org" |
9 | SECTION = "x11/libs" | 9 | SECTION = "libs" |
10 | LICENSE = "LGPL" | 10 | LICENSE = "LGPL" |
11 | 11 | ||
12 | DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv virtual/libx11 libxft gtk-doc-native cairo" | 12 | X11DEPENDS = "virtual/libx11 libxft" |
13 | DEPENDS = "glib-2.0 fontconfig freetype zlib virtual/libiconv gtk-doc-native cairo ${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}" | ||
13 | 14 | ||
14 | PACKAGES_DYNAMIC = "pango-module-*" | 15 | PACKAGES_DYNAMIC = "pango-module-*" |
15 | 16 | ||
16 | RRECOMMENDS_${PN} = "pango-module-basic-x pango-module-basic-fc" | 17 | RRECOMMENDS_${PN} = "${@base_contains('DISTRO_FEATURES', 'x11', 'pango-module-basic-x', '', d)} pango-module-basic-fc" |
17 | 18 | ||
18 | inherit gnome | 19 | inherit gnome |
19 | 20 | ||
@@ -24,7 +25,8 @@ FULL_OPTIMIZATION_arm = "-O2" | |||
24 | 25 | ||
25 | EXTRA_OECONF = "--disable-glibtest \ | 26 | EXTRA_OECONF = "--disable-glibtest \ |
26 | --enable-explicit-deps=no \ | 27 | --enable-explicit-deps=no \ |
27 | --disable-debug" | 28 | --disable-debug \ |
29 | ${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" | ||
28 | 30 | ||
29 | LEAD_SONAME = "libpango-1.0*" | 31 | LEAD_SONAME = "libpango-1.0*" |
30 | LIBV = "1.6.0" | 32 | LIBV = "1.6.0" |
diff --git a/meta/recipes-graphics/pango/pango_1.28.4.bb b/meta/recipes-graphics/pango/pango_1.28.4.bb index 600f00b740..68ab700c8c 100644 --- a/meta/recipes-graphics/pango/pango_1.28.4.bb +++ b/meta/recipes-graphics/pango/pango_1.28.4.bb | |||
@@ -2,7 +2,7 @@ require pango.inc | |||
2 | 2 | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7" |
4 | 4 | ||
5 | PR = "r0" | 5 | PR = "r1" |
6 | 6 | ||
7 | SRC_URI += "file://no-tests.patch" | 7 | SRC_URI += "file://no-tests.patch" |
8 | 8 | ||