kumquat-buildroot/package/supertuxkart/supertuxkart.mk
Romain Naour 4ac4d6879b package/supertuxkart: bump to version 1.3
Switch to github to download the release archive.

Add sdl2 dependency added by [1].

Remove FriBidi dependency replaced by SheenBidi library (bundled) for
better unicode support [2] [3].

Remove libglew removed by [4].

Replace MbedTLS instead of Nettle [5].

[1] 00cb6c2d48
[2] 13db1b83c1
[3] dc0a5a9c66
[4] 3f0eb215f7
[5] d753393f4d

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2021-12-30 15:05:34 +01:00

69 lines
2.0 KiB
Makefile

################################################################################
#
# supertuxkart
#
################################################################################
SUPERTUXKART_VERSION = 1.3
SUPERTUXKART_SOURCE = SuperTuxKart-$(SUPERTUXKART_VERSION)-src.tar.xz
# Do not use the github helper here, the generated tarball is *NOT*
# the same as the one uploaded by upstream for the release.
SUPERTUXKART_SITE = https://github.com/supertuxkart/stk-code/releases/download/$(SUPERTUXKART_VERSION)
# Supertuxkart itself is GPL-3.0+, but it bundles a few libraries with different
# licenses. Irrlicht, bullet and angelscript have Zlib license, while glew is
# BSD-3-Clause. Since they are linked statically, the result is GPL-3.0+.
SUPERTUXKART_LICENSE = GPL-3.0+
SUPERTUXKART_LICENSE_FILES = COPYING
SUPERTUXKART_DEPENDENCIES = \
host-pkgconf \
freetype \
enet \
harfbuzz \
jpeg \
libcurl \
libgl \
libogg \
libpng \
libsquish \
libvorbis \
openal \
sdl2 \
xlib_libXrandr \
zlib
# Since supertuxkart is not installing libstkirrlicht.so, and since it is
# the only user of the bundled libraries, turn off shared libraries entirely.
# Disable In-game recorder (there is no libopenglrecorder package)
SUPERTUXKART_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF \
-DBUILD_RECORDER=OFF \
-DUSE_SYSTEM_ENET=ON \
-DUSE_SYSTEM_SQUISH=ON
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
SUPERTUXKART_DEPENDENCIES += bluez5_utils
SUPERTUXKART_CONF_OPTS += -DUSE_WIIUSE=ON -DUSE_SYSTEM_WIIUSE=ON
else
# Wiimote support relies on bluez5.
SUPERTUXKART_CONF_OPTS += -DUSE_WIIUSE=OFF
endif
# Prefer openssl (the default) over mbedtls
ifeq ($(BR2_PACKAGE_OPENSSL),y)
SUPERTUXKART_DEPENDENCIES += openssl
SUPERTUXKART_CONF_OPTS += -DUSE_CRYPTO_OPENSSL=ON
else
SUPERTUXKART_DEPENDENCIES += mbedtls
SUPERTUXKART_CONF_OPTS += -DUSE_CRYPTO_OPENSSL=OFF
endif
ifeq ($(BR2_PACKAGE_SQLITE),y)
SUPERTUXKART_DEPENDENCIES += sqlite
SUPERTUXKART_CONF_OPTS += -DUSE_SQLITE3=ON
else
SUPERTUXKART_CONF_OPTS += -DUSE_SQLITE3=OFF
endif
$(eval $(cmake-package))