Mesa-17.0.2-intel-2017.02.eb 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. # the purpose of the easyconfig is to build a Mesa for software rendering,
  2. # not hardware rendering. This means you want at least SSE4.2. We build:
  3. # - llvmpipe: the high-performance Gallium LLVM driver
  4. # - swr: Intel's OpenSWR
  5. # it will try to use the llvmpipe by default. It you want swr, do:
  6. # GALLIUM_DRIVER=swr
  7. easyblock = 'ConfigureMake'
  8. name = 'Mesa'
  9. version = '17.0.2'
  10. homepage = 'http://www.mesa3d.org/'
  11. description = """Mesa is an open-source implementation of the OpenGL specification -
  12. a system for rendering interactive 3D graphics."""
  13. toolchain = {'name': 'intel', 'version': '2017.02'}
  14. # swr detects and builds parts specific for AVX and AVX2. If we use
  15. # -xHost, this always gets overwritten and will fail.
  16. toolchainopts = {'optarch': False}
  17. sources = [SOURCELOWER_TAR_XZ]
  18. source_urls = [
  19. 'https://mesa.freedesktop.org/archive/',
  20. 'https://mesa.freedesktop.org/archive/%(version)s',
  21. 'ftp://ftp.freedesktop.org/pub/mesa/%(version)s',
  22. 'ftp://ftp.freedesktop.org/pub/mesa/older-versions/%(version_major)s.x/%(version)s',
  23. ]
  24. patches = ['Mesa-%(version)s_fix-strip-llvm-flags.patch']
  25. builddependencies = [
  26. ('flex', '2.6.3'),
  27. ('Bison', '3.0.4'),
  28. ('Autotools', '20150215'),
  29. ('pkg-config', '0.29.1'),
  30. ('Mako', '1.0.6'),
  31. ('libxml2', '2.9.4'),
  32. ]
  33. dependencies = [
  34. ('zlib', '1.2.11'),
  35. ('nettle', '3.3'),
  36. ('libdrm', '2.4.76'),
  37. ('LLVM', '4.0.0'),
  38. ('X11', '20170314'),
  39. ]
  40. # GLU is not part anymore of Mesa package!
  41. configopts = " --disable-osmesa --enable-gallium-osmesa --enable-gallium-llvm --enable-glx --disable-dri"
  42. configopts += " --disable-gbm --disable-driglx-direct --with-gallium-drivers='swrast,swr' --disable-egl"
  43. configopts += " --with-osmesa-bits=32 --enable-texture-float --enable-llvm-shared-libs "
  44. buildopts = 'V=1'
  45. sanity_check_paths = {
  46. 'files': ['lib/libGL.%s' % SHLIB_EXT, 'lib/libOSMesa.%s' % SHLIB_EXT,
  47. 'lib/libGLESv1_CM.%s' % SHLIB_EXT, 'lib/libGLESv2.%s' % SHLIB_EXT,
  48. 'include/GL/glext.h', 'include/GL/gl_mangle.h',
  49. 'include/GL/glx.h', 'include/GL/osmesa.h',
  50. 'include/GL/gl.h', 'include/GL/glxext.h',
  51. 'include/GL/glx_mangle.h', 'include/GLES/gl.h',
  52. 'include/GLES2/gl2.h', 'include/GLES3/gl3.h'],
  53. 'dirs': []
  54. }
  55. moduleclass = 'vis'