summaryrefslogtreecommitdiffstats
path: root/common/recipes-multimedia/libva/libva.inc
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-10-18 23:38:26 +0100
committerTom Zanussi <tom.zanussi@intel.com>2013-11-04 16:47:28 -0600
commitebf255564f43b193d7d6426f79ada9b143790867 (patch)
treec31e6048209d8b1ee728d883b2ad6bfda6523fe2 /common/recipes-multimedia/libva/libva.inc
parent2e752e12d2059de41c73c32d490e965cf7417523 (diff)
downloadmeta-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.inc14
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
20INC_PR = "r1" 20INC_PR = "r1"
21 21
22DEPENDS = "libxext libxfixes libdrm virtual/mesa virtual/libgles1 virtual/libgles2 virtual/egl" 22DEPENDS = "libdrm virtual/mesa virtual/libgles1 virtual/libgles2 virtual/egl"
23 23
24inherit autotools pkgconfig 24inherit autotools pkgconfig
25 25
26# Unconditionally turn wayland off for now 26EXTRA_OECONF = "--disable-dummy-driver"
27EXTRA_OECONF = "${@base_contains('DISTRO_FEATURES', 'wayland', '--disable-wayland', '--disable-wayland', d)} \
28 --disable-dummy-driver"
29 27
30PACKAGES =+ "${PN}-x11 ${PN}-tpi ${PN}-glx ${PN}-egl" 28PACKAGECONFIG ??= "${@base_contains("DISTRO_FEATURES", "x11", "x11", "", d)} \
29 ${@base_contains("DISTRO_FEATURES", "wayland", "wayland", "", d)}"
30PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11 libxext libxfixes"
31PACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,wayland"
32
33PACKAGES =+ "${PN}-x11 ${PN}-tpi ${PN}-glx ${PN}-egl ${PN}-wayland"
31 34
32RDEPENDS_${PN}-tpi =+ "${PN}" 35RDEPENDS_${PN}-tpi =+ "${PN}"
33RDEPENDS_${PN}-x11 =+ "${PN}" 36RDEPENDS_${PN}-x11 =+ "${PN}"
@@ -40,3 +43,4 @@ FILES_${PN}-x11 =+ "${libdir}/libva-x11*${SOLIBS}"
40FILES_${PN}-tpi =+ "${libdir}/libva-tpi*${SOLIBS}" 43FILES_${PN}-tpi =+ "${libdir}/libva-tpi*${SOLIBS}"
41FILES_${PN}-glx =+ "${libdir}/libva-glx*${SOLIBS}" 44FILES_${PN}-glx =+ "${libdir}/libva-glx*${SOLIBS}"
42FILES_${PN}-egl =+ "${libdir}/libva-egl*${SOLIBS}" 45FILES_${PN}-egl =+ "${libdir}/libva-egl*${SOLIBS}"
46FILES_${PN}-wayland =+ "${libdir}/libva-wayland*${SOLIBS}"