diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2015-10-21 04:23:55 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-11-16 11:14:38 +0000 |
commit | 3edf08b38b0af93cef0933b061349264dc86d54c (patch) | |
tree | 2f99a5328a7663ef410def2023903b2b2d4f230c /meta/recipes-graphics | |
parent | a3310eb5a447864e82a38cb7852f30c17c0b91bb (diff) | |
download | openembedded-core-contrib-3edf08b38b0af93cef0933b061349264dc86d54c.tar.gz |
recipes: add distro_features_check for some packages
* The packages that depends on gtk+3 require any of distro features
from ${GTK3DISTROFEATURES}
* The packages that depends on virtual/egl, virtual/libgl ... require
distro feature 'opengl'
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/clutter/clutter-1.0.inc | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/clutter/clutter-gst-3.0.inc | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/clutter/clutter-gtk-1.0.inc | 6 | ||||
-rw-r--r-- | meta/recipes-graphics/cogl/cogl-1.0.inc | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/eglinfo/eglinfo.inc | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/libepoxy/libepoxy_git.bb | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/mx/mx.inc | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/wayland/weston-init.bb | 4 | ||||
-rw-r--r-- | meta/recipes-graphics/wayland/weston_1.8.0.bb | 4 |
11 files changed, 35 insertions, 11 deletions
diff --git a/meta/recipes-graphics/clutter/clutter-1.0.inc b/meta/recipes-graphics/clutter/clutter-1.0.inc index da21cee8b58..5d0f55c64d5 100644 --- a/meta/recipes-graphics/clutter/clutter-1.0.inc +++ b/meta/recipes-graphics/clutter/clutter-1.0.inc @@ -2,7 +2,9 @@ SUMMARY = "Graphics library for creating hardware-accelerated user interfaces" HOMEPAGE = "http://www.clutter-project.org/" LICENSE = "LGPLv2.1+" -inherit clutter ptest-gnome +inherit clutter ptest-gnome distro_features_check +# depends on cogl-1.0 which needs opengl +REQUIRED_DISTRO_FEATURES ?= "opengl" DEPENDS = "pango glib-2.0 json-glib atk udev cogl-1.0" PACKAGE_BEFORE_PN += "${PN}-examples" diff --git a/meta/recipes-graphics/clutter/clutter-gst-3.0.inc b/meta/recipes-graphics/clutter/clutter-gst-3.0.inc index d4fed7127f3..67c75902ef3 100644 --- a/meta/recipes-graphics/clutter/clutter-gst-3.0.inc +++ b/meta/recipes-graphics/clutter/clutter-gst-3.0.inc @@ -2,7 +2,9 @@ SUMMARY = "GStreamer integration library for Clutter" HOMEPAGE = "http://www.clutter-project.org/" LICENSE = "LGPLv2+" -inherit clutter +inherit clutter distro_features_check +# depends on clutter-1.0 which depends on cogl-1.0 +REQUIRED_DISTRO_FEATURES ?= "opengl" SRC_URI += "file://0001-Install-example-binary-needed-for-core-image-clutter.patch" diff --git a/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc b/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc index 45898b4d60d..688eed2d91e 100644 --- a/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc +++ b/meta/recipes-graphics/clutter/clutter-gtk-1.0.inc @@ -2,7 +2,11 @@ SUMMARY = "Library for embedding a Clutter canvas in a GTK+ application" HOMEPAGE = "http://www.clutter-project.org/" LICENSE = "LGPLv2+" -inherit clutter +inherit clutter distro_features_check +# depends on clutter-1.0 which depends on cogl-1.0 +REQUIRED_DISTRO_FEATURES ?= "opengl" +# depends on gtk+3 +ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" DEPENDS = "clutter-1.0 gtk+3" PACKAGES =+ "${PN}-examples" diff --git a/meta/recipes-graphics/cogl/cogl-1.0.inc b/meta/recipes-graphics/cogl/cogl-1.0.inc index 3da31c85fd7..88d84ea5fee 100644 --- a/meta/recipes-graphics/cogl/cogl-1.0.inc +++ b/meta/recipes-graphics/cogl/cogl-1.0.inc @@ -2,7 +2,9 @@ SUMMARY = "Modern 3D graphics API with associated utility APIs" HOMEPAGE = "http://wiki.clutter-project.org/wiki/Cogl" LICENSE = "MIT" -inherit clutter +inherit clutter distro_features_check +# cogl-1.0 needs opengl to build +REQUIRED_DISTRO_FEATURES ?= "opengl" DEPENDS = "glib-2.0 gdk-pixbuf" PACKAGES =+ "${PN}-examples \ diff --git a/meta/recipes-graphics/eglinfo/eglinfo.inc b/meta/recipes-graphics/eglinfo/eglinfo.inc index b87688af723..fb891755db8 100644 --- a/meta/recipes-graphics/eglinfo/eglinfo.inc +++ b/meta/recipes-graphics/eglinfo/eglinfo.inc @@ -11,7 +11,9 @@ SRCREV = "4b317648ec6cf39556a9e5d8078f605bc0edd5de" S = "${WORKDIR}/git" -inherit waf +inherit waf distro_features_check +# depends on virtual/egl +REQUIRED_DISTRO_FEATURES ?= "opengl" # BSP layers should add .bbappend files for the -x11 and -fb .bb recipes, which # append the respective EGL/OpenGLES/OpenVG libraries to DEPENDS and set diff --git a/meta/recipes-graphics/libepoxy/libepoxy_git.bb b/meta/recipes-graphics/libepoxy/libepoxy_git.bb index ad1729383e3..6c247ccafec 100644 --- a/meta/recipes-graphics/libepoxy/libepoxy_git.bb +++ b/meta/recipes-graphics/libepoxy/libepoxy_git.bb @@ -17,7 +17,9 @@ PV = "1.3.1" S = "${WORKDIR}/git" -inherit autotools pkgconfig +inherit autotools pkgconfig distro_features_check +# depends on virtual/egl +REQUIRED_DISTRO_FEATURES = "opengl" DEPENDS = "util-macros virtual/egl" diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb index 0094f556f9f..557b8c65db9 100644 --- a/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb +++ b/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb @@ -24,7 +24,9 @@ SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/demos/${PV}/${BPN}-${PV}.tar.bz2 \ SRC_URI[md5sum] = "72613a2c8c013716db02e3ff59d29061" SRC_URI[sha256sum] = "e4bfecb5816ddd4b7b37c1bc876b63f1f7f06fda5879221a9774d0952f90ba92" -inherit autotools pkgconfig +inherit autotools pkgconfig distro_features_check +# depends on virtual/egl, virtual/libgl ... +REQUIRED_DISTRO_FEATURES = "opengl" PACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 glew glu', '', d)}" diff --git a/meta/recipes-graphics/mx/mx.inc b/meta/recipes-graphics/mx/mx.inc index ee7f18623cb..aa4915d25c4 100644 --- a/meta/recipes-graphics/mx/mx.inc +++ b/meta/recipes-graphics/mx/mx.inc @@ -1,7 +1,9 @@ SUMMARY = "Clutter based UI widget library" LICENSE = "LGPLv2.1" -inherit clutter autotools-brokensep +inherit clutter autotools-brokensep distro_features_check +# depends on clutter-1.0 which depends on cogl-1.0 +REQUIRED_DISTRO_FEATURES = "opengl" DEPENDS = "clutter-1.0 dbus-glib gdk-pixbuf" diff --git a/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb b/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb index 9d67e5f89ca..5734b2785f4 100644 --- a/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb +++ b/meta/recipes-graphics/packagegroups/packagegroup-core-clutter.bb @@ -7,7 +7,9 @@ LICENSE = "MIT" PR = "r6" -inherit packagegroup +inherit packagegroup distro_features_check +# rdepends on clutter-* +REQUIRED_DISTRO_FEATURES = "opengl" PACKAGES = "\ ${PN}-core \ diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 38b78bcd020..fc2e4f80ee4 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -11,7 +11,9 @@ do_install() { install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston } -inherit allarch update-rc.d +inherit allarch update-rc.d distro_features_check +# rdepends on weston which depends on virtual/egl +REQUIRED_DISTRO_FEATURES = "opengl" RDEPENDS_${PN} = "weston kbd" diff --git a/meta/recipes-graphics/wayland/weston_1.8.0.bb b/meta/recipes-graphics/wayland/weston_1.8.0.bb index 342c604b985..95cf4956da3 100644 --- a/meta/recipes-graphics/wayland/weston_1.8.0.bb +++ b/meta/recipes-graphics/wayland/weston_1.8.0.bb @@ -16,7 +16,9 @@ SRC_URI = "http://wayland.freedesktop.org/releases/${BPN}-${PV}.tar.xz \ SRC_URI[md5sum] = "24cb8a7ed0535b4fc3642643988dab36" SRC_URI[sha256sum] = "8963e69f328e815cec42c58046c4af721476c7541bb7d9edc71740fada5ad312" -inherit autotools pkgconfig useradd +inherit autotools pkgconfig useradd distro_features_check +# depends on virtual/egl +REQUIRED_DISTRO_FEATURES = "opengl" DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0 jpeg" DEPENDS += "wayland libinput virtual/egl pango" |