Skip to content

Commit c7ada27

Browse files
committed
games-action/supertuxkart: Version bump to 1.1
Many thanks to Kevin O'Shea for the patches. Closes: https://bugs.gentoo.org/706088 Package-Manager: Portage-2.3.96, Repoman-2.3.20 Signed-off-by: James Le Cuirot <[email protected]>
1 parent a69f552 commit c7ada27

4 files changed

+159
-0
lines changed

games-action/supertuxkart/Manifest

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
DIST supertuxkart-1.0-src.tar.xz 597012504 BLAKE2B ed1b851bad8696b4593c54f215b115528afc29bde237f67627e2918c4a9fab09eddc204d0c879fa85c6b10b5544dba5fa5fc1b437cb83e6d884ac717e3369c28 SHA512 182754610abd09545630fa1f7fda858ba1731bbacb078bc71597e143f9cb2a1cfcedd3038720760d0471a89b79cc3bb1eb292d38fcd53be05aad7cb17c474ca9
2+
DIST supertuxkart-1.1-src.tar.xz 616739152 BLAKE2B a4dd9ec0a8ee158306dc902d3de363b68e7a317800df1b36339843521019df91c0713b74bdef8dc06b40bee57285237408a17b539c7bd7298cd3ef3deaf99fda SHA512 81d5ff59bb33eba8a00547239d54cacfde25eed0c56c857712a00a62032e4cf371cdd367159eaa4bfec6d4dd5781b705e41b58a26b864aa43678cfe9926bb804
23
DIST supertuxkart.png 4435 BLAKE2B b48b95e1cdebe930837cc784c4c5e9a089a69077e2fcfed15fe5e8c4d649a0f8024769b2f2102bbaea3a94eb21f4b58b5d291b97493266c3c5c8d7335cf69a80 SHA512 a180332f79220431922fa8b351cb476ebc5d9d1df09f20707eb3bdd7002fd264cb027b8190c73c5221050e6e8601beb6758a5809d05aedfb18f0bdb426f47eda
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/lib/irrlicht/CMakeLists.txt b/lib/irrlicht/CMakeLists.txt
2+
index 92a881c81..1371fdf11 100644
3+
--- a/lib/irrlicht/CMakeLists.txt
4+
+++ b/lib/irrlicht/CMakeLists.txt
5+
@@ -94,15 +94,6 @@
6+
if(WIN32)
7+
add_definitions(-D_IRR_STATIC_LIB_)
8+
add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff
9+
-else()
10+
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fstrict-aliasing")
11+
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pipe -O3 -fstrict-aliasing")
12+
- if(CMAKE_COMPILER_IS_GNUCC)
13+
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexpensive-optimizations")
14+
- endif()
15+
- if(CMAKE_COMPILER_IS_GNUCXX)
16+
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexpensive-optimizations")
17+
- endif()
18+
endif()
19+
20+
if(USE_GLES2)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
From: Christoph Egger <[email protected]>
2+
Subject: [PATCH] debian/arch-support
3+
4+
Building on non-linux architectures currently fails with unpatched
5+
irrlicht because irrlicht tries to create Joystick support using
6+
linux-specific headers. However there's infrastructure to disable
7+
Joystick support, we just need to activate that on non-linux
8+
architectures.
9+
10+
Additionally if built on a sparc machine irrlicht assumes wrongly it's
11+
a solaris system. We fix this wrong assumption as our sparc builds are
12+
all on linux.
13+
14+
Finally irrlicht exceeds the size constraights for -fpic requiering to
15+
build with -fPIC. As upstream doesn't do that we need to fix this for
16+
sparc and s390 builds (powerPC?).
17+
18+
Signed-off-by: Christoph Egger <[email protected]>
19+
20+
---
21+
lib/irrlicht/include/IrrCompileConfig.h | 10 +++++-----
22+
1 files changed, 5 insertions(+), 5 deletions(-)
23+
24+
--- a/lib/irrlicht/include/IrrCompileConfig.h
25+
+++ b/lib/irrlicht/include/IrrCompileConfig.h
26+
@@ -110,4 +110,8 @@
27+
#ifndef _IRR_SOLARIS_PLATFORM_
28+
#define _IRR_LINUX_PLATFORM_
29+
+#include <endian.h>
30+
+ #if __BYTE_ORDER == __BIG_ENDIAN
31+
+ #define __BIG_ENDIAN__
32+
+ #endif
33+
#endif
34+
#define _IRR_POSIX_API_
35+
@@ -465,11 +465,7 @@
36+
#undef _IRR_WCHAR_FILESYSTEM
37+
#endif
38+
39+
-#if defined(__sparc__) || defined(__sun__)
40+
-#define __BIG_ENDIAN__
41+
-#endif
42+
-
43+
-#if defined(_IRR_SOLARIS_PLATFORM_)
44+
+#if defined(_IRR_SOLARIS_PLATFORM_) || defined(__FreeBSD_kernel__) || defined(__gnu_hurd__)
45+
#undef _IRR_COMPILE_WITH_JOYSTICK_EVENTS_
46+
#endif
47+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Copyright 1999-2020 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=7
5+
6+
inherit cmake desktop xdg
7+
8+
DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)"
9+
HOMEPAGE="https://supertuxkart.net/"
10+
SRC_URI="mirror://sourceforge/${PN}/SuperTuxKart/${PV}/${P}-src.tar.xz
11+
mirror://gentoo/${PN}.png"
12+
13+
LICENSE="GPL-2 GPL-3 CC-BY-SA-3.0 CC-BY-SA-4.0 CC0-1.0 public-domain ZLIB"
14+
SLOT="0"
15+
KEYWORDS="~amd64 ~x86"
16+
IUSE="debug fribidi libressl nettle recorder wiimote"
17+
18+
# don't unbundle irrlicht and bullet
19+
# both are modified and system versions will break the game
20+
# https://sourceforge.net/p/irrlicht/feature-requests/138/
21+
22+
RDEPEND="
23+
dev-libs/angelscript:=
24+
dev-libs/fribidi
25+
media-libs/freetype:2
26+
media-libs/glew:0=
27+
media-libs/libpng:0=
28+
media-libs/libvorbis
29+
media-libs/openal
30+
net-libs/enet:1.3=
31+
net-misc/curl
32+
sys-libs/zlib
33+
virtual/glu
34+
virtual/jpeg:0
35+
virtual/libintl
36+
virtual/opengl
37+
x11-libs/libX11
38+
x11-libs/libXxf86vm
39+
nettle? ( dev-libs/nettle:= )
40+
!nettle? (
41+
libressl? ( dev-libs/libressl:= )
42+
!libressl? ( >=dev-libs/openssl-1.0.1d:0= )
43+
)
44+
recorder? ( media-libs/libopenglrecorder )
45+
wiimote? ( net-wireless/bluez )"
46+
DEPEND="${RDEPEND}"
47+
BDEPEND="
48+
sys-devel/gettext
49+
virtual/pkgconfig"
50+
51+
S="${WORKDIR}/${P}-src"
52+
53+
PATCHES=(
54+
"${FILESDIR}"/${PN}-1.1-irrlicht-arch-support.patch
55+
"${FILESDIR}"/${PN}-0.9.3-irrlicht-system-libs.patch
56+
"${FILESDIR}"/${PN}-1.1-fix-buildsystem.patch
57+
)
58+
59+
src_prepare() {
60+
cmake_src_prepare
61+
62+
# remove bundled libraries, just to be sure
63+
rm -r lib/{angelscript,enet,glew,jpeglib,libpng,zlib} || die
64+
}
65+
66+
src_configure() {
67+
local mycmakeargs=(
68+
-DUSE_SYSTEM_ANGELSCRIPT=ON
69+
-DUSE_SYSTEM_ENET=ON
70+
-DUSE_SYSTEM_GLEW=ON
71+
-DUSE_SYSTEM_SQUISH=OFF
72+
-DUSE_SYSTEM_WIIUSE=OFF
73+
-DUSE_IPV6=OFF # not supported by system enet
74+
-DOpenGL_GL_PREFERENCE=GLVND
75+
-DUSE_CRYPTO_OPENSSL=$(usex nettle no yes)
76+
-DENABLE_WAYLAND_DEVICE=OFF
77+
-DBUILD_RECORDER=$(usex recorder)
78+
-DUSE_WIIUSE=$(usex wiimote)
79+
-DSTK_INSTALL_BINARY_DIR=bin
80+
-DSTK_INSTALL_DATA_DIR=share/${PN}
81+
-DBUILD_SHARED_LIBS=OFF # build bundled libsquish as static library
82+
)
83+
cmake_src_configure
84+
}
85+
86+
src_install() {
87+
cmake_src_install
88+
dodoc CHANGELOG.md
89+
90+
doicon -s 64 "${DISTDIR}"/${PN}.png
91+
}

0 commit comments

Comments
 (0)