<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ae4a9b037fc028a5bd3fc637a591998bcb670b20">https://github.com/macports/macports-ports/commit/ae4a9b037fc028a5bd3fc637a591998bcb670b20</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new ae4a9b037fc spirv-cross: new port
</span>ae4a9b037fc is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ae4a9b037fc028a5bd3fc637a591998bcb670b20
</span>Author: jasonliu-- <jasonliu--@users.noreply.github.com>
AuthorDate: Mon Oct 16 17:23:28 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> spirv-cross: new port
</span>---
graphics/spirv-cross/Portfile | 66 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/spirv-cross/Portfile b/graphics/spirv-cross/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..50bb31402fa
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/spirv-cross/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,66 @@
</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 github 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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup KhronosGroup SPIRV-Cross 1.1.5 MoltenVK-
</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;'>+name spirv-cross
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# This version number is taken from the spirv-cross-c library (i.e.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# the C API), and is obtained by looking in the file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# ${worksrcpath}/spirv_cross_c.h, as defined by SPVC_C_API_VERSION_*.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.48.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories graphics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers @jasonliu-- openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description tool for parsing and converting SPIR-V to and from \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ other shader languages
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${github.project} is a tool and library for \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ performing reflection on SPIR-V and disassembling \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SPIR-V back to high-level languages.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 ac0aab7c3fb854ab95dcee09cb0c0f0b2ef85fd9 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 e11845d9a4ccb4666923a8b678935cf78acad2b4fc131aba779f5bcc6def5191 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1514658
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args-append -DSPIRV_CROSS_SHARED=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSPIRV_CROSS_FORCE_PIC=ON \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSPIRV_CROSS_ENABLE_TESTS=OFF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-test {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset tests]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_error "'tests' variant must be activated to enable test support"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error "Please enable the 'tests' variant and try again"
</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;'>+variant tests description {Build unit tests} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set py_ver 3.11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set py_ver_nodot [string map {. {}} ${py_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append port:glslang \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:spirv-tools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Make it so that the CMake build is able to find the tools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # that are available through MacPorts
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "/(glslang|spirv-tools)-build/s,(PATHS ).*(bin),\\1${prefix}/\\2," \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/CMakeLists.txt
</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;'>+ depends_test-append port:python${py_ver_nodot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.python ${prefix}/bin/python${py_ver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append -DPYTHON_EXECUTABLE:FILEPATH=${configure.python}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-replace -DSPIRV_CROSS_ENABLE_TESTS=OFF \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSPIRV_CROSS_ENABLE_TESTS=ON
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>