dc1970260b
1. Adds a patch that fixes OpenGLES2 build https://gitlab.com/solarus-games/solarus/-/merge_requests/1364 2. Updates Config.in and solarus.mk to support OpenGLES2 Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com> [yann.morin.1998@free.fr: renumber patch] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# solarus
|
|
#
|
|
################################################################################
|
|
|
|
SOLARUS_VERSION = 1.6.5
|
|
SOLARUS_SITE = \
|
|
https://gitlab.com/solarus-games/solarus/-/archive/v$(SOLARUS_VERSION)
|
|
SOLARUS_SOURCE = solarus-v$(SOLARUS_VERSION).tar.bz2
|
|
|
|
SOLARUS_LICENSE = GPL-3.0 (code), CC-BY-SA-4.0 (Solarus logos and icons), \
|
|
CC-BY-SA-3.0 (GUI icons)
|
|
SOLARUS_LICENSE_FILES = license.txt
|
|
|
|
# Install libsolarus.so
|
|
SOLARUS_INSTALL_STAGING = YES
|
|
|
|
SOLARUS_DEPENDENCIES = glm libmodplug libogg libvorbis openal physfs \
|
|
sdl2 sdl2_image sdl2_ttf
|
|
|
|
# Disable launcher GUI (requires Qt5)
|
|
SOLARUS_CONF_OPTS = \
|
|
-DSOLARUS_GUI=OFF \
|
|
-DSOLARUS_TESTS=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
SOLARUS_DEPENDENCIES += libgl
|
|
else
|
|
SOLARUS_CONF_OPTS += -DSOLARUS_GL_ES=ON
|
|
SOLARUS_DEPENDENCIES += libgles
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LUAJIT),y)
|
|
SOLARUS_CONF_OPTS += -DSOLARUS_USE_LUAJIT=ON
|
|
SOLARUS_DEPENDENCIES += luajit
|
|
else
|
|
SOLARUS_CONF_OPTS += -DSOLARUS_USE_LUAJIT=OFF
|
|
SOLARUS_DEPENDENCIES += lua
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|