1 |
commit: c23d173d94ad765832b91ee91c554ef2f57555f1 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 29 22:39:58 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 29 22:39:58 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c23d173d |
7 |
|
8 |
games-action/supertuxkart: Version bump to 1.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/820683 |
11 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
12 |
|
13 |
games-action/supertuxkart/Manifest | 1 + |
14 |
.../supertuxkart-1.3-irrlicht-system-libs.patch | 54 +++++++++++++ |
15 |
games-action/supertuxkart/supertuxkart-1.3.ebuild | 90 ++++++++++++++++++++++ |
16 |
3 files changed, 145 insertions(+) |
17 |
|
18 |
diff --git a/games-action/supertuxkart/Manifest b/games-action/supertuxkart/Manifest |
19 |
index cb598d30c27..cf24edce24e 100644 |
20 |
--- a/games-action/supertuxkart/Manifest |
21 |
+++ b/games-action/supertuxkart/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST SuperTuxKart-1.2-src.tar.xz 614569164 BLAKE2B 5bdaa8dcac12ab6c399e6f0fc3121906070f4cd5c58dba6ccf04229d92b9b21d87a43662f39fc29ac1528ce429aebea87934fa8a180a0933385704f5a43cd6f7 SHA512 bc7079af9b3d85b3e4839ebb3eee293fb8bfe95450165172caa28b8ad1a9e97c59618d77c2208a86090f1840aa9a4b4b6898c1053fa6f5d7dfbfe17b69536835 |
24 |
+DIST SuperTuxKart-1.3-src.tar.xz 627753500 BLAKE2B 3ffc86edf80adb27cd17a6ba796fb14d0660a1c14ff21c7908e5f965609c6f6a6b40270a21690cd1318d1003e07d90b4180c292252b1731d4cd6292fe12e6086 SHA512 42664390c844ebca0be9b2f2aeb3c9197c0c79a7c604707b32e81ef41aec10fa36f5950f06e1540ea6f75f6c7f8a8f7f80aeda48de3d101d991420f5b20530ed |
25 |
DIST supertuxkart-1.1-src.tar.xz 616739152 BLAKE2B a4dd9ec0a8ee158306dc902d3de363b68e7a317800df1b36339843521019df91c0713b74bdef8dc06b40bee57285237408a17b539c7bd7298cd3ef3deaf99fda SHA512 81d5ff59bb33eba8a00547239d54cacfde25eed0c56c857712a00a62032e4cf371cdd367159eaa4bfec6d4dd5781b705e41b58a26b864aa43678cfe9926bb804 |
26 |
DIST supertuxkart.png 4435 BLAKE2B b48b95e1cdebe930837cc784c4c5e9a089a69077e2fcfed15fe5e8c4d649a0f8024769b2f2102bbaea3a94eb21f4b58b5d291b97493266c3c5c8d7335cf69a80 SHA512 a180332f79220431922fa8b351cb476ebc5d9d1df09f20707eb3bdd7002fd264cb027b8190c73c5221050e6e8601beb6758a5809d05aedfb18f0bdb426f47eda |
27 |
|
28 |
diff --git a/games-action/supertuxkart/files/supertuxkart-1.3-irrlicht-system-libs.patch b/games-action/supertuxkart/files/supertuxkart-1.3-irrlicht-system-libs.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..7ff75743260 |
31 |
--- /dev/null |
32 |
+++ b/games-action/supertuxkart/files/supertuxkart-1.3-irrlicht-system-libs.patch |
33 |
@@ -0,0 +1,54 @@ |
34 |
+diff -ur a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp |
35 |
+--- a/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp 2021-09-28 11:02:26.000000000 +0100 |
36 |
++++ b/lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp 2021-10-29 23:30:44.714768031 +0100 |
37 |
+@@ -35,7 +35,7 @@ |
38 |
+ #include <GL/gl.h> |
39 |
+ #ifdef _IRR_OPENGL_USE_EXTPOINTER_ |
40 |
+ #define GLX_GLXEXT_PROTOTYPES |
41 |
+-#include "glxext.h" |
42 |
++#include <GL/glxext.h> |
43 |
+ #endif |
44 |
+ #endif |
45 |
+ |
46 |
+diff -ur a/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h b/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h |
47 |
+--- a/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h 2021-09-28 11:02:26.000000000 +0100 |
48 |
++++ b/lib/irrlicht/source/Irrlicht/COpenGLExtensionHandler.h 2021-10-29 23:30:44.715768059 +0100 |
49 |
+@@ -30,7 +30,7 @@ |
50 |
+ #endif |
51 |
+ #include <GL/gl.h> |
52 |
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_) |
53 |
+- #include "glext.h" |
54 |
++ #include <GL/glext.h> |
55 |
+ #endif |
56 |
+ #include "wglext.h" |
57 |
+ |
58 |
+@@ -45,7 +45,7 @@ |
59 |
+ #endif |
60 |
+ #include <OpenGL/gl.h> |
61 |
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_) |
62 |
+- #include "glext.h" |
63 |
++ #include <GL/glext.h> |
64 |
+ #endif |
65 |
+ #endif |
66 |
+ |
67 |
+diff -ur a/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.h b/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.h |
68 |
+--- a/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.h 2021-09-28 11:02:26.000000000 +0100 |
69 |
++++ b/lib/irrlicht/source/Irrlicht/COpenGLSLMaterialRenderer.h 2021-10-29 23:30:44.715768059 +0100 |
70 |
+@@ -20,7 +20,7 @@ |
71 |
+ #define WIN32_LEAN_AND_MEAN |
72 |
+ #include <windows.h> |
73 |
+ #include <GL/gl.h> |
74 |
+- #include "glext.h" |
75 |
++ #include <GL/glext.h> |
76 |
+ #else |
77 |
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_) |
78 |
+ #define GL_GLEXT_LEGACY 1 |
79 |
+@@ -34,7 +34,7 @@ |
80 |
+ #include <GL/gl.h> |
81 |
+ #endif |
82 |
+ #if defined(_IRR_OPENGL_USE_EXTPOINTER_) |
83 |
+- #include "glext.h" |
84 |
++ #include <GL/glext.h> |
85 |
+ #endif |
86 |
+ #endif |
87 |
+ |
88 |
|
89 |
diff --git a/games-action/supertuxkart/supertuxkart-1.3.ebuild b/games-action/supertuxkart/supertuxkart-1.3.ebuild |
90 |
new file mode 100644 |
91 |
index 00000000000..59bc12a5083 |
92 |
--- /dev/null |
93 |
+++ b/games-action/supertuxkart/supertuxkart-1.3.ebuild |
94 |
@@ -0,0 +1,90 @@ |
95 |
+# Copyright 1999-2021 Gentoo Authors |
96 |
+# Distributed under the terms of the GNU General Public License v2 |
97 |
+ |
98 |
+EAPI=8 |
99 |
+ |
100 |
+inherit cmake desktop xdg |
101 |
+ |
102 |
+MY_P="SuperTuxKart-${PV}-src" |
103 |
+DESCRIPTION="A kart racing game starring Tux, the linux penguin (TuxKart fork)" |
104 |
+HOMEPAGE="https://supertuxkart.net/" |
105 |
+SRC_URI="https://github.com/${PN}/stk-code/releases/download/${PV}/${MY_P}.tar.xz |
106 |
+ mirror://gentoo/${PN}.png" |
107 |
+ |
108 |
+LICENSE="GPL-2 GPL-3 CC-BY-SA-3.0 CC-BY-SA-4.0 CC0-1.0 public-domain ZLIB" |
109 |
+SLOT="0" |
110 |
+KEYWORDS="~amd64 ~riscv ~x86" |
111 |
+IUSE="debug nettle recorder sqlite wiimote" |
112 |
+ |
113 |
+# don't unbundle irrlicht and bullet |
114 |
+# both are modified and system versions will break the game |
115 |
+# https://sourceforge.net/p/irrlicht/feature-requests/138/ |
116 |
+ |
117 |
+RDEPEND=" |
118 |
+ dev-cpp/libmcpp |
119 |
+ sqlite? ( dev-db/sqlite:3 ) |
120 |
+ dev-libs/angelscript:= |
121 |
+ media-libs/freetype:2 |
122 |
+ media-libs/glew:0= |
123 |
+ media-libs/harfbuzz:= |
124 |
+ media-libs/libpng:0= |
125 |
+ media-libs/libsdl2 |
126 |
+ media-libs/libvorbis |
127 |
+ media-libs/openal |
128 |
+ net-libs/enet:1.3= |
129 |
+ net-misc/curl |
130 |
+ sys-libs/zlib |
131 |
+ virtual/glu |
132 |
+ virtual/jpeg:0 |
133 |
+ virtual/libintl |
134 |
+ virtual/opengl |
135 |
+ x11-libs/libX11 |
136 |
+ x11-libs/libXxf86vm |
137 |
+ nettle? ( dev-libs/nettle:= ) |
138 |
+ !nettle? ( |
139 |
+ >=dev-libs/openssl-1.0.1d:0= |
140 |
+ ) |
141 |
+ recorder? ( media-libs/libopenglrecorder ) |
142 |
+ wiimote? ( net-wireless/bluez )" |
143 |
+DEPEND="${RDEPEND}" |
144 |
+BDEPEND=" |
145 |
+ sys-devel/gettext |
146 |
+ virtual/pkgconfig" |
147 |
+ |
148 |
+S="${WORKDIR}/${MY_P}" |
149 |
+ |
150 |
+PATCHES=( |
151 |
+ "${FILESDIR}"/${PN}-1.1-irrlicht-arch-support.patch |
152 |
+ "${FILESDIR}"/${PN}-1.3-irrlicht-system-libs.patch |
153 |
+) |
154 |
+ |
155 |
+src_prepare() { |
156 |
+ cmake_src_prepare |
157 |
+} |
158 |
+ |
159 |
+src_configure() { |
160 |
+ local mycmakeargs=( |
161 |
+ -DUSE_SQLITE3=$(usex sqlite) |
162 |
+ -DUSE_SYSTEM_ANGELSCRIPT=ON |
163 |
+ -DUSE_SYSTEM_ENET=ON |
164 |
+ -DUSE_SYSTEM_GLEW=ON |
165 |
+ -DUSE_SYSTEM_SQUISH=OFF |
166 |
+ -DUSE_SYSTEM_WIIUSE=OFF |
167 |
+ -DUSE_IPV6=OFF # not supported by system enet |
168 |
+ -DOpenGL_GL_PREFERENCE=GLVND |
169 |
+ -DUSE_CRYPTO_OPENSSL=$(usex nettle no yes) |
170 |
+ -DBUILD_RECORDER=$(usex recorder) |
171 |
+ -DUSE_WIIUSE=$(usex wiimote) |
172 |
+ -DSTK_INSTALL_BINARY_DIR=bin |
173 |
+ -DSTK_INSTALL_DATA_DIR=share/${PN} |
174 |
+ -DBUILD_SHARED_LIBS=OFF # build bundled libsquish as static library |
175 |
+ ) |
176 |
+ cmake_src_configure |
177 |
+} |
178 |
+ |
179 |
+src_install() { |
180 |
+ cmake_src_install |
181 |
+ dodoc CHANGELOG.md |
182 |
+ |
183 |
+ doicon -s 64 "${DISTDIR}"/${PN}.png |
184 |
+} |