opencollada: homogenize and patch for cmake4

This commit is contained in:
etwas
2025-09-23 08:15:09 +02:00
parent d8b10a34bb
commit 8a6e271618
2 changed files with 22 additions and 19 deletions
+22 -5
View File
@@ -1,7 +1,8 @@
{
cmake,
dos2unix,
fetchFromGitHub,
fetchurl,
fetchpatch,
lib,
libxml2,
pcre,
@@ -20,13 +21,28 @@ stdenv.mkDerivation rec {
sha256 = "1ym16fxx9qhf952vva71sdzgbm7ifis0h1n5fj1bfdj8zvvkbw5w";
};
patches = [
./pcre.patch
# Fix freaky dos-style CLRF things
prePatch = ''
dos2unix CMakeLists.txt
'';
patches = [
# fix build with gcc 13
(fetchurl {
(fetchpatch {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/opencollada/files/opencollada-1.6.68-gcc13.patch?id=b76590f9fb8615da3da9d783ad841c0e3881a27b";
hash = "sha256-uimeLGHgXaFi61mmoaloJ5vo83c8EIQmtHEMngC2Nq4=";
hash = "sha256-oi/QhNPRnuSHfJJ071/3wnjLeg4zZUL6NwSGYvgkb/k=";
})
# fix pcre
(fetchpatch {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/opencollada/files/opencollada-1.6.63-pcre-fix.patch";
hash = "sha256-igrwgmNwDKYwj6xWvWrryT5ARWJpztVmlQ0HCLQn5+Q=";
})
# fix build with cmake 4
(fetchpatch {
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/opencollada/files/opencollada-1.6.68-cmake4.patch?id=42f1e0614c4d056841fdc162c29a04ff0e910139";
hash = "sha256-gbF6PPalJGgXGu4W7EptYeDq8418JdGH50LIqKqGKX0=";
})
];
@@ -43,6 +59,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
cmake
pkg-config
dos2unix
];
propagatedBuildInputs = [
-14
View File
@@ -1,14 +0,0 @@
diff --git a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
index 22f2598b..269c50ca 100644
--- a/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
+++ b/COLLADABaseUtils/include/COLLADABUPcreCompiledPattern.h
@@ -13,8 +13,7 @@
#include "COLLADABUPrerequisites.h"
-struct real_pcre;
-typedef struct real_pcre pcre;
+#include "pcre.h"
namespace COLLADABU