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