cairo-1.14.8-intel-2017.02.eb 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. easyblock = 'ConfigureMake'
  2. name = 'cairo'
  3. version = '1.14.8'
  4. homepage = 'http://cairographics.org'
  5. description = """Cairo is a 2D graphics library with support for multiple output devices.
  6. Currently supported output targets include the X Window System (via both Xlib and XCB), Quartz, Win32, image buffers,
  7. PostScript, PDF, and SVG file output. Experimental backends include OpenGL, BeOS, OS/2, and DirectFB"""
  8. toolchain = {'name': 'intel', 'version': '2017.02'}
  9. source_urls = ['http://cairographics.org/releases/']
  10. sources = [SOURCE_TAR_XZ]
  11. dependencies = [
  12. ('bzip2', '1.0.6'),
  13. ('zlib', '1.2.11'),
  14. ('libpng', '1.6.29'),
  15. ('freetype', '2.7.1', '-libpng-1.6.29'),
  16. ('pixman', '0.34.0'),
  17. ('expat', '2.2.0'),
  18. ('GLib', '2.52.0'),
  19. ('X11', '20170314'),
  20. ]
  21. # disable symbol lookup, which requires -lbfd, to avoid link issues with (non-PIC) libiberty.a provided by GCC
  22. configopts = "--enable-symbol-lookup=no --enable-gobject=yes --enable-svg=yes --enable-tee=yes --enable-xlib-xcb "
  23. # workaround for "hidden symbol .* in .* is referenced by DSO" and "ld: final link failed: Bad value"
  24. buildopts = 'LD="$CC" LDFLAGS="$LDFLAGS -shared-intel"'
  25. sanity_check_paths = {
  26. 'files': ['bin/cairo-trace', 'lib/cairo/libcairo-trace.so', 'lib/cairo/libcairo-trace.a',
  27. 'lib/libcairo.a', 'lib/libcairo-gobject.a', 'lib/libcairo-script-interpreter.a',
  28. 'lib/libcairo-gobject.so', 'lib/libcairo-script-interpreter.so', 'lib/libcairo.so'] +
  29. ['include/cairo/cairo%s.h' % x for x in ['', '-deprecated', '-features', '-ft', '-gobject', '-pdf', '-ps',
  30. '-script', '-script-interpreter', '-svg', '-version', '-xcb',
  31. '-xlib', '-xlib-xrender']],
  32. 'dirs': ['lib/pkgconfig'],
  33. }
  34. moduleclass = 'vis'