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