xref: /OK3568_Linux_fs/buildroot/package/supertuxkart/supertuxkart.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# supertuxkart
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunSUPERTUXKART_VERSION = 1.1
8*4882a593SmuzhiyunSUPERTUXKART_SOURCE = supertuxkart-$(SUPERTUXKART_VERSION)-src.tar.xz
9*4882a593SmuzhiyunSUPERTUXKART_SITE = http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/$(SUPERTUXKART_VERSION)
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun# Supertuxkart itself is GPL-3.0+, but it bundles a few libraries with different
12*4882a593Smuzhiyun# licenses. Irrlicht, bullet and angelscript have Zlib license, while glew is
13*4882a593Smuzhiyun# BSD-3-Clause. Since they are linked statically, the result is GPL-3.0+.
14*4882a593SmuzhiyunSUPERTUXKART_LICENSE = GPL-3.0+
15*4882a593SmuzhiyunSUPERTUXKART_LICENSE_FILES = COPYING
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunSUPERTUXKART_DEPENDENCIES = \
18*4882a593Smuzhiyun	host-pkgconf \
19*4882a593Smuzhiyun	freetype \
20*4882a593Smuzhiyun	enet \
21*4882a593Smuzhiyun	harfbuzz \
22*4882a593Smuzhiyun	jpeg \
23*4882a593Smuzhiyun	libcurl \
24*4882a593Smuzhiyun	libfribidi \
25*4882a593Smuzhiyun	libgl \
26*4882a593Smuzhiyun	libglew \
27*4882a593Smuzhiyun	libogg \
28*4882a593Smuzhiyun	libpng \
29*4882a593Smuzhiyun	libsquish \
30*4882a593Smuzhiyun	libvorbis \
31*4882a593Smuzhiyun	openal \
32*4882a593Smuzhiyun	xlib_libXrandr \
33*4882a593Smuzhiyun	zlib
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun# Since supertuxkart is not installing libstkirrlicht.so, and since it is
36*4882a593Smuzhiyun# the only user of the bundled libraries, turn off shared libraries entirely.
37*4882a593Smuzhiyun# Disable In-game recorder (there is no libopenglrecorder package)
38*4882a593SmuzhiyunSUPERTUXKART_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF \
39*4882a593Smuzhiyun	-DBUILD_RECORDER=OFF \
40*4882a593Smuzhiyun	-DUSE_SYSTEM_GLEW=ON \
41*4882a593Smuzhiyun	-DUSE_SYSTEM_ENET=ON \
42*4882a593Smuzhiyun	-DUSE_SYSTEM_SQUISH=ON
43*4882a593Smuzhiyun
44*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
45*4882a593SmuzhiyunSUPERTUXKART_DEPENDENCIES += bluez5_utils
46*4882a593SmuzhiyunSUPERTUXKART_CONF_OPTS += -DUSE_WIIUSE=ON -DUSE_SYSTEM_WIIUSE=ON
47*4882a593Smuzhiyunelse
48*4882a593Smuzhiyun# Wiimote support relies on bluez5.
49*4882a593SmuzhiyunSUPERTUXKART_CONF_OPTS += -DUSE_WIIUSE=OFF
50*4882a593Smuzhiyunendif
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun# Prefer openssl (the default) over nettle.
53*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y)
54*4882a593SmuzhiyunSUPERTUXKART_DEPENDENCIES += openssl
55*4882a593SmuzhiyunSUPERTUXKART_CONF_OPTS += -DUSE_CRYPTO_OPENSSL=ON
56*4882a593Smuzhiyunelse
57*4882a593SmuzhiyunSUPERTUXKART_DEPENDENCIES += nettle
58*4882a593SmuzhiyunSUPERTUXKART_CONF_OPTS += -DUSE_CRYPTO_OPENSSL=OFF
59*4882a593Smuzhiyunendif
60*4882a593Smuzhiyun
61*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SQLITE),y)
62*4882a593SmuzhiyunSUPERTUXKART_DEPENDENCIES += sqlite
63*4882a593SmuzhiyunSUPERTUXKART_CONF_OPTS += -DUSE_SQLITE3=ON
64*4882a593Smuzhiyunelse
65*4882a593SmuzhiyunSUPERTUXKART_CONF_OPTS += -DUSE_SQLITE3=OFF
66*4882a593Smuzhiyunendif
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun$(eval $(cmake-package))
69