mesa3d-demos.mk 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. ################################################################################
  2. #
  3. # mesa3d-demos
  4. #
  5. ################################################################################
  6. MESA3D_DEMOS_VERSION = 8.3.0
  7. MESA3D_DEMOS_SOURCE = mesa-demos-$(MESA3D_DEMOS_VERSION).tar.bz2
  8. MESA3D_DEMOS_SITE = ftp://ftp.freedesktop.org/pub/mesa/demos/$(MESA3D_DEMOS_VERSION)
  9. MESA3D_DEMOS_AUTORECONF = YES
  10. MESA3D_DEMOS_DEPENDENCIES = host-pkgconf
  11. MESA3D_DEMOS_LICENSE = MIT
  12. MESA3D_DEMOS_CONF_OPTS += \
  13. --disable-gles1
  14. ifeq ($(BR2_PACKAGE_XORG7)$(BR2_PACKAGE_HAS_LIBGL),yy)
  15. MESA3D_DEMOS_DEPENDENCIES += libgl libglew libglu xlib_libX11 xlib_libXext
  16. MESA3D_DEMOS_CONF_OPTS += --enable-gl --enable-x11
  17. else
  18. MESA3D_DEMOS_CONF_OPTS += --disable-gl --disable-x11
  19. endif
  20. ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
  21. MESA3D_DEMOS_DEPENDENCIES += libegl
  22. MESA3D_DEMOS_CONF_OPTS += --enable-egl
  23. else
  24. MESA3D_DEMOS_CONF_OPTS += --disable-egl
  25. endif
  26. ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
  27. MESA3D_DEMOS_DEPENDENCIES += libgles
  28. MESA3D_DEMOS_CONF_OPTS += --enable-gles2
  29. else
  30. MESA3D_DEMOS_CONF_OPTS += --disable-gles2
  31. endif
  32. ifeq ($(BR2_PACKAGE_HAS_LIBOPENVG),y)
  33. MESA3D_DEMOS_DEPENDENCIES += libopenvg
  34. MESA3D_DEMOS_CONF_OPTS += --enable-vg
  35. else
  36. MESA3D_DEMOS_CONF_OPTS += --disable-vg
  37. endif
  38. ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y)
  39. MESA3D_DEMOS_DEPENDENCIES += mesa3d
  40. MESA3D_DEMOS_CONF_OPTS += --enable-gbm
  41. else
  42. MESA3D_DEMOS_CONF_OPTS += --disable-gbm
  43. endif
  44. ifeq ($(BR2_PACKAGE_FREETYPE),y)
  45. MESA3D_DEMOS_DEPENDENCIES += freetype
  46. MESA3D_DEMOS_CONF_OPTS += --enable-freetype2
  47. else
  48. MESA3D_DEMOS_CONF_OPTS += --disable-freetype2
  49. endif
  50. ifeq ($(BR2_PACKAGE_LIBFREEGLUT),y)
  51. MESA3D_DEMOS_DEPENDENCIES += libfreeglut
  52. MESA3D_DEMOS_CONF_OPTS += --with-glut=$(STAGING_DIR)/usr
  53. # osmesa support depends on glut
  54. ifeq ($(BR2_PACKAGE_MESA3D_OSMESA),y)
  55. MESA3D_DEMOS_CONF_OPTS += --enable-osmesa
  56. else
  57. MESA3D_DEMOS_CONF_OPTS += --disable-osmesa
  58. endif
  59. else
  60. MESA3D_DEMOS_CONF_OPTS += --without-glut --disable-osmesa
  61. endif
  62. ifeq ($(BR2_PACKAGE_WAYLAND),y)
  63. MESA3D_DEMOS_DEPENDENCIES += wayland
  64. MESA3D_DEMOS_CONF_OPTS += --enable-wayland
  65. else
  66. MESA3D_DEMOS_CONF_OPTS += --disable-wayland
  67. endif
  68. $(eval $(autotools-package))