1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# lua-sdl2 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunLUA_SDL2_VERSION = 2.0.5-6.0 8*4882a593SmuzhiyunLUA_SDL2_SITE = $(call github,Tangent128,luasdl2,v$(LUA_SDL2_VERSION)) 9*4882a593SmuzhiyunLUA_SDL2_LICENSE = ISC 10*4882a593SmuzhiyunLUA_SDL2_LICENSE_FILES = LICENSE 11*4882a593SmuzhiyunLUA_SDL2_DEPENDENCIES = luainterpreter sdl2 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LUAJIT),y) 14*4882a593SmuzhiyunLUA_SDL2_LUAVER = JIT 15*4882a593Smuzhiyunelse ifeq ($(BR2_PACKAGE_LUA_5_3),y) 16*4882a593SmuzhiyunLUA_SDL2_LUAVER = 53 17*4882a593Smuzhiyunelse 18*4882a593SmuzhiyunLUA_SDL2_LUAVER = 51 19*4882a593Smuzhiyunendif 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunLUA_SDL2_CONF_OPTS += -DWITH_LUAVER=$(LUA_SDL2_LUAVER) -DLUA_INCLUDE_DIR=$(STAGING_DIR)/usr/include 22*4882a593Smuzhiyun 23*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SDL2_IMAGE),y) 24*4882a593SmuzhiyunLUA_SDL2_DEPENDENCIES += sdl2_image 25*4882a593Smuzhiyunelse 26*4882a593SmuzhiyunLUA_SDL2_CONF_OPTS += -DWITH_IMAGE=Off 27*4882a593Smuzhiyunendif 28*4882a593Smuzhiyun 29*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SDL2_MIXER),y) 30*4882a593SmuzhiyunLUA_SDL2_DEPENDENCIES += sdl2_mixer 31*4882a593Smuzhiyunelse 32*4882a593SmuzhiyunLUA_SDL2_CONF_OPTS += -DWITH_MIXER=Off 33*4882a593Smuzhiyunendif 34*4882a593Smuzhiyun 35*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SDL2_NET),y) 36*4882a593SmuzhiyunLUA_SDL2_DEPENDENCIES += sdl2_net 37*4882a593Smuzhiyunelse 38*4882a593SmuzhiyunLUA_SDL2_CONF_OPTS += -DWITH_NET=Off 39*4882a593Smuzhiyunendif 40*4882a593Smuzhiyun 41*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SDL2_TTF),y) 42*4882a593SmuzhiyunLUA_SDL2_DEPENDENCIES += sdl2_ttf 43*4882a593Smuzhiyunelse 44*4882a593SmuzhiyunLUA_SDL2_CONF_OPTS += -DWITH_TTF=Off 45*4882a593Smuzhiyunendif 46*4882a593Smuzhiyun 47*4882a593Smuzhiyun$(eval $(cmake-package)) 48