Mesa-18.1.1-foss-2018b.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 = 'ConfigureMake'
  10. name = 'Mesa'
  11. version = '18.1.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': 'foss', 'version': '2018b'}
  16. # swr detects and builds parts specific for AVX and AVX2. If we use
  17. # -xHost, this always gets overwritten and will fail.
  18. toolchainopts = {'optarch': False}
  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. patches = ['Mesa-17.3.6_fix-strip-llvm-flags.patch']
  27. checksums = [
  28. 'd3312a2ede5aac14a47476b208b8e3a401367838330197c4588ab8ad420d7781', # mesa-18.1.1.tar.xz
  29. '5aa4e92ed96e3d47ffbecd1ec3a1642407dff11995c5585eb5e06c396654ee30', # Mesa-17.3.6_fix-strip-llvm-flags.patch
  30. ]
  31. builddependencies = [
  32. ('flex', '2.6.4'),
  33. ('Bison', '3.0.5'),
  34. ('Autotools', '20180311'),
  35. ('pkg-config', '0.29.2'),
  36. ('Mako', '1.0.7', '-Python-3.6.6'),
  37. ('libxml2', '2.9.8'),
  38. ('expat', '2.2.5'),
  39. ]
  40. dependencies = [
  41. ('zlib', '1.2.11'),
  42. ('nettle', '3.4'),
  43. ('libdrm', '2.4.92'),
  44. ('LLVM', '6.0.0'),
  45. ('X11', '20180604'),
  46. ]
  47. # GLU is not part anymore of Mesa package!
  48. configopts = " --disable-osmesa --enable-gallium-osmesa --enable-gallium-llvm --enable-glx --disable-dri"
  49. configopts += " --disable-gbm --disable-driglx-direct --with-gallium-drivers='swrast,swr' --disable-egl"
  50. configopts += " --with-osmesa-bits=32 --enable-texture-float --enable-llvm-shared-libs "
  51. buildopts = 'V=1'
  52. sanity_check_paths = {
  53. 'files': ['lib/libGL.%s' % SHLIB_EXT, 'lib/libOSMesa.%s' % SHLIB_EXT,
  54. 'lib/libGLESv1_CM.%s' % SHLIB_EXT, 'lib/libGLESv2.%s' % SHLIB_EXT,
  55. 'include/GL/glext.h', 'include/GL/gl_mangle.h',
  56. 'include/GL/glx.h', 'include/GL/osmesa.h',
  57. 'include/GL/gl.h', 'include/GL/glxext.h',
  58. 'include/GL/glx_mangle.h', 'include/GLES/gl.h',
  59. 'include/GLES2/gl2.h', 'include/GLES3/gl3.h'],
  60. 'dirs': []
  61. }
  62. moduleclass = 'vis'