<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c2acb405f55b0d8b61c04940ab6c669ed2691d27">https://github.com/macports/macports-ports/commit/c2acb405f55b0d8b61c04940ab6c669ed2691d27</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit c2acb405f55b0d8b61c04940ab6c669ed2691d27
</span>Author: nilason <n_larsson@yahoo.com>
AuthorDate: Wed Oct 11 11:40:56 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> draco: new port, version 1.5.6
</span>---
archivers/draco/Portfile | 50 ++++++++++++++++++++++++
archivers/draco/files/patch-gltf-decoder-cc.diff | 27 +++++++++++++
2 files changed, 77 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/draco/Portfile b/archivers/draco/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..73fe98884d0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/draco/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,50 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup cmake 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup google draco 1.5.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories archivers graphics gis
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {yahoo.com:n_larsson @nilason} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description 3D data compression
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Draco is an open-source library for compressing and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ decompressing 3D geometric meshes and point clouds. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Is is intended to improve the storage and transmission \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ of 3D graphics.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://google.github.io/draco/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 e9a4e14b01727fa07221be051145d566d3da9406 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 0280888e5b8e4c4fb93bf40e65e4e8a1ba316a0456f308164fb5c2b2b0c282d6 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 60386658
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-gltf-decoder-cc.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2014
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cmake.set_cxx_standard yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gtest
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:eigen3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:ghc-filesystem \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:nlohmann-json \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:stb \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:tinygltf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DBUILD_SHARED_LIBS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDRACO_EIGEN_PATH=${prefix}/include/eigen3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDRACO_FILESYSTEM_PATH=${prefix}/include/ghc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDRACO_GOOGLETEST_PATH=${prefix}/src \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDRACO_TESTS=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDRACO_TINYGLTF_PATH=${prefix}/include \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDRACO_TRANSCODER_SUPPORTED=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DDRACO_VERBOSE=3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd "./draco_tests"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/draco/files/patch-gltf-decoder-cc.diff b/archivers/draco/files/patch-gltf-decoder-cc.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..08c8f5e5a8d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/draco/files/patch-gltf-decoder-cc.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,27 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Taken from: https://sources.debian.org/src/draco/1.5.6+dfsg-3/debian/patches/0006-Fix-tinygltf-FsCallbacks.patch/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/draco/io/gltf_decoder.cc.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/draco/io/gltf_decoder.cc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -427,6 +427,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return WriteBufferToFile(contents.data(), contents.size(), filepath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++bool GetFileSizeInBytes(size_t *out, std::string * /*err*/,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ const std::string &filepath, void * /*user_data*/) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ *out = GetFileSize(filepath);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return true;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } // namespace
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GltfDecoder::GltfDecoder()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -486,6 +493,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // TinyGLTF's ExpandFilePath does not do filesystem i/o, so it's safe to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // use in all environments.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ &tinygltf::ExpandFilePath, &ReadWholeFile, &WriteWholeFile,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ &GetFileSizeInBytes,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinterpret_cast<void *>(input_files)};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ loader.SetFsCallbacks(fs_callbacks);
</span></pre><pre style='margin:0'>
</pre>