diff --git a/pkg.info b/pkg.info index 7188c6b..d78bdca 100644 --- a/pkg.info +++ b/pkg.info @@ -1,6 +1,6 @@ name: assimp description: Library that loads various 3D file formats into a shared, in-memory format -version: 6.0.4 +version: 6.0.5 revision: 1 url: https://www.assimp.org/ license: BSD-3-Clause @@ -18,4 +18,4 @@ downloads: - url: https://github.com/assimp/assimp/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: afa5487efdd285661afa842c85187cd8c541edad92e8d4aa85be4fca7476eccc + checksum: edf3749559c2b7d1f758ffb66fc5bec62186221e623b7f2e8969f17ee46ecb6f diff --git a/source-files/assimp-6.0.4-zlib-1.3.2.patch b/source-files/assimp-6.0.4-zlib-1.3.2.patch new file mode 100644 index 0000000..5c9865c --- /dev/null +++ b/source-files/assimp-6.0.4-zlib-1.3.2.patch @@ -0,0 +1,24 @@ +diff -Naur assimp-6.0.4/code/AssetLib/IFC/IFCLoader.cpp assimp-6.0.4.new/code/AssetLib/IFC/IFCLoader.cpp +--- assimp-6.0.4/code/AssetLib/IFC/IFCLoader.cpp 2026-01-24 21:57:37.000000000 +0100 ++++ assimp-6.0.4.new/code/AssetLib/IFC/IFCLoader.cpp 2026-02-25 11:31:01.581491844 +0100 +@@ -53,7 +53,7 @@ + #ifdef ASSIMP_USE_HUNTER + #include + #else +-#include ++#include + #endif + #endif + +diff -Naur assimp-6.0.4/code/Common/ZipArchiveIOSystem.cpp assimp-6.0.4.new/code/Common/ZipArchiveIOSystem.cpp +--- assimp-6.0.4/code/Common/ZipArchiveIOSystem.cpp 2026-01-24 21:57:37.000000000 +0100 ++++ assimp-6.0.4.new/code/Common/ZipArchiveIOSystem.cpp 2026-02-25 11:26:42.093307557 +0100 +@@ -54,7 +54,7 @@ + #ifdef ASSIMP_USE_HUNTER + # include + #else +-# include ++# include + #endif + + namespace Assimp { diff --git a/source.sh b/source.sh index b15991c..6f44921 100644 --- a/source.sh +++ b/source.sh @@ -2,6 +2,13 @@ # 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 +# The prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + patch -Np1 -i "$BPM_WORKDIR"/assimp-6.0.4-zlib-1.3.2.patch +} + # The build function is executed in the source directory # This function is used to compile the source code build() {