Mesa-19.0.1-GCCcore-8.2.0.eb 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Automatically converted from Mesa-17.2.4-intel-2017b.eb
  2. # Original message:
  3. # the purpose of the easyconfig is to build a Mesa for software rendering,
  4. # not hardware rendering. This means you want at least SSE4.2. We build:
  5. # - llvmpipe: the high-performance Gallium LLVM driver
  6. # - swr: Intel's OpenSWR
  7. # it will try to use the llvmpipe by default. It you want swr, do:
  8. # GALLIUM_DRIVER=swr
  9. easyblock = 'MesonNinja'
  10. name = 'Mesa'
  11. version = '19.0.1'
  12. homepage = 'http://www.mesa3d.org/'
  13. description = """Mesa is an open-source implementation of the OpenGL specification -
  14. a system for rendering interactive 3D graphics."""
  15. toolchain = {'name': 'GCCcore', 'version': '8.2.0'}
  16. # Intel's SWR generates AVX instructions even on CPUs without support for it (ignoring march=native).
  17. # In that case it is necessary to explicitly set the march of your CPU, for instance for an AMD Opteron 6100
  18. # toolchainopts = {'optarch': 'march=barcelona'}
  19. source_urls = [
  20. 'https://mesa.freedesktop.org/archive/',
  21. 'https://mesa.freedesktop.org/archive/%(version)s',
  22. 'ftp://ftp.freedesktop.org/pub/mesa/%(version)s',
  23. 'ftp://ftp.freedesktop.org/pub/mesa/older-versions/%(version_major)s.x/%(version)s',
  24. ]
  25. sources = [SOURCELOWER_TAR_XZ]
  26. checksums = [
  27. '6884163c0ea9e4c98378ab8fecd72fe7b5f437713a14471beda378df247999d4', # mesa-19.0.1.tar.xz
  28. ]
  29. builddependencies = [
  30. ('binutils', '2.31.1'),
  31. ('Meson', '0.50.0', '-Python-3.7.2'),
  32. ('Ninja', '1.9.0'),
  33. ('flex', '2.6.4'),
  34. ('Bison', '3.0.5'),
  35. ('pkg-config', '0.29.2'),
  36. ('Mako', '1.0.8'),
  37. ('libxml2', '2.9.8'),
  38. ('expat', '2.2.6'),
  39. ('gettext', '0.19.8.1'),
  40. ]
  41. dependencies = [
  42. ('zlib', '1.2.11'),
  43. ('nettle', '3.4.1'),
  44. ('libdrm', '2.4.97'),
  45. ('LLVM', '7.0.1'),
  46. ('X11', '20190311'),
  47. ('libunwind', '1.3.1'),
  48. ]
  49. configopts = " -Dplatforms=x11 -Dosmesa=gallium -Ddri3=false -Ddri-drivers='' -Dvulkan-drivers=''"
  50. configopts += " -Dgbm=false -Dglx-direct=false -Dgallium-drivers='swrast,swr' -Degl=false"
  51. configopts += " -Dllvm=true -Dshared-llvm=true"
  52. configopts += " -Dlibunwind=true -Dglx=gallium-xlib"
  53. sanity_check_paths = {
  54. 'files': ['lib/libGL.%s' % SHLIB_EXT, 'lib/libOSMesa.%s' % SHLIB_EXT,
  55. 'lib/libGLESv1_CM.%s' % SHLIB_EXT, 'lib/libGLESv2.%s' % SHLIB_EXT,
  56. 'include/GL/glext.h', 'include/GL/gl_mangle.h',
  57. 'include/GL/glx.h', 'include/GL/osmesa.h',
  58. 'include/GL/gl.h', 'include/GL/glxext.h',
  59. 'include/GL/glx_mangle.h', 'include/GLES/gl.h',
  60. 'include/GLES2/gl2.h', 'include/GLES3/gl3.h'],
  61. 'dirs': []
  62. }
  63. moduleclass = 'vis'