2012-07-30 16:17:28 +00:00
|
|
|
DEPENDS += "libdrm expat udev"
|
|
|
|
X11_DEPS += "dri2proto"
|
2011-10-13 08:28:43 +00:00
|
|
|
|
2011-10-14 14:32:20 +00:00
|
|
|
DRIDRIVERS = "swrast"
|
2013-01-31 18:22:41 +00:00
|
|
|
DRIDRIVERS_append_x86 = ",radeon,r200,nouveau,i965,i915"
|
|
|
|
DRIDRIVERS_append_x86-64 = ",radeon,r200,nouveau,i965,i915"
|
2011-10-14 14:32:20 +00:00
|
|
|
|
2012-08-02 16:48:59 +00:00
|
|
|
EXTRA_OECONF += "--disable-gallium --without-gallium-drivers"
|
|
|
|
EXTRA_OECONF += "--enable-dri --with-dri-drivers=${DRIDRIVERS}"
|
2012-07-30 15:54:26 +00:00
|
|
|
EXTRA_OECONF += "--enable-gbm"
|
2011-10-13 08:28:43 +00:00
|
|
|
|
2012-07-30 14:40:39 +00:00
|
|
|
PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2"
|
|
|
|
|
2012-07-30 15:54:26 +00:00
|
|
|
EGL_PLATFORMS = "drm"
|
|
|
|
EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'x11', ',x11', '', d)}"
|
2012-12-18 13:38:35 +00:00
|
|
|
EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'wayland', ',wayland', '', d)}"
|
2012-07-30 15:54:26 +00:00
|
|
|
PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl"
|
|
|
|
|
2011-10-13 08:28:43 +00:00
|
|
|
python populate_packages_prepend() {
|
2012-07-11 17:33:43 +00:00
|
|
|
dri_drivers_root = os.path.join(d.getVar('libdir', True), "dri")
|
2013-03-19 16:23:56 +00:00
|
|
|
|
|
|
|
pkgs = ['mesa', 'mesa-dev', 'mesa-dbg']
|
|
|
|
pkgs += do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-driver-%s', 'Mesa %s DRI driver', extra_depends='')
|
|
|
|
for pkg in pkgs:
|
|
|
|
d.setVar("RPROVIDES_%s" % pkg, pkg.replace("mesa-", "mesa-dri-"))
|
|
|
|
d.setVar("RCONFLICTS_%s" % pkg, pkg.replace("mesa-", "mesa-dri-"))
|
|
|
|
d.setVar("RREPLACES_%s" % pkg, pkg.replace("mesa-", "mesa-dri-"))
|
2011-10-13 08:28:43 +00:00
|
|
|
}
|
|
|
|
|
2013-03-19 16:23:56 +00:00
|
|
|
PACKAGES_DYNAMIC += "^mesa-driver-.*"
|
2011-10-13 08:28:43 +00:00
|
|
|
|
|
|
|
FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
|
|
|
|
|