mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
testing/godot: upgrade to 4.3
This commit is contained in:
parent
83e1a4be32
commit
369f7de33c
@ -1,7 +1,7 @@
|
|||||||
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
|
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
|
||||||
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
|
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
|
||||||
pkgname=godot
|
pkgname=godot
|
||||||
pkgver=4.2.2
|
pkgver=4.3
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="Multi-platform 2D and 3D game engine"
|
pkgdesc="Multi-platform 2D and 3D game engine"
|
||||||
url="https://godotengine.org"
|
url="https://godotengine.org"
|
||||||
@ -18,6 +18,7 @@ makedepends="
|
|||||||
graphite2-dev
|
graphite2-dev
|
||||||
harfbuzz-dev
|
harfbuzz-dev
|
||||||
icu-dev
|
icu-dev
|
||||||
|
libdecor-dev
|
||||||
libgudev-dev
|
libgudev-dev
|
||||||
libogg-dev
|
libogg-dev
|
||||||
libpng-dev
|
libpng-dev
|
||||||
@ -28,6 +29,7 @@ makedepends="
|
|||||||
libxcursor-dev
|
libxcursor-dev
|
||||||
libxi-dev
|
libxi-dev
|
||||||
libxinerama-dev
|
libxinerama-dev
|
||||||
|
libxkbcommon-dev
|
||||||
libxrandr-dev
|
libxrandr-dev
|
||||||
mbedtls2-dev
|
mbedtls2-dev
|
||||||
mesa-dev
|
mesa-dev
|
||||||
@ -37,6 +39,7 @@ makedepends="
|
|||||||
pulseaudio-dev
|
pulseaudio-dev
|
||||||
python3-dev
|
python3-dev
|
||||||
scons
|
scons
|
||||||
|
wayland-dev
|
||||||
wslay-dev
|
wslay-dev
|
||||||
zlib-dev
|
zlib-dev
|
||||||
zstd-dev
|
zstd-dev
|
||||||
@ -44,9 +47,9 @@ makedepends="
|
|||||||
depends="ca-certificates-bundle"
|
depends="ca-certificates-bundle"
|
||||||
subpackages="$pkgname-doc $pkgname-templates"
|
subpackages="$pkgname-doc $pkgname-templates"
|
||||||
source="https://github.com/godotengine/godot/releases/download/$pkgver-stable/godot-$pkgver-stable.tar.xz
|
source="https://github.com/godotengine/godot/releases/download/$pkgver-stable/godot-$pkgver-stable.tar.xz
|
||||||
no-execinfo.patch
|
|
||||||
miniupnpc.patch
|
miniupnpc.patch
|
||||||
glslang.patch
|
glslang.patch
|
||||||
|
wayland-include.patch
|
||||||
"
|
"
|
||||||
options="!check" # No tests
|
options="!check" # No tests
|
||||||
builddir="$srcdir"/godot-"$pkgver"-stable
|
builddir="$srcdir"/godot-"$pkgver"-stable
|
||||||
@ -81,7 +84,7 @@ _sconsflags="
|
|||||||
|
|
||||||
case "$CARCH" in
|
case "$CARCH" in
|
||||||
aarch64|x86_64)
|
aarch64|x86_64)
|
||||||
makedepends="$makedepends embree3-dev"
|
makedepends="$makedepends embree-dev"
|
||||||
_sconsflags="$_sconsflags builtin_embree=false"
|
_sconsflags="$_sconsflags builtin_embree=false"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -117,9 +120,9 @@ build() {
|
|||||||
target=$target \
|
target=$target \
|
||||||
arch=$arch \
|
arch=$arch \
|
||||||
$_sconsflags \
|
$_sconsflags \
|
||||||
CFLAGS="$CFLAGS -O2" \
|
cflags="$CFLAGS -O2" \
|
||||||
CXXFLAGS="$CXXFLAGS -O2" \
|
cxxflags="$CXXFLAGS -O2" \
|
||||||
LINKFLAGS="$LDFLAGS"
|
linkflags="$LDFLAGS"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,8 +146,8 @@ templates() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
4a623063be5488957e1ede7e45b6865f6cd61bc954ac311587b9e97bed848a4083c4a7225d0a81bca285d854d33be9b07d7d0c21465c9f25b90e92b08090429c godot-4.2.2-stable.tar.xz
|
6e1eaba5c3447527ce60d623f7f81cbd90633a5a1ad4c6dd469055a43c8fb9b4807fcd3bae25331294596c2418eb6c0c9db0871c3e1405ddcc7d84e29c39a45b godot-4.3-stable.tar.xz
|
||||||
7563942223564d5235d96a27c840ce0c9d7ceb9690ce1ed02f43c0c4e7b28e85f8311a18b79aeab545bdb83822604f05f98b561d2d00dd3a1b9cea60f528a7d8 no-execinfo.patch
|
3802ea6977f0e4c969ae0592af7c35a9f7150fe42840c4345d9cc9bdb94a1de032f7cdec232a4497cef92481a5695bdedaae235c77be05da6e9b6bcf4f6e32ba miniupnpc.patch
|
||||||
a9d227f9fadf0f70bfb58b31232596b3865ced1c7d5989b7a14bf60d19e83d6b1c382199100d3a1b79afa45f2f24035632adfb075596a76e6a24c0b4ba8bdf59 miniupnpc.patch
|
0878e5f269fa16884d8b84e217c96817245dc6748a3fe60ae576dfd3006123f59ff25fac793898a30a8a6ff70b2accbde474671d998d7b05584951512743f7a0 glslang.patch
|
||||||
fff7ae51eb1b37c21d8b9cdb895cc4751d3678e1db17a8793229d8edaf2b483a07d9692a150429f0f96a8b3437a3833bfe283561b6967a81d7c2252cca99bb08 glslang.patch
|
ab3dfda69c78ac132d5be4474ff46eca397fe687e4232ec123c50489ef7eace8d5586f6671e4fb65feb24f82b1b9ff6eb26a84eba9141e4f1dc9d43212bc593b wayland-include.patch
|
||||||
"
|
"
|
||||||
|
@ -1,18 +1,7 @@
|
|||||||
Fix compilation with builtin_glslang=false
|
Fix compilation with builtin_glslang=false
|
||||||
|
|
||||||
Ref https://github.com/godotengine/godot/pull/93478
|
Ref https://github.com/godotengine/godot/pull/93478
|
||||||
Ref https://github.com/godotengine/godot/pull/93471
|
|
||||||
|
|
||||||
--- a/modules/glslang/register_types.cpp
|
|
||||||
+++ b/modules/glslang/register_types.cpp
|
|
||||||
@@ -33,7 +33,6 @@
|
|
||||||
#include "core/config/engine.h"
|
|
||||||
#include "servers/rendering/rendering_device.h"
|
|
||||||
|
|
||||||
-#include <glslang/Include/Types.h>
|
|
||||||
#include <glslang/Public/ResourceLimits.h>
|
|
||||||
#include <glslang/Public/ShaderLang.h>
|
|
||||||
#include <glslang/SPIRV/GlslangToSpv.h>
|
|
||||||
--- a/platform/linuxbsd/detect.py
|
--- a/platform/linuxbsd/detect.py
|
||||||
+++ b/platform/linuxbsd/detect.py
|
+++ b/platform/linuxbsd/detect.py
|
||||||
@@ -480,7 +480,7 @@ def configure(env: "SConsEnvironment"):
|
@@ -480,7 +480,7 @@ def configure(env: "SConsEnvironment"):
|
||||||
|
@ -6,8 +6,8 @@ API changed in miniupnpc 2.2.8
|
|||||||
}
|
}
|
||||||
|
|
||||||
char addr[16];
|
char addr[16];
|
||||||
- int i = UPNP_GetValidIGD(devlist, urls, &data, (char *)&addr, 16);
|
- int i = UPNP_GetValidIGD(devlist, &urls, &data, (char *)&addr, 16);
|
||||||
+ int i = UPNP_GetValidIGD(devlist, urls, &data, (char *)&addr, 16, nullptr, 0);
|
+ int i = UPNP_GetValidIGD(devlist, &urls, &data, (char *)&addr, 16, nullptr, 0);
|
||||||
|
|
||||||
if (i != 1) {
|
if (i != 1) {
|
||||||
FreeUPNPUrls(urls);
|
FreeUPNPUrls(urls);
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
diff --git a/platform/linuxbsd/crash_handler_linuxbsd.cpp b/platform/linuxbsd/crash_handler_linuxbsd.cpp
|
|
||||||
index 3a24546..ae7430f 100644
|
|
||||||
--- a/platform/linuxbsd/crash_handler_linuxbsd.cpp
|
|
||||||
+++ b/platform/linuxbsd/crash_handler_linuxbsd.cpp
|
|
||||||
@@ -37,7 +37,6 @@
|
|
||||||
#include "main/main.h"
|
|
||||||
|
|
||||||
#ifdef DEBUG_ENABLED
|
|
||||||
-#define CRASH_HANDLER_ENABLED 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CRASH_HANDLER_ENABLED
|
|
||||||
diff --git a/platform/linuxbsd/detect.py b/platform/linuxbsd/detect.py
|
|
||||||
index 3f713d2..e27e1eb 100644
|
|
||||||
--- a/platform/linuxbsd/detect.py
|
|
||||||
+++ b/platform/linuxbsd/detect.py
|
|
||||||
@@ -429,8 +429,8 @@ def configure(env: "Environment"):
|
|
||||||
if not env["execinfo"] and platform.libc_ver()[0] != "glibc":
|
|
||||||
# The default crash handler depends on glibc, so if the host uses
|
|
||||||
# a different libc (BSD libc, musl), fall back to libexecinfo.
|
|
||||||
- print("Note: Using `execinfo=yes` for the crash handler as required on platforms where glibc is missing.")
|
|
||||||
- env["execinfo"] = True
|
|
||||||
+ # print("Note: Using `execinfo=yes` for the crash handler as required on platforms where glibc is missing.")
|
|
||||||
+ env["execinfo"] = False
|
|
||||||
|
|
||||||
if env["execinfo"]:
|
|
||||||
env.Append(LIBS=["execinfo"])
|
|
27
testing/godot/wayland-include.patch
Normal file
27
testing/godot/wayland-include.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 6ce71f0fb0a091cffb6adb4af8ab3f716ad8930b Mon Sep 17 00:00:00 2001
|
||||||
|
From: Joel Winarske <joel.winarske@gmail.com>
|
||||||
|
Date: Fri, 23 Aug 2024 14:16:37 -0700
|
||||||
|
Subject: [PATCH] Use wayland-egl-core.h instead of wayland-egl.h
|
||||||
|
|
||||||
|
-avoid use of transitive wayland include
|
||||||
|
|
||||||
|
-resolves https://github.com/godotengine/godot/issues/95830
|
||||||
|
|
||||||
|
Signed-off-by: Joel Winarske <joel.winarske@gmail.com>
|
||||||
|
---
|
||||||
|
platform/linuxbsd/wayland/wayland_thread.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/platform/linuxbsd/wayland/wayland_thread.h b/platform/linuxbsd/wayland/wayland_thread.h
|
||||||
|
index 6fd7a6096669..84e9bdc2dc08 100644
|
||||||
|
--- a/platform/linuxbsd/wayland/wayland_thread.h
|
||||||
|
+++ b/platform/linuxbsd/wayland/wayland_thread.h
|
||||||
|
@@ -44,7 +44,7 @@
|
||||||
|
#include <wayland-client-core.h>
|
||||||
|
#include <wayland-cursor.h>
|
||||||
|
#ifdef GLES3_ENABLED
|
||||||
|
-#include <wayland-egl.h>
|
||||||
|
+#include <wayland-egl-core.h>
|
||||||
|
#endif
|
||||||
|
#include <xkbcommon/xkbcommon.h>
|
||||||
|
#endif // SOWRAP_ENABLED
|
Loading…
Reference in New Issue
Block a user