2017-11-29 21:04:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# solarus
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-05-04 16:37:42 +02:00
|
|
|
SOLARUS_VERSION = 1.6.4
|
2019-12-15 14:13:56 +01:00
|
|
|
SOLARUS_SITE = \
|
|
|
|
https://gitlab.com/solarus-games/solarus/-/archive/v$(SOLARUS_VERSION)
|
|
|
|
SOLARUS_SOURCE = solarus-v$(SOLARUS_VERSION).tar.bz2
|
2017-11-29 21:04:52 +01:00
|
|
|
|
|
|
|
SOLARUS_LICENSE = GPL-3.0 (code), CC-BY-SA-4.0 (Solarus logos and icons), \
|
|
|
|
CC-BY-SA-3.0 (GUI icons)
|
2019-01-03 00:10:25 +01:00
|
|
|
SOLARUS_LICENSE_FILES = license.txt
|
2017-11-29 21:04:52 +01:00
|
|
|
|
|
|
|
# Install libsolarus.so
|
|
|
|
SOLARUS_INSTALL_STAGING = YES
|
|
|
|
|
2020-05-04 16:37:42 +02:00
|
|
|
SOLARUS_DEPENDENCIES = glm libgl libmodplug libogg libvorbis openal physfs \
|
|
|
|
sdl2 sdl2_image sdl2_ttf
|
2017-11-29 21:04:52 +01:00
|
|
|
|
|
|
|
# Disable launcher GUI (requires Qt5)
|
2019-12-15 14:13:58 +01:00
|
|
|
SOLARUS_CONF_OPTS = \
|
|
|
|
-DSOLARUS_GUI=OFF \
|
|
|
|
-DSOLARUS_TESTS=OFF
|
2017-11-29 21:04:52 +01:00
|
|
|
|
2019-12-15 14:13:57 +01:00
|
|
|
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
|
|
|
|
|
2017-11-29 21:04:52 +01:00
|
|
|
$(eval $(cmake-package))
|