diff options
author | Ross Burton <ross.burton@intel.com> | 2013-10-18 23:38:26 +0100 |
---|---|---|
committer | Tom Zanussi <tom.zanussi@intel.com> | 2013-11-04 16:47:28 -0600 |
commit | ebf255564f43b193d7d6426f79ada9b143790867 (patch) | |
tree | c31e6048209d8b1ee728d883b2ad6bfda6523fe2 /common/recipes-multimedia/libva/libva.inc | |
parent | 2e752e12d2059de41c73c32d490e965cf7417523 (diff) | |
download | meta-intel-ebf255564f43b193d7d6426f79ada9b143790867.tar.gz |
libva: enable Wayland
Use PACKAGECONFIG to respect x11 and wayland DISTRO_FEATURES.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'common/recipes-multimedia/libva/libva.inc')
-rw-r--r-- | common/recipes-multimedia/libva/libva.inc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/common/recipes-multimedia/libva/libva.inc b/common/recipes-multimedia/libva/libva.inc index 0fb02691..e8d93018 100644 --- a/common/recipes-multimedia/libva/libva.inc +++ b/common/recipes-multimedia/libva/libva.inc | |||
@@ -19,15 +19,18 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=2e48940f94acb0af582e5ef03537800f" | |||
19 | 19 | ||
20 | INC_PR = "r1" | 20 | INC_PR = "r1" |
21 | 21 | ||
22 | DEPENDS = "libxext libxfixes libdrm virtual/mesa virtual/libgles1 virtual/libgles2 virtual/egl" | 22 | DEPENDS = "libdrm virtual/mesa virtual/libgles1 virtual/libgles2 virtual/egl" |
23 | 23 | ||
24 | inherit autotools pkgconfig | 24 | inherit autotools pkgconfig |
25 | 25 | ||
26 | # Unconditionally turn wayland off for now | 26 | EXTRA_OECONF = "--disable-dummy-driver" |
27 | EXTRA_OECONF = "${@base_contains('DISTRO_FEATURES', 'wayland', '--disable-wayland', '--disable-wayland', d)} \ | ||
28 | --disable-dummy-driver" | ||
29 | 27 | ||
30 | PACKAGES =+ "${PN}-x11 ${PN}-tpi ${PN}-glx ${PN}-egl" | 28 | PACKAGECONFIG ??= "${@base_contains("DISTRO_FEATURES", "x11", "x11", "", d)} \ |
29 | ${@base_contains("DISTRO_FEATURES", "wayland", "wayland", "", d)}" | ||
30 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxext libxfixes" | ||
31 | PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland" | ||
32 | |||
33 | PACKAGES =+ "${PN}-x11 ${PN}-tpi ${PN}-glx ${PN}-egl ${PN}-wayland" | ||
31 | 34 | ||
32 | RDEPENDS_${PN}-tpi =+ "${PN}" | 35 | RDEPENDS_${PN}-tpi =+ "${PN}" |
33 | RDEPENDS_${PN}-x11 =+ "${PN}" | 36 | RDEPENDS_${PN}-x11 =+ "${PN}" |
@@ -40,3 +43,4 @@ FILES_${PN}-x11 =+ "${libdir}/libva-x11*${SOLIBS}" | |||
40 | FILES_${PN}-tpi =+ "${libdir}/libva-tpi*${SOLIBS}" | 43 | FILES_${PN}-tpi =+ "${libdir}/libva-tpi*${SOLIBS}" |
41 | FILES_${PN}-glx =+ "${libdir}/libva-glx*${SOLIBS}" | 44 | FILES_${PN}-glx =+ "${libdir}/libva-glx*${SOLIBS}" |
42 | FILES_${PN}-egl =+ "${libdir}/libva-egl*${SOLIBS}" | 45 | FILES_${PN}-egl =+ "${libdir}/libva-egl*${SOLIBS}" |
46 | FILES_${PN}-wayland =+ "${libdir}/libva-wayland*${SOLIBS}" | ||