2016-07-03 23:49:37 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# supertuxkart
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-04-22 19:10:49 +02:00
|
|
|
SUPERTUXKART_VERSION = 1.0
|
2016-07-03 23:49:37 +02:00
|
|
|
SUPERTUXKART_SOURCE = supertuxkart-$(SUPERTUXKART_VERSION)-src.tar.xz
|
|
|
|
SUPERTUXKART_SITE = http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/$(SUPERTUXKART_VERSION)
|
|
|
|
|
2017-04-17 11:27:13 +02:00
|
|
|
# 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+.
|
2017-03-30 15:43:33 +02:00
|
|
|
SUPERTUXKART_LICENSE = GPL-3.0+
|
2016-07-03 23:49:37 +02:00
|
|
|
SUPERTUXKART_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
SUPERTUXKART_DEPENDENCIES = \
|
2019-04-22 19:10:49 +02:00
|
|
|
host-pkgconf \
|
2017-09-29 21:01:40 +02:00
|
|
|
freetype \
|
2019-04-22 19:10:49 +02:00
|
|
|
enet \
|
2016-07-03 23:49:37 +02:00
|
|
|
jpeg \
|
|
|
|
libcurl \
|
|
|
|
libgl \
|
2019-04-22 19:10:49 +02:00
|
|
|
libglew \
|
2016-07-03 23:49:37 +02:00
|
|
|
libglu \
|
|
|
|
libogg \
|
|
|
|
libpng \
|
2019-04-22 19:10:49 +02:00
|
|
|
libsquish \
|
2016-07-03 23:49:37 +02:00
|
|
|
libvorbis \
|
2019-04-22 19:10:49 +02:00
|
|
|
nettle \
|
2016-07-03 23:49:37 +02:00
|
|
|
openal \
|
|
|
|
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.
|
2017-11-29 23:29:31 +01:00
|
|
|
# Disable In-game recorder (there is no libopenglrecorder package)
|
|
|
|
SUPERTUXKART_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF \
|
2019-04-22 19:10:49 +02:00
|
|
|
-DBUILD_RECORDER=OFF \
|
|
|
|
-DUSE_SYSTEM_GLEW=ON \
|
|
|
|
-DUSE_SYSTEM_ENET=ON
|
2016-07-03 23:49:37 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y)
|
|
|
|
SUPERTUXKART_DEPENDENCIES += libfribidi
|
|
|
|
SUPERTUXKART_CONF_OPTS += -DUSE_FRIBIDI=ON
|
|
|
|
else
|
|
|
|
SUPERTUXKART_CONF_OPTS += -DUSE_FRIBIDI=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
|
|
|
|
SUPERTUXKART_DEPENDENCIES += bluez5_utils
|
2019-04-22 19:10:49 +02:00
|
|
|
SUPERTUXKART_CONF_OPTS += -DUSE_WIIUSE=ON -DUSE_SYSTEM_WIIUSE=ON
|
2016-07-03 23:49:37 +02:00
|
|
|
else
|
|
|
|
# Wiimote support relies on bluez5.
|
|
|
|
SUPERTUXKART_CONF_OPTS += -DUSE_WIIUSE=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|