glslsandbox-player.mk 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. ################################################################################
  2. #
  3. # glslsandbox-player
  4. #
  5. ################################################################################
  6. GLSLSANDBOX_PLAYER_VERSION = 2023.04.05
  7. GLSLSANDBOX_PLAYER_SITE = $(call github,jolivain,glslsandbox-player,v$(GLSLSANDBOX_PLAYER_VERSION))
  8. GLSLSANDBOX_PLAYER_AUTORECONF = YES
  9. GLSLSANDBOX_PLAYER_DEPENDENCIES = libegl libgles host-pkgconf
  10. GLSLSANDBOX_PLAYER_LICENSE = BSD-2-Clause
  11. GLSLSANDBOX_PLAYER_LICENSE_FILES = LICENSE
  12. ifeq ($(BR2_PACKAGE_LIBEXECINFO),y)
  13. GLSLSANDBOX_PLAYER_DEPENDENCIES += libexecinfo
  14. GLSLSANDBOX_PLAYER_CONF_ENV += LIBS="-lexecinfo"
  15. endif
  16. ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_PNG),y)
  17. GLSLSANDBOX_PLAYER_DEPENDENCIES += libpng
  18. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-libpng
  19. else
  20. GLSLSANDBOX_PLAYER_CONF_OPTS += --without-libpng
  21. endif
  22. ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_TESTING),y)
  23. GLSLSANDBOX_PLAYER_CONF_OPTS += \
  24. --with-shader-list=shader-tests.list \
  25. --enable-testing \
  26. --enable-install-testsuite
  27. else
  28. GLSLSANDBOX_PLAYER_CONF_OPTS += \
  29. --with-shader-list=shader-local.list \
  30. --disable-testing
  31. endif
  32. ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_SCRIPTS),y)
  33. GLSLSANDBOX_PLAYER_CONF_OPTS += --enable-install-scripts
  34. else
  35. GLSLSANDBOX_PLAYER_CONF_OPTS += --disable-install-scripts
  36. endif
  37. ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_NULL),y)
  38. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=nullws
  39. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_KMS),y)
  40. GLSLSANDBOX_PLAYER_DEPENDENCIES += libdrm libgbm
  41. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=kms
  42. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_MALI),y)
  43. GLSLSANDBOX_PLAYER_DEPENDENCIES += sunxi-mali-utgard
  44. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=mali
  45. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_MALI_T76X),y)
  46. GLSLSANDBOX_PLAYER_DEPENDENCIES += mali-t76x
  47. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=nullws
  48. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_RPI),y)
  49. GLSLSANDBOX_PLAYER_DEPENDENCIES += rpi-userland
  50. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=rpi
  51. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_SDL2),y)
  52. GLSLSANDBOX_PLAYER_DEPENDENCIES += sdl2
  53. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=sdl2
  54. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_TISGX),y)
  55. GLSLSANDBOX_PLAYER_DEPENDENCIES += ti-sgx-um
  56. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=tisgx
  57. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_VIVFB),y)
  58. GLSLSANDBOX_PLAYER_DEPENDENCIES += imx-gpu-viv
  59. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=vivfb
  60. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_WL),y)
  61. GLSLSANDBOX_PLAYER_DEPENDENCIES += wayland
  62. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=wl
  63. ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_WL_IVI),y)
  64. GLSLSANDBOX_PLAYER_CONF_OPTS += --enable-ivi
  65. else
  66. GLSLSANDBOX_PLAYER_CONF_OPTS += --disable-ivi
  67. endif
  68. ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_WL_XDG),y)
  69. GLSLSANDBOX_PLAYER_DEPENDENCIES += wayland-protocols
  70. GLSLSANDBOX_PLAYER_CONF_OPTS += --enable-wlxdg
  71. else
  72. GLSLSANDBOX_PLAYER_CONF_OPTS += --disable-wlxdg
  73. endif
  74. else ifeq ($(BR2_PACKAGE_GLSLSANDBOX_PLAYER_X11),y)
  75. GLSLSANDBOX_PLAYER_DEPENDENCIES += xlib_libX11
  76. GLSLSANDBOX_PLAYER_CONF_OPTS += --with-native-gfx=x11
  77. endif
  78. $(eval $(autotools-package))