xref: /OK3568_Linux_fs/buildroot/package/flare-engine/flare-engine.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# flare-engine
4#
5################################################################################
6
7FLARE_ENGINE_VERSION = 1.11
8FLARE_ENGINE_SITE = $(call github,flareteam,flare-engine,v$(FLARE_ENGINE_VERSION))
9FLARE_ENGINE_LICENSE = GPL-3.0+
10FLARE_ENGINE_LICENSE_FILES = COPYING
11
12FLARE_ENGINE_DEPENDENCIES += sdl2 sdl2_image sdl2_mixer sdl2_ttf
13
14# Don't use /usr/games and /usr/share/games
15FLARE_ENGINE_CONF_OPTS += -DBINDIR=bin -DDATADIR=share/flare
16
17# CMAKE_BUILD_TYPE is only used to set optimization and debug flags, all of
18# which we want Buildroot to steer explicitly. Explicitly set a fake build type
19# to get this control.
20FLARE_ENGINE_CONF_OPTS += -DCMAKE_BUILD_TYPE=Buildroot
21
22ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
23FLARE_ENGINE_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(TARGET_CXXFLAGS) -O0"
24endif
25
26$(eval $(cmake-package))
27