diff options
author | Phil Blundell <philb@gnu.org> | 2011-08-12 16:58:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-15 15:26:19 +0100 |
commit | 3c1701b7c91a7f9366f43eaccce9fdeeedac6c31 (patch) | |
tree | 38af35e8d90679b43db90d5e4d686c9738541782 | |
parent | 0a5fe1cdd1f4beb095c4043e136075cf9306cef3 (diff) | |
download | poky-3c1701b7c91a7f9366f43eaccce9fdeeedac6c31.tar.gz |
cairo: only use x11 if selected in DISTRO_FEATURES
This makes it possible to build cairo-using apps without X11.
(From OE-Core rev: ba22cfac56120d001a53d33aee3b8eb3feda2786)
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/cairo/cairo.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-graphics/cairo/cairo.inc b/meta/recipes-graphics/cairo/cairo.inc index 72aaa03620..c983a89af0 100644 --- a/meta/recipes-graphics/cairo/cairo.inc +++ b/meta/recipes-graphics/cairo/cairo.inc | |||
@@ -10,10 +10,11 @@ HOMEPAGE = "http://cairographics.org" | |||
10 | BUGTRACKER = "http://bugs.freedesktop.org" | 10 | BUGTRACKER = "http://bugs.freedesktop.org" |
11 | SECTION = "libs" | 11 | SECTION = "libs" |
12 | LICENSE = "MPL-1 & LGPLv2.1" | 12 | LICENSE = "MPL-1 & LGPLv2.1" |
13 | DEPENDS = "virtual/libx11 libsm libpng fontconfig libxrender pixman glib-2.0" | 13 | X11DEPENDS = "virtual/libx11 libsm libxrender" |
14 | DEPENDS = "libpng fontconfig pixman glib-2.0 ${@base_contains('DISTRO_FEATURES', 'x11', '${X11DEPENDS}', '', d)}" | ||
14 | 15 | ||
15 | #check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points | 16 | #check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points |
16 | require cairo-fpu.inc | 17 | require cairo-fpu.inc |
17 | EXTRA_OECONF += "${@get_cairo_fpu_setting(bb, d)}" | 18 | EXTRA_OECONF += "${@get_cairo_fpu_setting(bb, d)} ${@base_contains('DISTRO_FEATURES', 'x11', '--with-x', '--without-x', d)}" |
18 | 19 | ||
19 | inherit autotools pkgconfig | 20 | inherit autotools pkgconfig |