Update package version to 1.5

This commit is contained in:
2025-10-23 20:39:41 +03:00
parent 468c1cefed
commit ed4fc2992e
6 changed files with 26 additions and 349 deletions
+23 -3
View File
@@ -1,9 +1,29 @@
name: supertuxkart name: supertuxkart
description: Free and Open Source kart racing game description: Free and Open Source kart racing game
version: 1.4 version: "1.5"
revision: 1
url: https://supertuxkart-evolution.com/Main_Page.html url: https://supertuxkart-evolution.com/Main_Page.html
license: GPL3-or-later license: GPL3-or-later
architecture: any architecture: any
depends: ["bluez","curl","freetype2","harfbuzz","hicolor-icon-theme","libjpeg-turbo","libpng","libvorbis","openal","sdl2-compat","shaderc","sqlite"]
make_depends: ["cmake","ninja"]
type: source type: source
depends:
- bluez
- curl
- freetype2
- harfbuzz
- hicolor-icon-theme
- libjpeg-turbo
- libpng
- libvorbis
- openal
- sdl2-compat
- shaderc
- sqlite
make_depends:
- cmake
- ninja
downloads:
- url: https://github.com/supertuxkart/stk-code/releases/download/${BPM_PKG_VERSION}/SuperTuxKart-${BPM_PKG_VERSION}-src.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 33cf8841e4ff4082d80b9248014295bbbea61d14683e86dff100e3ab8f7b27cb
@@ -1,92 +0,0 @@
From 7f67e1ffb599d43cd2316e0320ce7944b49be02e Mon Sep 17 00:00:00 2001
From: Alayan <[email protected]>
Date: Tue, 21 May 2024 14:06:16 +0200
Subject: [PATCH 1/2] Require Cmake 3.6 or higher
This gets rid of deprecation warnings. Cmake 3.6 has been out for almost 8 years by now, so this requirement should not cause undue trouble to people trying to compile the game.
Signed-off-by: G-Src <[email protected]>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.4)
+cmake_minimum_required(VERSION 3.6.0)
# root CMakeLists for the SuperTuxKart project
project(SuperTuxKart)
@@ -6,10 +6,6 @@ set(PROJECT_VERSION "1.4")
add_definitions( -DSUPERTUXKART_VERSION="${PROJECT_VERSION}" )
-if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3))
- cmake_policy(SET CMP0043 OLD)
-endif()
-
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
include(CMakeDependentOption)
--- a/lib/enet/CMakeLists.txt
+++ b/lib/enet/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.6.0)
project(enet)
--- a/lib/graphics_utils/CMakeLists.txt
+++ b/lib/graphics_utils/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.6.0)
include_directories("${PROJECT_SOURCE_DIR}/lib/simd_wrapper")
if (UNIX OR MINGW)
add_definitions(-O3)
--- a/lib/libsquish/CMakeLists.txt
+++ b/lib/libsquish/CMakeLists.txt
@@ -8,7 +8,7 @@
# Unix and VS: SSE2 support is enabled by default
# use BUILD_SQUISH_WITH_SSE2 and BUILD_SQUISH_WITH_ALTIVEC to override
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.3)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.6.0)
OPTION(BUILD_SQUISH_WITH_OPENMP "Build with OpenMP." OFF)
--- a/lib/mcpp/CMakeLists.txt
+++ b/lib/mcpp/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.6.0)
if (UNIX OR MINGW)
add_definitions(-O3)
if (APPLE)
--- a/lib/tinygettext/CMakeLists.txt
+++ b/lib/tinygettext/CMakeLists.txt
@@ -39,7 +39,7 @@ set(VERSION "0.1.0")
### CMake configuration
-cmake_minimum_required(VERSION 2.4)
+cmake_minimum_required(VERSION 3.6.0)
if(COMMAND cmake_policy)
CMAKE_POLICY(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
--- a/lib/wiiuse/CMakeLists.txt
+++ b/lib/wiiuse/CMakeLists.txt
@@ -2,13 +2,7 @@
# http://academic.cleardefinition.com/
# Iowa State University HCI Graduate Program/VRAC
-cmake_minimum_required(VERSION 2.8.0)
-
-# Added for STK, silences CMake warning
-# See https://github.com/supertuxkart/stk-code/commit/b0ff15873ee7fa8901672672b47def9039a5534b#diff-a3e272598233e89e4b577a434cc2a89d
-if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3))
- cmake_policy(SET CMP0048 OLD)
-endif()
+cmake_minimum_required(VERSION 3.6.0)
# Set package properties
project(WiiUse)
--
2.50.1
-81
View File
@@ -1,81 +0,0 @@
From e2aaf730de5d43afaf4e2b2ed1a94e8c0eeb11e2 Mon Sep 17 00:00:00 2001
From: Deve <[email protected]>
Date: Thu, 15 May 2025 17:54:28 +0200
Subject: [PATCH 2/2] Fixed cmake 4.0 warnings
Signed-off-by: G-Src <[email protected]>
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.6.0)
+cmake_minimum_required(VERSION 3.6.0...4.0)
# root CMakeLists for the SuperTuxKart project
project(SuperTuxKart)
--- a/lib/angelscript/projects/cmake/CMakeLists.txt
+++ b/lib/angelscript/projects/cmake/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.5...4.0)
# STK Fix llvm mingw crashes
if (MINGW AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
--- a/lib/enet/CMakeLists.txt
+++ b/lib/enet/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.6.0)
+cmake_minimum_required(VERSION 3.6.0...4.0)
project(enet)
--- a/lib/graphics_utils/CMakeLists.txt
+++ b/lib/graphics_utils/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.6.0)
+cmake_minimum_required(VERSION 3.6.0...4.0)
include_directories("${PROJECT_SOURCE_DIR}/lib/simd_wrapper")
if (UNIX OR MINGW)
add_definitions(-O3)
--- a/lib/libsquish/CMakeLists.txt
+++ b/lib/libsquish/CMakeLists.txt
@@ -8,7 +8,7 @@
# Unix and VS: SSE2 support is enabled by default
# use BUILD_SQUISH_WITH_SSE2 and BUILD_SQUISH_WITH_ALTIVEC to override
-CMAKE_MINIMUM_REQUIRED(VERSION 3.6.0)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.6.0...4.0)
OPTION(BUILD_SQUISH_WITH_OPENMP "Build with OpenMP." OFF)
--- a/lib/mcpp/CMakeLists.txt
+++ b/lib/mcpp/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.6.0)
+cmake_minimum_required(VERSION 3.6.0...4.0)
if (UNIX OR MINGW)
add_definitions(-O3)
if (APPLE)
--- a/lib/tinygettext/CMakeLists.txt
+++ b/lib/tinygettext/CMakeLists.txt
@@ -39,7 +39,7 @@ set(VERSION "0.1.0")
### CMake configuration
-cmake_minimum_required(VERSION 3.6.0)
+cmake_minimum_required(VERSION 3.6.0...4.0)
if(COMMAND cmake_policy)
CMAKE_POLICY(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
--- a/lib/wiiuse/CMakeLists.txt
+++ b/lib/wiiuse/CMakeLists.txt
@@ -2,7 +2,7 @@
# http://academic.cleardefinition.com/
# Iowa State University HCI Graduate Program/VRAC
-cmake_minimum_required(VERSION 3.6.0)
+cmake_minimum_required(VERSION 3.6.0...4.0)
# Set package properties
project(WiiUse)
--
2.50.1
-121
View File
@@ -1,121 +0,0 @@
https://github.com/supertuxkart/stk-code/commit/0163e3fa88b72634c3ddff5304c9086b649f53b1
From 0163e3fa88b72634c3ddff5304c9086b649f53b1 Mon Sep 17 00:00:00 2001
From: Heiko Becker <[email protected]>
Date: Thu, 26 Jan 2023 16:35:54 +0100
Subject: [PATCH] Add missing includes to fix the build with gcc 13
Like other versions before, gcc 13 moved some includes around and as a
result <stdexcept> and <cstdio> are no longer transitively included.
Explicitly include them for std::runtime_error and snprintf.
--- a/lib/graphics_engine/include/vk_mem_alloc.h
+++ b/lib/graphics_engine/include/vk_mem_alloc.h
@@ -2563,6 +2563,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeStatsString(
#undef VMA_IMPLEMENTATION
#include <cstdint>
+#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <utility>
--- a/lib/graphics_engine/src/ge_spm_buffer.cpp
+++ b/lib/graphics_engine/src/ge_spm_buffer.cpp
@@ -5,6 +5,7 @@
#include "ge_vulkan_features.hpp"
#include <algorithm>
+#include <stdexcept>
#include "mini_glm.hpp"
--- a/lib/graphics_engine/src/ge_vulkan_array_texture.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_array_texture.cpp
@@ -12,6 +12,7 @@
#include <IImageLoader.h>
#include <cassert>
+#include <stdexcept>
namespace GE
{
--- a/lib/graphics_engine/src/ge_vulkan_command_loader.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_command_loader.cpp
@@ -8,6 +8,7 @@
#include <deque>
#include <memory>
#include <mutex>
+#include <stdexcept>
#include <thread>
#include "../source/Irrlicht/os.h"
--- a/lib/graphics_engine/src/ge_vulkan_depth_texture.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_depth_texture.cpp
@@ -3,6 +3,8 @@
#include "ge_main.hpp"
#include "ge_vulkan_driver.hpp"
+#include <stdexcept>
+
namespace GE
{
GEVulkanDepthTexture::GEVulkanDepthTexture(GEVulkanDriver* vk,
--- a/lib/graphics_engine/src/ge_vulkan_draw_call.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_draw_call.cpp
@@ -25,6 +25,7 @@
#include <algorithm>
#include <cmath>
#include <limits>
+#include <stdexcept>
#include "../source/Irrlicht/os.h"
#include "quaternion.h"
--- a/lib/graphics_engine/src/ge_vulkan_fbo_texture.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_fbo_texture.cpp
@@ -6,6 +6,7 @@
#include <array>
#include <exception>
+#include <stdexcept>
namespace GE
{
--- a/lib/graphics_engine/src/ge_vulkan_mesh_cache.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_mesh_cache.cpp
@@ -10,6 +10,7 @@
#include <algorithm>
#include <cassert>
+#include <stdexcept>
#include <vector>
namespace GE
--- a/lib/graphics_engine/src/ge_vulkan_skybox_renderer.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_skybox_renderer.cpp
@@ -11,6 +11,7 @@
#include <array>
#include <cstdint>
+#include <stdexcept>
#include <unordered_map>
namespace GE
--- a/lib/graphics_engine/src/ge_vulkan_texture.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_texture.cpp
@@ -21,6 +21,7 @@ extern "C"
#include <IAttributes.h>
#include <IImageLoader.h>
#include <limits>
+#include <stdexcept>
namespace GE
{
--- a/lib/graphics_engine/src/ge_vulkan_texture_descriptor.cpp
+++ b/lib/graphics_engine/src/ge_vulkan_texture_descriptor.cpp
@@ -6,6 +6,7 @@
#include <algorithm>
#include <exception>
+#include <stdexcept>
namespace GE
{
-24
View File
@@ -1,24 +0,0 @@
https://github.com/supertuxkart/stk-code/issues/5301
https://bugs.gentoo.org/937731
From 83e029cc123176a77a239edf90ee461e46f9f8a2 Mon Sep 17 00:00:00 2001
From: Gwyn Ciesla <[email protected]>
Date: Wed, 19 Feb 2025 09:34:58 -0600
Subject: [PATCH] Add include to work with gcc15. (#5310)
---
src/network/remote_kart_info.hpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/network/remote_kart_info.hpp b/src/network/remote_kart_info.hpp
index 80a6339187c..9865dcda8c3 100644
--- a/src/network/remote_kart_info.hpp
+++ b/src/network/remote_kart_info.hpp
@@ -29,6 +29,7 @@
#include <string>
#include <vector>
#include <irrString.h>
+#include <cstdint>
enum KartTeam : int8_t
{
+3 -28
View File
@@ -2,42 +2,17 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://github.com/supertuxkart/stk-code/releases/download/${BPM_PKG_VERSION}/SuperTuxKart-${BPM_PKG_VERSION}-src.tar.xz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
# Apply patch to fix cmake 4 compatibility and warnings (Patches from gentoo)
patch -Np1 -i "$BPM_WORKDIR"/fix-cmake-4-compatibility.patch
patch -Np1 -i "$BPM_WORKDIR"/fix-cmake-4-warnings.patch
# Apply patch to fix gcc 13 and gcc 15 compatibility (Patch from gentoo)
patch -Np1 -i "$BPM_WORKDIR"/gcc-13.patch
patch -Np1 -i "$BPM_WORKDIR"/gcc-15.patch
}
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
mkdir build cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_RECORDER=off -GNinja
cd build cmake --build build
export CFLAGS="${CFLAGS} -std=gnu17"
export CXXFLAGS="${CXXFLAGS} -std=gnu17"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_RECORDER=off -GNinja ..
cmake --build .
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
cd build DESTDIR="$BPM_OUTPUT" cmake --install build
DESTDIR="$BPM_OUTPUT" cmake --install .
# Install package license # Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/supertuxkart/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/supertuxkart/COPYING