Mesa-18.1.1-foss-2018b-Python-3.6.6.eb 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. versionsuffix = '-Python-%(pyver)s'
  13. homepage = 'http://www.mesa3d.org/'
  14. description = """Mesa is an open-source implementation of the OpenGL specification -
  15. a system for rendering interactive 3D graphics."""
  16. toolchain = {'name': 'foss', 'version': '2018b'}
  17. # swr detects and builds parts specific for AVX and AVX2. If we use
  18. # -xHost, this always gets overwritten and will fail.
  19. toolchainopts = {'optarch': False}
  20. source_urls = [
  21. 'https://mesa.freedesktop.org/archive/',
  22. 'https://mesa.freedesktop.org/archive/%(version)s',
  23. 'ftp://ftp.freedesktop.org/pub/mesa/%(version)s',
  24. 'ftp://ftp.freedesktop.org/pub/mesa/older-versions/%(version_major)s.x/%(version)s',
  25. ]
  26. sources = [SOURCELOWER_TAR_XZ]
  27. patches = ['Mesa-17.3.6_fix-strip-llvm-flags.patch']
  28. checksums = [
  29. 'd3312a2ede5aac14a47476b208b8e3a401367838330197c4588ab8ad420d7781', # mesa-18.1.1.tar.xz
  30. '5aa4e92ed96e3d47ffbecd1ec3a1642407dff11995c5585eb5e06c396654ee30', # Mesa-17.3.6_fix-strip-llvm-flags.patch
  31. ]
  32. builddependencies = [
  33. ('flex', '2.6.4'),
  34. ('Bison', '3.0.5'),
  35. ('Autotools', '20180311'),
  36. ('pkg-config', '0.29.2'),
  37. ('Mako', '1.0.7', versionsuffix),
  38. ('libxml2', '2.9.8'),
  39. ('expat', '2.2.5'),
  40. ]
  41. dependencies = [
  42. ('Python', '3.6.6'),
  43. ('zlib', '1.2.11'),
  44. ('nettle', '3.4'),
  45. ('libdrm', '2.4.92'),
  46. ('LLVM', '7.0.0'),
  47. ('X11', '20180604'),
  48. ]
  49. # GLU is not part anymore of Mesa package!
  50. configopts = " --disable-osmesa --enable-gallium-osmesa --enable-gallium-llvm --enable-glx --disable-dri"
  51. configopts += " --disable-gbm --disable-driglx-direct --with-gallium-drivers='swrast,swr' --disable-egl"
  52. configopts += " --with-osmesa-bits=32 --enable-texture-float --enable-llvm-shared-libs "
  53. buildopts = 'V=1'
  54. sanity_check_paths = {
  55. 'files': ['lib/libGL.%s' % SHLIB_EXT, 'lib/libOSMesa.%s' % SHLIB_EXT,
  56. 'lib/libGLESv1_CM.%s' % SHLIB_EXT, 'lib/libGLESv2.%s' % SHLIB_EXT,
  57. 'include/GL/glext.h', 'include/GL/gl_mangle.h',
  58. 'include/GL/glx.h', 'include/GL/osmesa.h',
  59. 'include/GL/gl.h', 'include/GL/glxext.h',
  60. 'include/GL/glx_mangle.h', 'include/GLES/gl.h',
  61. 'include/GLES2/gl2.h', 'include/GLES3/gl3.h'],
  62. 'dirs': []
  63. }
  64. moduleclass = 'vis'