xref: /OK3568_Linux_fs/buildroot/package/lugaru/lugaru.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# lugaru
4#
5################################################################################
6
7LUGARU_VERSION = 1.2
8LUGARU_SITE = https://bitbucket.org/osslugaru/lugaru/downloads
9LUGARU_SOURCE = lugaru-$(LUGARU_VERSION).tar.xz
10
11LUGARU_LICENSE = GPL-2.0+, CC-BY-SA-3.0 (Wolfire and Slib assets), \
12	CC-BY-SA-4.0 (OSS Lugaru, Jendraz and Philtron R. assets)
13LUGARU_LICENSE_FILES = COPYING.txt CONTENT-LICENSE.txt
14
15LUGARU_DEPENDENCIES = host-pkgconf jpeg libgl libglu libpng libvorbis \
16	openal sdl2 zlib
17
18# Avoid incompatible posix_memalign declaration on x86 and x86_64 with
19# musl.
20# https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01425.html
21ifeq ($(BR2_TOOLCHAIN_USES_MUSL):$(BR2_i386)$(BR2_x86_64),y:y)
22define LUGARU_REMOVE_PEDANTIC
23	$(SED) 's% -pedantic%%' $(@D)/CMakeLists.txt
24endef
25LUGARU_POST_PATCH_HOOKS += LUGARU_REMOVE_PEDANTIC
26endif
27
28LUGARU_CONF_OPTS = -DSYSTEM_INSTALL=ON
29
30$(eval $(cmake-package))
31