1*4882a593SmuzhiyunSUMMARY = "Mesa demo applications" 2*4882a593SmuzhiyunDESCRIPTION = "This package includes the demonstration application, such as glxgears. \ 3*4882a593SmuzhiyunThese applications can be used for Mesa validation and benchmarking." 4*4882a593SmuzhiyunHOMEPAGE = "http://mesa3d.org" 5*4882a593SmuzhiyunBUGTRACKER = "https://bugs.freedesktop.org" 6*4882a593SmuzhiyunSECTION = "x11" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunLICENSE = "MIT & PD" 9*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://src/xdemos/glxgears.c;beginline=1;endline=20;md5=914225785450eff644a86c871d3ae00e \ 10*4882a593Smuzhiyun file://src/xdemos/glxdemo.c;beginline=1;endline=8;md5=b01d5ab1aee94d35b7efaa2ef48e1a06" 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunSRC_URI = "https://mesa.freedesktop.org/archive/demos/${BPN}-${PV}.tar.bz2 \ 13*4882a593Smuzhiyun file://0001-mesa-demos-Add-missing-data-files.patch \ 14*4882a593Smuzhiyun file://0003-configure-Allow-to-disable-demos-which-require-GLEW-.patch \ 15*4882a593Smuzhiyun file://0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch \ 16*4882a593Smuzhiyun file://0007-Install-few-more-test-programs.patch \ 17*4882a593Smuzhiyun file://0008-glsl-perf-Add-few-missing-.glsl-.vert-.frag-files-to.patch \ 18*4882a593Smuzhiyun file://0009-glsl-perf-Install-.glsl-.vert-.frag-files.patch \ 19*4882a593Smuzhiyun file://0012-mesa-demos-OpenVG-demos-with-single-frame-need-eglSw.patch \ 20*4882a593Smuzhiyun " 21*4882a593SmuzhiyunSRC_URI[md5sum] = "6b65a02622765522176d00f553086fa3" 22*4882a593SmuzhiyunSRC_URI[sha256sum] = "01e99c94a0184e63e796728af89bfac559795fb2a0d6f506fa900455ca5fff7d" 23*4882a593Smuzhiyun 24*4882a593Smuzhiyuninherit autotools pkgconfig features_check 25*4882a593Smuzhiyun# depends on virtual/egl, virtual/libgl ... 26*4882a593SmuzhiyunREQUIRED_DISTRO_FEATURES = "opengl x11" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunPACKAGECONFIG ?= "drm osmesa freetype2 gbm egl gles1 gles2 \ 29*4882a593Smuzhiyun x11 glew glu" 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun# The Wayland code doesn't work with Wayland 1.0, so disable it for now 32*4882a593Smuzhiyun#${@bb.utils.filter('DISTRO_FEATURES', 'wayland', d)}" 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunEXTRA_OECONF = "--with-system-data-files" 35*4882a593Smuzhiyun 36*4882a593SmuzhiyunPACKAGECONFIG[drm] = "--enable-libdrm,--disable-libdrm,libdrm" 37*4882a593SmuzhiyunPACKAGECONFIG[egl] = "--enable-egl,--disable-egl,virtual/egl" 38*4882a593SmuzhiyunPACKAGECONFIG[freetype2] = "--enable-freetype2,--disable-freetype2,freetype" 39*4882a593SmuzhiyunPACKAGECONFIG[gbm] = "--enable-gbm,--disable-gbm,virtual/libgl" 40*4882a593SmuzhiyunPACKAGECONFIG[gles1] = "--enable-gles1,--disable-gles1,virtual/libgles1" 41*4882a593SmuzhiyunPACKAGECONFIG[gles2] = "--enable-gles2,--disable-gles2,virtual/libgles2" 42*4882a593SmuzhiyunPACKAGECONFIG[glut] = "--with-glut=${STAGING_EXECPREFIXDIR},--without-glut,freeglut" 43*4882a593SmuzhiyunPACKAGECONFIG[osmesa] = "--enable-osmesa,--disable-osmesa," 44*4882a593SmuzhiyunPACKAGECONFIG[vg] = "--enable-vg,--disable-vg,virtual/libopenvg" 45*4882a593SmuzhiyunPACKAGECONFIG[wayland] = "--enable-wayland,--disable-wayland,virtual/libgl wayland" 46*4882a593SmuzhiyunPACKAGECONFIG[x11] = "--enable-x11,--disable-x11,virtual/libx11" 47*4882a593SmuzhiyunPACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew" 48*4882a593SmuzhiyunPACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl" 49*4882a593Smuzhiyun 50*4882a593Smuzhiyundo_install:append() { 51*4882a593Smuzhiyun # it can be completely empty when all PACKAGECONFIG options are disabled 52*4882a593Smuzhiyun rmdir --ignore-fail-on-non-empty ${D}${bindir} 53*4882a593Smuzhiyun 54*4882a593Smuzhiyun if [ -f ${D}${bindir}/clear ]; then 55*4882a593Smuzhiyun mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos 56*4882a593Smuzhiyun fi 57*4882a593Smuzhiyun} 58