88017c295c
"The inclusion of GLU is historical. [...] It's not needed for GLEW to build or run, but it's opt-out that reason. I'd recommend using -DGLEW_NO_GLU since GLU is rarely seen in modern codebases nowadays." https://github.com/nigels-com/glew/issues/192#issuecomment-411641657 Supertuxkart already uses -DGLEW_NO_GLU: https://github.com/supertuxkart/stk-code/blob/master/CMakeLists.txt#L224 This patch only removes the dependency to libglu and depends on the previous patch of this series which removes glu from glew.pc. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
69 lines
1.9 KiB
Makefile
69 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# supertuxkart
|
|
#
|
|
################################################################################
|
|
|
|
SUPERTUXKART_VERSION = 1.1
|
|
SUPERTUXKART_SOURCE = supertuxkart-$(SUPERTUXKART_VERSION)-src.tar.xz
|
|
SUPERTUXKART_SITE = http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/$(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 \
|
|
libfribidi \
|
|
libgl \
|
|
libglew \
|
|
libogg \
|
|
libpng \
|
|
libsquish \
|
|
libvorbis \
|
|
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.
|
|
# Disable In-game recorder (there is no libopenglrecorder package)
|
|
SUPERTUXKART_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF \
|
|
-DBUILD_RECORDER=OFF \
|
|
-DUSE_SYSTEM_GLEW=ON \
|
|
-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 nettle.
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
SUPERTUXKART_DEPENDENCIES += openssl
|
|
SUPERTUXKART_CONF_OPTS += -DUSE_CRYPTO_OPENSSL=ON
|
|
else
|
|
SUPERTUXKART_DEPENDENCIES += nettle
|
|
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))
|