<commit_before>#
# base recipe: meta/recipes-graphics/mesa/mesa_10.6.3.bb
# base branch: jethro
#

SUMMARY = "free implementation of the OpenGL API"
HOMEPAGE = "http://mesa3d.sourceforge.net/"

inherit debian-package
PV = "10.3.2"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://docs/license.html;md5=6a23445982a7a972ac198e93cc1cb3de"

DEBIAN_PATCH_TYPE = "quilt"

DEPENDS = "expat flex-native bison-native udev"

PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa"

inherit autotools pkgconfig pythonnative gettext distro_features_check

REQUIRED_DISTRO_FEATURES = "opengl"

PACKAGECONFIG ??= "dri dri3 egl gallium openvg r600 gles vdpau xa xvmc \
                ${@<EMAIL>('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
                ${@<EMAIL>.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
                "

X11_DEPS = "glproto libxext libxdamage libxfixes libxxf86vm"
PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}"
PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
PACKAGECONFIG[wayland] = ",,wayland"

DRI_DRIVERS = "nouveau"
DRI_DRIVERS_append_x86 = ",i915,i965,r200,radeon"
DRI_DRIVERS_append_x86-64 = ",i915,i965,r200,radeon"
DRI_DRIVERS_append_arm = ",swrast"
PACKAGECONFIG[dri] = "--enable-dri --enable-driglx-direct --with-dri-drivers=${DRI_DRIVERS}, \
                      --disable-dri, dri2proto libdrm"
PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, x11proto-dri3 presentproto libxshmfence"

PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2"

EGL_DISPLAYS  = "drm"
EGL_DISPLAYS .="${<EMAIL>('PACKAGECONFIG', 'x11', ',x11', '', d)}"<commit_msg>mesa: Only enable 'xvmc', 'vdpau' if DISTRO_FEATURES contains 'x11'<commit_after>#
# base recipe: meta/recipes-graphics/mesa/mesa_10.6.3.bb
# base branch: jethro
#

SUMMARY = "free implementation of the OpenGL API"
HOMEPAGE = "http://mesa3d.sourceforge.net/"

inherit debian-package
PV = "10.3.2"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://docs/license.html;md5=6a23445982a7a972ac198e93cc1cb3de"

DEBIAN_PATCH_TYPE = "quilt"

DEPENDS = "expat flex-native bison-native udev"

PROVIDES = "virtual/libgl virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa"

inherit autotools pkgconfig pythonnative gettext distro_features_check

REQUIRED_DISTRO_FEATURES = "opengl"

PACKAGECONFIG ??= "dri dri3 egl gallium openvg r600 gles xa \
                ${<EMAIL>('DISTRO_FEATURES', 'x11', 'x11 xvmc vdpau', '', d)} \
                ${<EMAIL>('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
                "

X11_DEPS = "glproto libxext libxdamage libxfixes libxxf86vm"
PACKAGECONFIG[x11] = "--enable-glx-tls,--disable-glx,${X11_DEPS}"
PACKAGECONFIG[xvmc] = "--enable-xvmc,--disable-xvmc,libxvmc"
PACKAGECONFIG[wayland] = ",,wayland"

DRI_DRIVERS = "nouveau"
DRI_DRIVERS_append_x86 = ",i915,i965,r200,radeon"
DRI_DRIVERS_append_x86-64 = ",i915,i965,r200,radeon"
DRI_DRIVERS_append_arm = ",swrast"
PACKAGECONFIG[dri] = "--enable-dri --enable-driglx-direct --with-dri-drivers=${DRI_DRIVERS}, \
                      --disable-dri, dri2proto libdrm"
PACKAGECONFIG[dri3] = "--enable-dri3, --disable-dri3, x11proto-dri3 presentproto libxshmfence"

PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2"

EGL_DISPLAYS  = "drm"
EGL_DISPLAYS .="${@<EMAIL>.contains('PACKAGECONFIG', 'x11', ',x11', '', d)}"
{'fraction_non_alphanumeric': 0.15585559142941005, 'fraction_numerical': 0.0516583504549457, 'mean_word_length': 4.523500810372772, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3811768', 'n_tokens_mistral': 1497, 'n_tokens_neox': 1439, 'n_words': 225}