# -*- 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 PortSystem 1.0 PortGroup github 1.0 PortGroup cmake 1.1 PortGroup legacysupport 1.1 github.setup KhronosGroup SPIRV-Tools 1.3.296.0 vulkan-sdk- name spirv-tools revision 0 categories graphics license Apache-2 maintainers {judaew @judaew} openmaintainer description various SPIR-V tools long_description SPIR-V assembler, binary module parser, \ disassembler, validator, and optimizer homepage https://vulkan.lunarg.com # FIXME : main module not extracted in worksrcpath when using multiple sources. # move extracted main module to worksrcpath # Move submodules to cmakes expected location in worksrcpath post-extract { move ${workpath}/KhronosGroup-SPIRV-Tools-6dcc7e3 ${worksrcpath} foreach {sub_author sub_project sub_commit sub_dest} ${submodules} { move ${workpath}/${sub_project}-${sub_commit} ${worksrcpath}/${sub_dest} } } checksums SPIRV-Tools-1.3.296.0.tar.gz \ rmd160 092efc2dbc94aa4472a9b370a3881ff16f6c8c77 \ sha256 a4d0bbb08b8f90d0ec8c8c39b4abc5d67b1b262eff9e2194cb2b885ce000396f \ size 3194709 \ abseil-cpp-lts_2024_07_22.tar.gz \ rmd160 fdf8b9c435036a1d4b9fffed27a44b50709deae7 \ sha256 bc57139b5c08401b2c7b54a7e44e1a771f165db80fd6b88076cc39622d87375f \ size 2242933 \ effcee-2c97e5689ed8d7ab6ae5820f884f03a601ae124b.tar.gz \ rmd160 1f82d7f7369f9b9aeefb93e10679d6223a7cc92f \ sha256 a59e5ac09d4d6f64dd2bb1623512fdc6f737ee2bce14196d1a47ad59a80b7d56 \ size 40080 \ googletest-6dae7eb4a5c3a169f3e298392bff4680224aa94a.tar.gz \ rmd160 33215310600f043a7eae6f8188bb1b0d576fc1d2 \ sha256 0384d11eeccf20e55e8fa81c1a33fa8db25de88bd3336c20c8d48a393aa4f730 \ size 874467 \ protobuf-f0dc78d7e6e331b8c6bb2d5283e06aa26883ca7c.tar.gz \ rmd160 a397c44d602407d85eb6ac6b985f9feb792f76e1 \ sha256 d594b561fb41bf243233d8f411c7f2b7d913e5c9c1be4ca439baf7e48384c893 \ size 5146983 \ re2-6dcd83d60f7944926bfd308cc13979fc53dd69ca.tar.gz \ rmd160 ded8718bb39f88cef60b869195a885e02afa73bd \ sha256 b26ba918fe9f74c897cd8a247c6c86836275e5af0d198719e4679967dcf68395 \ size 391027 \ SPIRV-Headers-2a9b6f951c7d6b04b6c21fe1bf3f475b68b84801.tar.gz \ rmd160 42dc68dd7bcd347bb42260a2fb6a38119ee21862 \ sha256 1698e1373bd6e59a263acef821c4d955c561b991feb6db8199833ef19ffe8a37 \ size 524052 compiler.cxx_standard 2017 # Need to use MacPorts libc++ on macOS 10.14 Mojave and older, because # Apple Clang only added support for the C++17 library # starting in Xcode 11 (clang-1100) for macOS 10.15+. # # References: # * https://stackoverflow.com/a/55353263 # * https://developer.apple.com/documentation/xcode-release-notes/xcode-11-release-notes legacysupport.newest_darwin_requires_legacy 18 legacysupport.use_mp_libcxx yes set py_ver 3.12 set py_ver_nodot [string map {. {}} ${py_ver}] foreach stage {configure build destroot test} { ${stage}.env-append PATH=${frameworks_dir}/Python.framework/Versions/${py_ver}/bin:$env(PATH) } depends_build-append port:python${py_ver_nodot} # See DEPS file in repo # Exept abseil changed to lts version. set submodules { abseil abseil-cpp lts_2024_07_22 external/abseil_cpp google effcee 2c97e5689ed8d7ab6ae5820f884f03a601ae124b external/effcee google googletest 6dae7eb4a5c3a169f3e298392bff4680224aa94a external/googletest protocolbuffers protobuf f0dc78d7e6e331b8c6bb2d5283e06aa26883ca7c external/protobuf google re2 6dcd83d60f7944926bfd308cc13979fc53dd69ca external/re2 KhronosGroup SPIRV-Headers 2a9b6f951c7d6b04b6c21fe1bf3f475b68b84801 external/spirv-headers } foreach {sub_author sub_project sub_commit sub_dest} ${submodules} { master_sites-append https://github.com/${sub_author}/${sub_project}/archive/${sub_commit}.tar.gz?dummy=:${sub_project} distfiles-append ${sub_project}-${sub_commit}.tar.gz:${sub_project} } configure.args-append \ -DSPIRV_WERROR=OFF \ -DBUILD_SHARED_LIBS=ON \ -DSPIRV_TOOLS_BUILD_STATIC=OFF \ -DCMAKE_INSTALL_PREFIX=${prefix}